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>mm :split<cr>
|
||||
|
||||
" Delete a word forward and backward
|
||||
map <leader>a daw
|
||||
map <leader>d ciw
|
||||
|
||||
" Map paste and nonumber
|
||||
map <leader>p :set paste! paste?<cr>
|
||||
map <leader>o :set number! number?<cr>
|
||||
|
||||
" 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=
|
||||
|
||||
" Clear the search buffer (highlighting) when hitting return
|
||||
|
@ -408,6 +412,9 @@ endfunction
|
|||
call MapCR()
|
||||
nnoremap <leader><leader> <c-^>
|
||||
|
||||
" Replace currently selected text with default register without yanking it
|
||||
vnoremap p "_dP
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" ABBREVIATIONS
|
||||
|
|
Loading…
Reference in New Issue
Block a user