X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/bd8b9da55dd640f60590eb1236defd38814c81bd..148295024c93e47f90ac850bf068e592b16b1c7c:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 160aba8..bb4f941 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -268,9 +268,6 @@ nnoremap / :silent nohl nnoremap [ :tabprev nnoremap ] :tabnext -" Wrap -nnoremap W :set wrap! - " paste from selection nnoremap p* :silent! set paste"*p:set nopaste " paste from clipboard @@ -289,9 +286,6 @@ noremap ' ` " Select (charwise) the contents of the current line, excluding indentation. nnoremap vv ^vg_ -" Toggle [i]nvisible characters -nnoremap i :set list! - " Unfuck my screen nnoremap U :syntax sync fromstart:AirlineRefresh:redraw! @@ -378,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 @@ -398,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