From fa054b62e97dabc9b5a23cb007ee2fa613607514 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 4 Jan 2017 15:02:39 +0000 Subject: major updates --- Editor/vimrc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Editor') diff --git a/Editor/vimrc b/Editor/vimrc index 16c42e9..571b9b5 100644 --- a/Editor/vimrc +++ b/Editor/vimrc @@ -6,13 +6,11 @@ call vundle#begin() Plugin 'ervandew/supertab' Plugin 'vim-scripts/DrawIt' +Plugin 'takac/vim-hardtime' +" tpope goodness +Plugin 'tpope/vim-abolish' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' -Plugin 'takac/vim-hardtime' - -Plugin 'Valloric/YouCompleteMe' -Plugin 'SirVer/ultisnips' -Plugin 'honza/vim-snippets' call vundle#end() " required filetype plugin indent on " required @@ -125,3 +123,13 @@ let g:UltiSnipsEditSplit='vertical' let g:UltiSnipsExpandTrigger = '' let g:UltiSnipsJumpForwardTrigger = '' let g:UltiSnipsJumpBackwardTrigger = '' + +""""""""""""""""""""""" +" CUSTOM TEXT-OBJECTS " +""""""""""""""""""""""" +for char in [ '_', '.', ':', ',', ';', '', '/', '', '*', '+', '%', '-', '#' ] + execute 'xnoremap i' . char . ' :normal! T' . char . 'vt' . char . '' + execute 'onoremap i' . char . ' :normal vi' . char . '' + execute 'xnoremap a' . char . ' :normal! F' . char . 'vf' . char . '' + execute 'onoremap a' . char . ' :normal va' . char . '' +endfor -- cgit v1.2.3-54-g00ecf