1
0
Fork 0

let us assume by default that we run vim 703+

This commit is contained in:
Von Random 2017-02-25 15:50:20 +03:00
parent aae26f7a8c
commit bab3fbadeb

9
vimrc
View file

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