diff options
author | Yigit Sever | 2021-10-08 13:50:04 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-08 13:50:04 +0300 |
commit | 1c0aa32806e097a2a0c30b760ae4cad481e758c6 (patch) | |
tree | 853e8f17dec94f0c42e88003b1d906abfb7f28ec /.config/nvim/after/plugin/tabular_extra.vim | |
parent | 484188c99b21e668f40b84b21d1b21f5b9ce8d9e (diff) | |
download | dotfiles-1c0aa32806e097a2a0c30b760ae4cad481e758c6.tar.gz dotfiles-1c0aa32806e097a2a0c30b760ae4cad481e758c6.tar.bz2 dotfiles-1c0aa32806e097a2a0c30b760ae4cad481e758c6.zip |
nvim: ported wiki functions
Diffstat (limited to '.config/nvim/after/plugin/tabular_extra.vim')
-rw-r--r-- | .config/nvim/after/plugin/tabular_extra.vim | 14 |
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 | |||
4 | if !exists(':Tabularize') | ||
5 | finish " Give up here; the Tabular plugin musn't have been loaded | ||
6 | endif | ||
7 | |||
8 | nmap <Leader>t= :Tabularize /=<CR> | ||
9 | vmap <Leader>t= :Tabularize /=<CR> | ||
10 | nmap <Leader>t: :Tabularize /:\zs<CR> | ||
11 | vmap <Leader>t: :Tabularize /:\zs<CR> | ||
12 | |||
13 | AddTabularPattern first_comma /^[^,]*\zs,/r0c0l0 | ||
14 | AddTabularPattern first_colon /^[^:]*\zs:/r0c0l0 | ||