Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better tabular.vim maps and docs

  • Loading branch information...
commit 1a6a4fa3126212d829176ce5963e8729f4e68244 1 parent edee8b2
@gf3 authored
Showing with 10 additions and 4 deletions.
  1. +6 −4 .vimrc
  2. +4 −0 README.md
View
10 .vimrc
@@ -274,10 +274,12 @@ let g:ctrlp_open_multiple_files = 't' " Open multiple files in new tabs
" Tabular
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 /,\zs<CR>
-vmap <Leader>a, :Tabularize /,\zs<CR>
+nmap <Leader>a=> :Tabularize /=><CR>
+vmap <Leader>a=> :Tabularize /=><CR>
+nmap <Leader>a: :Tabularize /:\zs/l0l1<CR>
+vmap <Leader>a: :Tabularize /:\zs/l0l1<CR>
+nmap <Leader>a, :Tabularize /,\zs/l0l1<CR>
+vmap <Leader>a, :Tabularize /,\zs/l0l1<CR>
" Rainbow Parenthesis
nnoremap <leader>rp :RainbowParenthesesToggle<CR>
View
4 README.md
@@ -54,6 +54,10 @@ Reference to vim mappings.
### General
+* `,a=` Tabularize on assignment (=)
+* `,a=>` Tabularize on hash rocket keys (=>)
+* `,a:` Tabularize on hash/object/dict keys (:)
+* `,a,` Tabularize on comma (,)
* `,c` Toggle invisibles.
* `,ls` Show buffers (same as `:buffers`).
* `,p` Toggle paste mode.
Please sign in to comment.
Something went wrong with that request. Please try again.