zoukankan      html  css  js  c++  java
  • NeoVim 快速配置

    NeoVim配置

    • gitee

      https://gitee.com/eeqc/neo-vim_configureation
      
    • 克隆配置文件

      git clone https://gitee.com/eeqc/neo-vim_configureation.git ~/.config/nvim/
      

    插件管理器

    • Vim-Plug 使用下面的命令可以进行安装

      curl -fLo ~/.config/nvim/autoload/plug.vim  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
      
    • (可能出现的错误)错误: failed to connect to raw.githubusercontent.com port 443: connection refused

      • IPAddress查查这个raw.githubusercontent.com的真实IP; 网址如下:

        https://www.ipaddress.com/
        
      • 搜索到结果如下:

      • /etc/hosts添加以下内容(ip地址搜索到了4个,任选一个就行了)

        185.199.108.133 raw.githubusercontent.com
        

    安装插件

    • 打开NeoVim输入执行安装插件命令:

      PlugInstall
      

    必要的依赖

    • 在安装和使用Coc.nvim补全插件时候,Coc依赖nodejs与npm
    • Archlinux

      yay -S nodejs npm
      

    基本环境检查

    • 进入vim输入checkhealth

      :checkhealth
      

    Python编辑器

    • 对于python直接安装anaconda就可以了, 当然同时还需要安装一下pynvim

      pip install pynvim
      

    添加语言支持

    • coc.nvim 提供了很多扩展工具在coc extensions中, 这些扩展命令在nvim中可以通过:CocInstall进行安装

    • 在我目前所使用的扩展如以下:

      :CocInstall coc-clangd
      
      :CocInstall coc-python
      
      :CocInstall coc-json
      
      :CocInstall coc-snippets
      
      :CocInstall coc-java
      
      :CocInstall coc-git
      
      :CocInstall coc-sh
      
      :CocInstall coc-xml
      
  • 相关阅读:
    UVA 12284 Digital Matrix
    lightoj 1052
    light oj 1236
    light oj 1151
    省选准备 MISTAKE 大全
    我的省选 Day -15
    「FJ2014集训」采药人的路径
    【NOI2012】迷失游乐园
    寒假这十天
    计算几何 大杂烩
  • 原文地址:https://www.cnblogs.com/ieeqc/p/14338310.html
Copyright © 2011-2022 走看看