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