diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2017-01-04 15:02:39 +0000 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2017-01-04 15:02:39 +0000 |
commit | fa054b62e97dabc9b5a23cb007ee2fa613607514 (patch) | |
tree | 9b83b2cfb19f91c8e2c6e48868333b51f546698a /Editor/vimrc | |
parent | 8ec30433a956bee8973531c67c7a928b3ba1b117 (diff) | |
download | dotfiles-fa054b62e97dabc9b5a23cb007ee2fa613607514.tar.gz dotfiles-fa054b62e97dabc9b5a23cb007ee2fa613607514.tar.bz2 dotfiles-fa054b62e97dabc9b5a23cb007ee2fa613607514.zip |
major updates
Diffstat (limited to 'Editor/vimrc')
-rw-r--r-- | Editor/vimrc | 18 |
1 files changed, 13 insertions, 5 deletions
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 = '<tab>' let g:UltiSnipsJumpForwardTrigger = '<tab>' let g:UltiSnipsJumpBackwardTrigger = '<s-tab>' + +""""""""""""""""""""""" +" CUSTOM TEXT-OBJECTS " +""""""""""""""""""""""" +for char in [ '_', '.', ':', ',', ';', '<bar>', '/', '<bslash>', '*', '+', '%', '-', '#' ] + execute 'xnoremap i' . char . ' :<C-u>normal! T' . char . 'vt' . char . '<CR>' + execute 'onoremap i' . char . ' :normal vi' . char . '<CR>' + execute 'xnoremap a' . char . ' :<C-u>normal! F' . char . 'vf' . char . '<CR>' + execute 'onoremap a' . char . ' :normal va' . char . '<CR>' +endfor |