From a4383bb89be5ee4650780b87d66dd2724af4ad9f Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 26 Mar 2018 17:25:11 +0200 Subject: Minor changes to improve performance on huge files --- vimrc-full | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vimrc-full') diff --git a/vimrc-full b/vimrc-full index 819222f..dfff12d 100644 --- a/vimrc-full +++ b/vimrc-full @@ -1043,7 +1043,6 @@ function! ExtendColorTheme() " highlight! link LightlineLeft_tabline_1 ColorColumn " highlight! link LightlineLeft_tabline_0_1 ColorColumn - highlight! Todo guibg=#ffffaa guifg=#000000 gui=bold term=bold highlight! cStatement guifg=red gui=bold term=bold @@ -1051,13 +1050,13 @@ function! ExtendColorTheme() autocmd InsertEnter * set list autocmd InsertLeave * set nolist - " highlight double words (its unlikely they are right) - autocmd InsertLeave * syntax match Convention /\v<(\w+)\_s+\1>/ containedin=ALL - " Show trailing whitepace and spaces before a tab as part of the syntax highlighting highlight! link Convention Error - autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL - autocmd InsertEnter * syntax clear Convention + " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL + " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL + autocmd BufEnter,BufWritePost * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL + " TODO: faster strategy + " autocmd InsertEnter * syntax clear Convention " autocmd BufEnter,InsertLeave * execute ':syntax match Convention /\%>'.&textwidth.'v./ containedin=ALL' autocmd InsertEnter * set colorcolumn=80,120 @@ -1074,6 +1073,7 @@ set termguicolors | " When on, uses highlight-guifg and highlight-guibg attribut if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) let g:base16_shell_path="~/.config/base16-shell/scripts" let base16colorspace=256 + let syntax_cmd="skip" " vim internal, use base16 and no default colors set background=dark source ~/.vimrc_background else -- cgit v1.2.3