From 1c0aa32806e097a2a0c30b760ae4cad481e758c6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 8 Oct 2021 13:50:04 +0300 Subject: nvim: ported wiki functions --- .config/nvim/after/plugin/tabular_extra.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/nvim/after/plugin/tabular_extra.vim (limited to '.config/nvim/after/plugin/tabular_extra.vim') 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 @@ +" after/plugin/my_tabular_commands.vim +" Provides extra :Tabularize commands + +if !exists(':Tabularize') + finish " Give up here; the Tabular plugin musn't have been loaded +endif + +nmap t= :Tabularize /= +vmap t= :Tabularize /= +nmap t: :Tabularize /:\zs +vmap t: :Tabularize /:\zs + +AddTabularPattern first_comma /^[^,]*\zs,/r0c0l0 +AddTabularPattern first_colon /^[^:]*\zs:/r0c0l0 -- cgit v1.2.3-70-g09d2