Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active February 6, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/8c78286d12d3852589cb533d80952397 to your computer and use it in GitHub Desktop.
Save miguelmota/8c78286d12d3852589cb533d80952397 to your computer and use it in GitHub Desktop.
VIM optimizations
- wrap autocommands in augroups
if has("autocmd")
augroup vimrc_autocmd
autocmd!
augroup END
endif
- use set foldmethod=indent (instead of syntax) for faster folding
- disable custom colorschemes
- set syntax=off
- other optimizations
set nocursorline
set nocursorcolumn
set norelativenumber
- possible optimizations
set scrolljump=5
set lazyredraw
set synmaxcol=180
- pretty much disable anything that dynamically changes color
- use vim-plug as the plugin manager
- run :profile to see which plugins and functions are slow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment