feature checking
This commit is contained in:
parent
377cf0cdc1
commit
f4ca3f247c
6
vimrc
6
vimrc
|
@ -1017,7 +1017,9 @@ set wrapmargin=0
|
|||
set cursorline
|
||||
|
||||
set foldcolumn=2
|
||||
if has('patch-7-4-2201')
|
||||
set signcolumn=yes
|
||||
endif
|
||||
set colorcolumn=80,120
|
||||
|
||||
set iskeyword+=-
|
||||
|
@ -1077,7 +1079,9 @@ nnoremap <silent><space>ss :syntax sync fromstart<CR>
|
|||
|
||||
"}}}
|
||||
" terminal{{{
|
||||
if has('terminal')
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
endif
|
||||
"}}}
|
||||
" git mappings {{{
|
||||
" also see vim-fugitive plugin section
|
||||
|
@ -1244,8 +1248,10 @@ if g:vimrc_auto_window_settings
|
|||
autocmd!
|
||||
autocmd WinEnter * call SetColorColumn()
|
||||
autocmd WinEnter * set cursorline | set cursorcolumn
|
||||
if exists('##CmdLineEnter')
|
||||
autocmd WinLeave * setlocal colorcolumn=0
|
||||
autocmd WinLeave * set nocursorline | set nocursorcolumn
|
||||
endif
|
||||
augroup END
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue