From: Jannik ZANDER Date: Wed, 8 Aug 2018 12:12:34 +0000 (+0200) Subject: Cursor lines X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=6644135416aa86d2e9d31ad585190604c15a3eba;p=vimfiles.git Cursor lines --- diff --git a/gvimrc b/gvimrc index 21da869..66b9aa1 100644 --- a/gvimrc +++ b/gvimrc @@ -1,46 +1,48 @@ - -" Use :help 'option' to see the documentation for the given option. - -set guioptions+=a -set guioptions=egmrti -set guioptions-=m "no menu bar -set guioptions-=T "no toolbar -set guioptions-=r "no scroolbar -set noguipty - -" mouse -set mousemodel=popup -set mousehide -set mouse=a - - -" mapping -map -map! - -" colors -highlight normal guibg=black guifg=white -highlight linenr guifg=grey -highlight BadWhitespace guifg=red - -set gcr=a:blinkon0 - -" fonts -set guifont=Monospace\ 10 -if has("mac") -" set guifont=Menlo:h12 - set guifont=monaco:h11 -elseif has("unix") -" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 - set guifont=inconsolata\ 11 -elseif has("win32") -" set guifont=consolas:h11,courier\ new:h10 - set guifont=consolas:h10:cANSI:qDRAFT -endif - -" help -if has("win32") - let winhelpfile='windows.hlp' - map K :execute "!start winhlp32 -k " . winhelpfile -endif - + +" Use :help 'option' to see the documentation for the given option. + +set guioptions+=a +set guioptions=egmrti +set guioptions-=m "no menu bar +set guioptions-=T "no toolbar +set guioptions-=r "no scroolbar +set noguipty + +" mouse +set mousemodel=popup +set mousehide +set mouse=a + + +" mapping +map +map! + +" colors +highlight normal guibg=black guifg=white +highlight linenr guifg=grey +highlight BadWhitespace guifg=red +highlight Cursorline guibg=darkgrey +highlight Cursorcolumn guibg=darkgrey + +set gcr=a:blinkon0 + +" fonts +set guifont=Monospace\ 10 +if has("mac") +" set guifont=Menlo:h12 + set guifont=monaco:h11 +elseif has("unix") +" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 + set guifont=inconsolata\ 11 +elseif has("win32") +" set guifont=consolas:h11,courier\ new:h10 + set guifont=consolas:h10:cANSI:qDRAFT +endif + +" help +if has("win32") + let winhelpfile='windows.hlp' + map K :execute "!start winhlp32 -k " . winhelpfile +endif + diff --git a/vimrc b/vimrc index 6b029db..4bd39f6 100644 --- a/vimrc +++ b/vimrc @@ -22,6 +22,7 @@ set incsearch set hlsearch set ignorecase set smartcase +set magic set showmatch set complete-=i set virtualedit=block @@ -42,11 +43,7 @@ set titlestring=%F set matchtime=2 " folding -set foldmethod=syntax -set foldlevelstart=10 -set foldnestmax=10 -set foldopen+=search -set foldclose=all +set foldmethod=indent " keyboard set backspace=indent,eol,start @@ -110,6 +107,10 @@ set background=dark highlight linenr ctermfg=grey highlight BadWhitespace ctermfg=red match BadWhitespace /\s\+$/ +highlight Cursorline ctermbg=darkgrey +highlight Cursorcolumn ctermbg=darkgrey +set cursorline +set cursorcolumn " fonts and chars set list @@ -118,7 +119,6 @@ if has('multi_byte') && &encoding ==# 'utf-8' else let &listchars = 'tab:> ,extends:>,precedes:<,nbsp:.' endif -set cursorline let &t_ti.="\e[1 q" let &t_SI.="\e[5 q" let &t_EI.="\e[1 q"