fabianbl / .vim

My .vim configuration + plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.vim

Installing the latest version

https://github.com/neovim/neovim/blob/master/INSTALL.md

Dependencies

sudo pip install yapf

Vim-plug

Follow the instructions here.

General

My vim/nvim config file and packages.

More packages on the Vim Awesome page.

Submodules

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

Ctags

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

NERDTree

Find current file:

:NERDTreeFind

Splits / Tabs

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.

Possible Extensions

Python

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

Deoplete

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.

About

My .vim configuration + plugins.


Languages

Language:Vim Script 92.6%Language:Python 7.2%Language:Shell 0.2%