/neovim-config

my neovim configurations

Primary LanguageVim Script

NeoVim config files

It's a new start

fork from: git@github.com:bigeagle/neovim-config.git

HowTo

for nvim
git clone url_my_vim_config
ln -s path/to/neovim-config ~/.nvim
ln -s ~/.nvim/nvimrc ~/.nvimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
pip install neovim

or
for vim
ln -s path/to/neovim-config ~/.vim
ln -s ~/.vim/nvimrc ~/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
安装YCM:(前提必须联网,会需要更新第三方插件和编译)
    
    cd ~/.vim/bundle/YouCompleteMe
    ./install.sh --clang-completer

I use vim-plug to manage my plugins, you can deactive unneeded ones by commenting .nvimrc/.vimrc.

run nvim/vim then run :PluginInstall

QA

1、打开文件无法返回最后编辑的位置
原因:`$HOME/.viminfo`文件的所有者不是当前用户

2、YCM android不自动补全
原因:`Android源代码的根目录必须有.repo目录,YCM的配置文件添加的头文件相对于.repo所在目录`

3、unite
原因:`安装ag sudo apt-get install silversearcher-ag`