feature checking

This commit is contained in:
ManjaroOne666 2018-12-12 09:09:04 +00:00
parent 377cf0cdc1
commit f4ca3f247c
1 changed files with 10 additions and 4 deletions

10
vimrc
View File

@ -1017,7 +1017,9 @@ set wrapmargin=0
set cursorline set cursorline
set foldcolumn=2 set foldcolumn=2
set signcolumn=yes if has('patch-7-4-2201')
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{{{
tnoremap <Esc> <C-\><C-n> if has('terminal')
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