Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Content Zone

Table of Contents

Installing plugins

There are several plugin managers for vim.  They all work slightly differently, but generally allow you to specify the github repository for a plugin, and have the tools load the code into your vim configuration directory (~/.vim).  Directions for a couple plugin managers are included here, so that advice on specific plugins can be given in a manager-neutral way.

...

Calen Pennington (Deactivated): care to fill this out?

Python

Editing

Syntax Highlighting

Add the following to your .vimrc

Code Block
filetype plugin indent on 

Show Hidden Characters

To show invisible characters inline, add the following to your .vimrc

...

The list and nolist settings can be added to your .vimrc as is, or run in ex mode (escape from insert mode, and type :set list or :set nolist)

Jump to File (fuzzy search)

Use the https://github.com/ctrlpvim/ctrlp.vim plugin

Code Block
# Using https://github.com/junegunn/vim-plug

call plug#begin('~/.config/nvim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
call plug#end()

Quality

Install the following plugin using your preferred plugin manager:

...

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

Install the following plugin:

...

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

JavaScript

Linting

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

Code Block
let g:syntastic_javascript_checkers=['eslint']

Also, install: https://github.com/mtscout6/syntastic-local-eslint.vim so that it lints based on each individual project's configuration.

You can also use https://github.com/sbdchd/neoformat to run an auto-formatter like prettier or prettier-eslint.

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