[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:
parent
db9c11c5f0
commit
7fafba6041
3 changed files with 7 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -100,3 +100,6 @@
|
|||
[submodule "vim/pack/plugins/start/vim-coffee-script"]
|
||||
path = vim/pack/plugins/start/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
|
||||
|
|
1
vim/pack/plugins/start/Align
Submodule
1
vim/pack/plugins/start/Align
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 787662fe90cd057942bc5b682fd70c87e1a9dd77
|
|
@ -141,10 +141,12 @@ nnoremap <Leader>c :w<CR>:!wc %<CR>
|
|||
nnoremap <Leader>v :so ~/.vim/vimrc<CR>
|
||||
|
||||
nnoremap <Leader>ss / $<CR>
|
||||
nnoremap <Leader>tt /\t$<CR>
|
||||
"nnoremap <Leader>tt /\t$<CR>
|
||||
|
||||
nnoremap <Leader>n <Esc>:call ToggleLineNumbers()<CR>
|
||||
|
||||
nnoremap <Leader>= :Align =<CR>
|
||||
|
||||
syntax on
|
||||
syntax sync fromstart
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue