X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/f48bc8404d5d7d0ddbf073e6c02339b067d7a1fe..249571fee62f43f55b1d0b84d703d6a7b34b53d9:/vim/vimrc?ds=sidebyside diff --git a/vim/vimrc b/vim/vimrc index 2301dc3..bb4f941 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -372,8 +372,7 @@ noremap O :set pastem`O``:set nopaste " Don't use Ex mode, use Q for formatting map Q gq -" allow undoing in insert-mode -inoremap u +" break undo sequence before removing word inoremap u nmap b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4 @@ -392,6 +391,9 @@ autocmd BufWinEnter *.* silent loadview " save with sudo cnoremap w!! w !sudo tee % > /dev/null +" uppercase previous word +inoremap gUiwgi + " plugins options {{{1 " ag {{{2 let g:AgSmartCase = 1