Last active
February 6, 2018 19:22
-
-
Save miguelmota/8c78286d12d3852589cb533d80952397 to your computer and use it in GitHub Desktop.
VIM optimizations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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