diff --git a/vimrc b/vimrc index b7b81e5..b4674a5 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " various settings -set number helplang=en foldmethod=marker ttymouse=xterm2 mouse= -set history=50 nobackup nomodeline backspace=indent,eol,start +set relativenumber number helplang=en foldmethod=marker history=50 nomodeline +set nobackup backspace=indent,eol,start colorcolumn=80 ttymouse=xterm2 mouse= " hidden characters set list listchars=tab:\|_,nbsp:x,trail:* " search @@ -27,10 +27,6 @@ if has("nvim") || v:version >= 800 inoremap cnoremap endif -if has("nvim") || v:version >= 703 - set colorcolumn=80 relativenumber - nnoremap r :setlocal relativenumber! -endif " maps " leader @@ -45,6 +41,7 @@ lnoremap cnoremap " some toggles nnoremap n :setlocal number! +nnoremap r :setlocal relativenumber! nnoremap l :setlocal list! nnoremap c :setlocal cursorline! nnoremap / :nohls