Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added more tips

...

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.

Alternatively, try installing https://github.com/w0rp/ale which utilizes Vim 8's asynchronous engine.

For NeoVim

Install the following plugin:

...

Note that this only works if you run vim from within the virtualenv that has pylint and pep8 installed.

Jump to Definition and Auto-Complete

There are a few options:

Debugging

Add this (or something similar) to your .vimrc:

Code Block
"Insert a ipdb breakpoint below or above current line
nnoremap <leader>b oimport ipdb; ipdb.set_trace()  # BREAKPOINT # noqa: E702<Esc>
nnoremap <leader>B Oimport ipdb; ipdb.set_trace()  # BREAKPOINT # noqa: E702<Esc>


JavaScript

Linting

Install https://github.com/vim-syntastic/syntastic follow README instructions, then add this to your .vimrc:

...

If you're feeling extra lazy, just clone my vim setup and run the included script: https://github.com/efischer19/personal_vim

Alternatively, try installing https://github.com/w0rp/ale which utilizes Vim 8's asynchronous engine.

Git

Install https://github.com/tpope/vim-fugitive for performing typical git actions in vim (log, blame, (un)stage, commit, diff, browse in Github, etc.).

Install https://github.com/airblade/vim-gitgutter to get indicators in the sign column for lines that have been added, removed, or changed compared to the git HEAD.

Install https://github.com/gregsexton/gitv for a git history browser similar to gitk. Or install https://github.com/junegunn/gv.vim for a git history browser similar to tig (and faster than gitv).

Other

Search for String in File

Just type "/".

Search for String in Project

Use ":grep". Or, install https://github.com/mileszs/ack.vim.