Skip to content

fabianbl/.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published