4 years ago
Sometimes you are working on Huge file and the syntax slows down your work, in these cases just run the following snippet
" nnoremap <Leader>s Toggle Syntax " with a little help from vi.stackexchange.com: https://vi.stackexchange.com/a/24418/7339 nnoremap <silent> <expr> <Leader>s exists('g:syntax_on') ? ':syntax off<cr>' : ':syntax enable<cr>'