aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2020-10-13 18:58:15 +0200
committerTeddy Wing2020-10-13 19:11:22 +0200
commit284d25e594cc6cd39547f3ee7e9f568b2017aabd (patch)
treea0e5d427fac4552787fcdc1e72fcf177605533cf /plugin
parent82ee991cd92c7f09faf1174fadbcc82161a43cc5 (diff)
downloaddotvim-284d25e594cc6cd39547f3ee7e9f568b2017aabd.tar.bz2
vimrc: Replace `t` cabbrev with `T` command alias
Alias `T` to `TComment` instead of using a cabbrev. The abbreviation would mess up commands with "t" in them, like turning `tjump` into `TCommentjump`. Replace the abbreviation with a new `T` command that acts as an alias for `TComment`. I didn't include argument completion because I don't use that. Otherwise, replicate the `TComment` command's definition and pass all parameters to it. This gives us a short alias for commenting, and `T` is the first completion with `:t<Tab>`.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/abbreviations.vim1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugin/abbreviations.vim b/plugin/abbreviations.vim
index 58966be..0e4451e 100644
--- a/plugin/abbreviations.vim
+++ b/plugin/abbreviations.vim
@@ -1,2 +1 @@
-cabbrev t TComment
cabbrev tb TBuffer