Skip to content

Commit

Permalink
Changed <Leader>a= to only align one = sign
Browse files Browse the repository at this point in the history
Currently `<Leader>a=` acting on the following:
````
a = b == 3
xyz = u == v
````
produces
````
a   = b = = 3
xyz = u = = v
````
.. which is probably not what the user intended.
Since aligning `=` almost always refers to assignment, it makes sense to only align the first one.
  • Loading branch information
jazmit committed Feb 4, 2015
1 parent 7e458dd commit 095a23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@
if isdirectory(expand("~/.vim/bundle/tabular"))
nmap <Leader>a& :Tabularize /&<CR>
vmap <Leader>a& :Tabularize /&<CR>
nmap <Leader>a= :Tabularize /=<CR>
vmap <Leader>a= :Tabularize /=<CR>
nmap <Leader>a= :Tabularize /^[^=]*\zs=<CR>
vmap <Leader>a= :Tabularize /^[^=]*\zs=<CR>
nmap <Leader>a=> :Tabularize /=><CR>
vmap <Leader>a=> :Tabularize /=><CR>
nmap <Leader>a: :Tabularize /:<CR>
Expand Down

0 comments on commit 095a23c

Please sign in to comment.