some vimrc fixes and changes
This commit is contained in:
parent
d1440f2cc1
commit
86acbe226b
1 changed files with 8 additions and 5 deletions
13
vimrc
13
vimrc
|
@ -21,6 +21,7 @@ set noerrorbells visualbell t_vb=
|
||||||
set shiftwidth=3
|
set shiftwidth=3
|
||||||
set tabstop=3
|
set tabstop=3
|
||||||
set noexpandtab
|
set noexpandtab
|
||||||
|
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
|
||||||
|
|
||||||
" 256 colours at almost all times
|
" 256 colours at almost all times
|
||||||
if $TERM =~ '^[xterm|rxvt-unicode|screen]'
|
if $TERM =~ '^[xterm|rxvt-unicode|screen]'
|
||||||
|
@ -59,12 +60,16 @@ nnoremap L $
|
||||||
|
|
||||||
" still have to deal with old vim versions :<
|
" still have to deal with old vim versions :<
|
||||||
if v:version >= 700
|
if v:version >= 700
|
||||||
set helplang=en
|
if v:version >= 703
|
||||||
|
set relativenumber
|
||||||
|
nnoremap <Leader>r :setlocal relativenumber!<CR>
|
||||||
|
endif
|
||||||
|
|
||||||
set relativenumber
|
set helplang=en
|
||||||
set list
|
set list
|
||||||
|
set number
|
||||||
set listchars=tab:\|_,nbsp:x,trail:*
|
set listchars=tab:\|_,nbsp:x,trail:*
|
||||||
nnoremap <Leader>n :setlocal relativenumber! number!<CR>
|
nnoremap <Leader>n :setlocal number!<CR>
|
||||||
nnoremap <Leader>l :setlocal list!<CR>
|
nnoremap <Leader>l :setlocal list!<CR>
|
||||||
|
|
||||||
" enable case indentation
|
" enable case indentation
|
||||||
|
@ -146,8 +151,6 @@ if v:version >= 700
|
||||||
let g:solarized_visibility='low'
|
let g:solarized_visibility='low'
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
else
|
else
|
||||||
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
|
|
||||||
|
|
||||||
colorscheme default
|
colorscheme default
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue