some maps modified for vimrc
This commit is contained in:
parent
dee2369e10
commit
becada2d07
1 changed files with 8 additions and 9 deletions
17
vimrc
17
vimrc
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue