...
Code Block | ||
---|---|---|
| ||
$ mkdir -p ~/.vim/bundle $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
Then add the following to your .vimrc file:
...
To install or update plugins, run the command from within vim
Code Block |
---|
:PluginUpdate |
Or from the command {{ :PluginUpdate }}line:
Code Block |
---|
$ vim +PluginUpdate +qa |
vim-plug
Calen Pennington (Deactivated): care to fill this out?
Python
Editing
Syntax Highlighting
...
To show invisible characters inline, add the following to your .vimrc
Code Block |
---|
set listchars=tab:→ ,trail:·,nbsp:¤,precedes:«,extends:»,eol:↲ " specify which characters to use. If you don't have unicode support in your terminal, adjust these accordingly set list " turn on display of listchars set nolist " turn off display of listchars |
The above commands list and nolist settings can be added to your .vimrc as is, or run in ex mode (escape from insert mode, and type `:` followed by the command.type :set list
or :set nolist
)
Jump to File (fuzzy search)
...
Code Block |
---|
# Using https://github.com/junegunn/vim-plug call plug#begin('~/.config/nvim/plugged') Plug 'ctrlpvim/ctrlp.vim' call plug#end() |
Quality
Use the Install the following plugin using your preferred plugin manager:
...
Configure it to use pylint and pep8 in your .vimrc:
...
You can navigate to the Syntastic report split using using ^ww
and then hit enter on any issue to jump to that line in the main split, or you can navigate through them from the main split using :lnext
and :lprevious
.
...
Note: Improvements to the statusline would be welcome. The one above doesn't show the usual line/column number information unless all lint errors are resolved.
For NeoVim
Use the neomake plugin. Install the following plugin:
Configure it thusly:
Code Block |
---|
call plug#begin('~/.config/nvim/plugged') Plug 'benekastah/neomake' call plug#end() " Neomake let g:neomake_python_enabled_makers = ['pylint', 'pep8'] autocmd! BufWritePost * Neomake |
...