Vim: Tweaks to vimrc (improved pasting! yay)
This commit is contained in:
parent
7bc2349fbb
commit
8cfdd27674
9
vimrc
9
vimrc
|
@ -393,12 +393,16 @@ map <c-h> <c-w><Left>
|
||||||
map <leader>m :vsplit<cr>
|
map <leader>m :vsplit<cr>
|
||||||
map <leader>mm :split<cr>
|
map <leader>mm :split<cr>
|
||||||
|
|
||||||
|
" Delete a word forward and backward
|
||||||
|
map <leader>a daw
|
||||||
|
map <leader>d ciw
|
||||||
|
|
||||||
" Map paste and nonumber
|
" Map paste and nonumber
|
||||||
map <leader>p :set paste! paste?<cr>
|
map <leader>p :set paste! paste?<cr>
|
||||||
map <leader>o :set number! number?<cr>
|
map <leader>o :set number! number?<cr>
|
||||||
|
|
||||||
" Spell checking
|
" Spell checking
|
||||||
map <leader>d :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!"<cr>
|
map <leader>j :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!"<cr>
|
||||||
map <leader>= z=
|
map <leader>= z=
|
||||||
|
|
||||||
" Clear the search buffer (highlighting) when hitting return
|
" Clear the search buffer (highlighting) when hitting return
|
||||||
|
@ -408,6 +412,9 @@ endfunction
|
||||||
call MapCR()
|
call MapCR()
|
||||||
nnoremap <leader><leader> <c-^>
|
nnoremap <leader><leader> <c-^>
|
||||||
|
|
||||||
|
" Replace currently selected text with default register without yanking it
|
||||||
|
vnoremap p "_dP
|
||||||
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" ABBREVIATIONS
|
" ABBREVIATIONS
|
||||||
|
|
Loading…
Reference in New Issue
Block a user