summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-06-01 23:41:16 +0200
committerTharre <tharre3@gmail.com>2016-10-07 20:11:00 +0000
commitc29db02c4549032d6132c91f5cb83aad65769cd9 (patch)
tree8c8169be84401b628708854de17f73dfab6baf94
parente679b81eb49f71b28789a595ccd7f5ef7866b08c (diff)
downloaddotfiles-c29db02c4549032d6132c91f5cb83aad65769cd9.tar.gz
dotfiles-c29db02c4549032d6132c91f5cb83aad65769cd9.tar.xz
dotfiles-c29db02c4549032d6132c91f5cb83aad65769cd9.zip
vim: bind keys for vim-easy-align
-rw-r--r--shell/_vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/_vimrc b/shell/_vimrc
index c106ad0..ba04334 100644
--- a/shell/_vimrc
+++ b/shell/_vimrc
@@ -119,6 +119,12 @@ let g:airline#extensions#syntastic#enabled = 0
" Unite
nnoremap <C-p> :Unite file_rec/async<cr>
+" Start interactive EasyAlign in visual mode (e.g. vip<Enter>)
+vmap <Enter> <Plug>(EasyAlign)
+
+" Start interactive EasyAlign for a motion/text object (e.g. gaip)
+nmap ga <Plug>(EasyAlign)
+
if !has('clipboard')
echo "Clipboard not supported!"
endif