https://github.com/neovim/neovim/blob/master/INSTALL.md
sudo pip install yapf
Follow the instructions here.
My vim/nvim config file and packages.
More packages on the Vim Awesome page.
Add new submodules with:
git submodule add SUBMODULE
Update all submodules to master:
git submodule foreach "(git checkout master; git pull)&"
More info here: http://stackoverflow.com/questions/1030169/easy-way-pull-latest-of-all-submodules
Install ctags on Ubuntu 14.04 with:
sudo apt-get install exuberant-ctags
Run inside the project folder:
ctags -R .
Jump to a specific tag in vim:
:tag <tagname>
Open a new window of the specified tag:
:stag <tagname>
Show all matches (for new window stselect
):
:tselect <tagname>
Position cursor over command/variable and jump to definition with Ctrl-]
. To open a new window, use Ctrl-W ]
.
Show all matches for cursor position command/variable with g]
or Ctrl-W g]
for new split window.
Return from tag with :pop
command or Ctrl-t
.
More information: http://vim.wikia.com/wiki/Browsing_programs_with_tags
Find current file:
:NERDTreeFind
Open a new empty tab:
:tabe
To change two vertically split windows to horizonally split: Ctrl-w t Ctrl-w K
Horizontally to vertically: Ctrl-w t Ctrl-w H
Note: Ctrl-w t can be omitted with only two open splits.
Enable Python support for Neovim:
pip install --upgrade neovim
pip2 install --upgrade neovim
pip3 install --upgrade neovim
More information: https://github.com/neovim/neovim/wiki/FAQ#python-support-isnt-working
Install/update neovim/python module.
pip3 install --user --upgrade pynvim
For deoplete-clang, clang is needed:
sudo apt install clang
Add this to vimrc:
" Set python path.
let g:python_host_prog = '/usr/bin/python'
let g:python3_host_prog = '/usr/bin/python3'
" Should also be posssible with pathegon.
set runtimepath+=~/.vim/deoplete.nvim/
execute deoplete#enable()
let deoplete#tag#cache_limit_size = 5000000
Probably it will be necessary to use deoplete-clang.