summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/tabular_extra.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin/tabular_extra.vim')
-rw-r--r--.config/nvim/after/plugin/tabular_extra.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/tabular_extra.vim b/.config/nvim/after/plugin/tabular_extra.vim
new file mode 100644
index 0000000..28713ca
--- /dev/null
+++ b/.config/nvim/after/plugin/tabular_extra.vim
@@ -0,0 +1,14 @@
1" after/plugin/my_tabular_commands.vim
2" Provides extra :Tabularize commands
3
4if !exists(':Tabularize')
5 finish " Give up here; the Tabular plugin musn't have been loaded
6endif
7
8nmap <Leader>t= :Tabularize /=<CR>
9vmap <Leader>t= :Tabularize /=<CR>
10nmap <Leader>t: :Tabularize /:\zs<CR>
11vmap <Leader>t: :Tabularize /:\zs<CR>
12
13AddTabularPattern first_comma /^[^,]*\zs,/r0c0l0
14AddTabularPattern first_colon /^[^:]*\zs:/r0c0l0