[vim] add align plugin with hotkey

Leader+= on a line in a block of variables will align on the equal sign.
Had to disable Leader+tt cause it conflicts with Align
This commit is contained in:
Josh Sherman 2017-05-28 10:48:27 -05:00
parent db9c11c5f0
commit 7fafba6041
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
3 changed files with 7 additions and 1 deletions

3
.gitmodules vendored
View file

@ -100,3 +100,6 @@
[submodule "vim/pack/plugins/start/vim-coffee-script"] [submodule "vim/pack/plugins/start/vim-coffee-script"]
path = vim/pack/plugins/start/vim-coffee-script path = vim/pack/plugins/start/vim-coffee-script
url = https://github.com/kchmck/vim-coffee-script url = https://github.com/kchmck/vim-coffee-script
[submodule "vim/pack/plugins/start/Align"]
path = vim/pack/plugins/start/Align
url = https://github.com/vim-scripts/Align

@ -0,0 +1 @@
Subproject commit 787662fe90cd057942bc5b682fd70c87e1a9dd77

View file

@ -141,10 +141,12 @@ nnoremap <Leader>c :w<CR>:!wc %<CR>
nnoremap <Leader>v :so ~/.vim/vimrc<CR> nnoremap <Leader>v :so ~/.vim/vimrc<CR>
nnoremap <Leader>ss / $<CR> nnoremap <Leader>ss / $<CR>
nnoremap <Leader>tt /\t$<CR> "nnoremap <Leader>tt /\t$<CR>
nnoremap <Leader>n <Esc>:call ToggleLineNumbers()<CR> nnoremap <Leader>n <Esc>:call ToggleLineNumbers()<CR>
nnoremap <Leader>= :Align =<CR>
syntax on syntax on
syntax sync fromstart syntax sync fromstart