]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
dwb: update github css
[dotfiles.git] / vim / vimrc
index 2301dc3b6d9983269d3428dd42a16947fb4e522f..bb4f941a7eb9763933463b02477a15e3915d2992 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -372,8 +372,7 @@ noremap <silent> <Leader>O :set paste<CR>m`O<ESC>``:set nopaste<CR>
 " Don't use Ex mode, use Q for formatting
 map Q gq
 
 " Don't use Ex mode, use Q for formatting
 map Q gq
 
-" allow undoing in insert-mode
-inoremap <C-U> <C-G>u<C-U>
+" break undo sequence before removing word
 inoremap <C-W> <C-G>u<C-W>
 
 nmap <Leader>b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4<CR>
 inoremap <C-W> <C-G>u<C-W>
 
 nmap <Leader>b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4<CR>
@@ -392,6 +391,9 @@ autocmd BufWinEnter *.* silent loadview
 " save with sudo
 cnoremap w!! w !sudo tee % > /dev/null
 
 " save with sudo
 cnoremap w!! w !sudo tee % > /dev/null
 
+" uppercase previous word
+inoremap <C-C> <Esc>gUiwgi
+
 " plugins options {{{1
 " ag {{{2
 let g:AgSmartCase = 1
 " plugins options {{{1
 " ag {{{2
 let g:AgSmartCase = 1