From 86acbe226b8638594ecb647935630de59c6220b4 Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 31 Aug 2016 19:21:42 +0300 Subject: [PATCH] some vimrc fixes and changes --- vimrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index 1c590bf..42e63d9 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,7 @@ set noerrorbells visualbell t_vb= set shiftwidth=3 set tabstop=3 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 if $TERM =~ '^[xterm|rxvt-unicode|screen]' @@ -59,12 +60,16 @@ nnoremap L $ " still have to deal with old vim versions :< if v:version >= 700 - set helplang=en + if v:version >= 703 + set relativenumber + nnoremap r :setlocal relativenumber! + endif - set relativenumber + set helplang=en set list + set number set listchars=tab:\|_,nbsp:x,trail:* - nnoremap n :setlocal relativenumber! number! + nnoremap n :setlocal number! nnoremap l :setlocal list! " enable case indentation @@ -146,8 +151,6 @@ if v:version >= 700 let g:solarized_visibility='low' colorscheme solarized else - set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] - colorscheme default endif