add &diff window width update to vimrc
This commit is contained in:
parent
0fd7c3c0b5
commit
b057ea238e
10
vimrc
10
vimrc
@ -109,10 +109,14 @@ set background=dark
|
|||||||
set showtabline=2
|
set showtabline=2
|
||||||
|
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
|
colorscheme ir_black
|
||||||
runtime ftplugin/man.vim
|
runtime ftplugin/man.vim
|
||||||
nmap K :Man <cword><CR>
|
nmap K :Man <cword><CR>
|
||||||
set lines=38
|
set lines=38
|
||||||
map ,w :winpos 769 153
|
map ,w :winpos 769 153
|
||||||
|
if &diff
|
||||||
|
set columns=175
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" mappings
|
" mappings
|
||||||
@ -141,9 +145,9 @@ set nomousehide
|
|||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
autocmd FileType text setlocal noautoindent
|
autocmd FileType text setlocal noautoindent
|
||||||
autocmd FileType c match error /\v\s+$/
|
" autocmd FileType c match error /\v\s+$/
|
||||||
autocmd FileType c 2match error /\t/
|
" autocmd FileType c 2match error /\t/
|
||||||
autocmd FileType cpp 2match error /\t/
|
" autocmd FileType cpp 2match error /\t/
|
||||||
autocmd FileType c syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>"
|
autocmd FileType c syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>"
|
||||||
autocmd FileType cpp syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>"
|
autocmd FileType cpp syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>"
|
||||||
autocmd FileType dosbatch syn match Comment "^@rem\($\|\s.*$\)"lc=4 contains=dosbatchTodo,@dosbatchNumber,dosbatchVariable,dosbatchArgument
|
autocmd FileType dosbatch syn match Comment "^@rem\($\|\s.*$\)"lc=4 contains=dosbatchTodo,@dosbatchNumber,dosbatchVariable,dosbatchArgument
|
||||||
|
Loading…
x
Reference in New Issue
Block a user