1
0
Fork 0

some maps modified for vimrc

This commit is contained in:
Von Random 2018-07-21 10:56:45 +03:00
parent dee2369e10
commit becada2d07

17
vimrc
View file

@ -15,8 +15,7 @@ set wildmenu showcmd ruler laststatus=2
set statusline=[%F]\ %R%H%W%M\ %=[%{&fenc}/%{&ff}]\ %y\ [%4l/%L:%3v] set statusline=[%F]\ %R%H%W%M\ %=[%{&fenc}/%{&ff}]\ %y\ [%4l/%L:%3v]
" update window title " update window title
if $TERM =~ '^screen' if $TERM =~ '^screen'
set t_ts=k set t_ts=k t_fs=\
set t_fs=\
endif endif
set title titlestring=[%{hostname()}]\ %t\ -\ vim set title titlestring=[%{hostname()}]\ %t\ -\ vim
" enable case indentation " enable case indentation
@ -42,16 +41,16 @@ nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR> nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>w :setlocal wrap!<CR> nnoremap <Leader>w :setlocal wrap!<CR>
"turn off highlight until next search "turn off highlight until next search
nnoremap <Leader>/ :noh<CR> noremap <Leader>/ :noh<CR>
"copy to / paste from clipboard "copy to / paste from clipboard
vmap <Leader>y "+y noremap <Leader>y "+y
vmap <Leader>d "+d noremap <Leader>d "+d
nmap <Leader>p "+p noremap <Leader>p "+p
nmap <Leader>P "+P noremap <Leader>P "+P
vmap <Leader>p "+p
vmap <Leader>P "+P
"move macro somewhere I won't accidentally use it "move macro somewhere I won't accidentally use it
noremap q <NOP> noremap q <NOP>
"Return in normal should insert new lines
nnoremap <CR> o<ESC>k
"quit / save "quit / save
nnoremap <Leader>q :q<CR> nnoremap <Leader>q :q<CR>
nnoremap <Leader>s :w<CR> nnoremap <Leader>s :w<CR>