/.vim

Plugins and configuration files that I use in vim

Primary LanguageVim Script

.vim

Just my vim configuration

Setup neovim using the same configuration

    sudo pip2 install neovim
    sudo pip3 install neovim
  • Create ~/.config/nvim/init.vim file with
set runtimepath+=~/.vim,~/.vim/after
set packpath+=~/.vim
if !exists('g:vscode')
    source ~/.vim/vimrc
endif

Optional bashrc config

alias vim='nvim'
alias vi='nvim'
export EDITOR=nvim

Setting up

  • Follow Vim-pug installation instructions.

  • exuberant-ctags package is required, given the vimrc configuration.

  • It is recommended to install vim-gnome (or similar desktop integration) to make vim use the system clipboard.

  • In order to use Rst custom command you need to install rst2html.py. Example: (sudo pip install rst2html5)

  • In order to use Md custom command, you need to install markdown and pygments Example (sudo pip install markdown Pygments)

Plugins specific configuration

syntastic

https://github.com/vim-syntastic/syntastic

python syntax

Ensure flake8 is installed in the corresponding virtualenv

pip install flake8

javascript syntax

npm install -g jshint

vim-autoformat

https://github.com/Chiel92/vim-autoformat

Install js-beautify for javascript and html autoformat.

sudo npm install -g js-beautify

Ack

It is configured to work with ag.

sudo apt-get install silversearcher-ag

go-vim

Requires go up and running and GOPATH environment variable set

deoplete

js completion

Requires tern installed

sudo npm install tern -g

go completion

Requires gocode

go get -u github.com/nsf/gocode