Git Product home page Git Product logo

vim's Introduction

nvim 配置说明

添加一些 vim配置 的配置说明 当前配置基于 nvim 进行配置,添加了常用的插件,并支持java语法提示。

环境准备

npm install -g neovim
pip3 install pylint
npm install -g typescript
pip3 install jedi

Plug 插件

curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

coc-settings.json

特别说明,要使有 coc 的java语法提示,必须指定jdk为 JDK11,否则报错

{
    "suggest.noselect": true,
    "suggest.enablePreselect": false,
    "codeLens.enable": true,
    "java.home": "/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home",
    "suggest.completionItemKindLabels": {
        "class": "\uf0e8",
        "color": "\ue22b",
        "constant": "\uf8fe",
        "default": "\uf29c",
        "enum": "\uf435",
        "enumMember": "\uf02b",
        "event": "\ufacd",
        "field": "\uf93d",
        "file": "\uf723",
        "folder": "\uf115",
        "function": "\u0192",
        "interface": "\uf417",
        "keyword": "\uf1de",
        "method": "\uf6a6",
        "module": "\uf40d",
        "operator": "\uf915",
        "property": "\ue624",
        "reference": "\ufa46",
        "snippet": "\ue60b",
        "struct": "\ufb44",
        "text": "\ue612",
        "typeParameter": "\uf728",
        "unit": "\uf475",
        "value": "\uf89f",
        "variable": "\ue71b"
    },
    "coc.preferences.formatOnSaveFiletypes": [
        "json",
        "java",
        "python",
        "css",
        "dart",
        "html",
        "javascript"
    ]
}

字体 和 iTerm2 配置

将 powerline 的字体也放到项目当中,方便大家直接导入字体。解决 vim-airline 下符号显示导常,箭头标志大小异常的问题

1.字体

直接在项目中双点安装或自行下载安装

git clone https://github.com/supermarin/powerline-fonts.git

2.iTerm2 设置

安装 powerline 字体后在配置 安装 Menlo Regular for Powerline.otf 这个字体,在 iTerm2下显示为 Menlo for Powerline,的字体

vim's People

Contributors

forfreeday avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.