Vim
Vim copied to clipboard
Support `:ab[breviate]`
- Click thumbs-up 👍 on this issue if you want it!
- Click confused 😕 on this issue if not having it makes VSCodeVim unusable.
The VSCodeVim team prioritizes issues based on reaction count.
I had searched through the issues, but I couldn't find a relevant one, so my question is simple, is the :abbreviate
feature supported in VsCodeVim? Or is it supported through NeoVim integration?
What is the :abbreviate
feature?
@jpoon Sorry I forgot to include the docs, you can find the doc about abbreviate
at http://vim.wikia.com/wiki/Using_abbreviations.
For example, if you run the following command :
:ab vscv Visual Studio Code Vim
Then whenever you type vscv
followed by punctuation such as a space or comma, the vscv
will be expanded to Visual Studio Code Vim
. This also happens if you type vscv
then press Esc or Enter.
To be honest I found this to be very useful, because defining snippets can be an overkill sometimes, for example I always wanted to abbreviate console.log
into cl
(without needing to install snippets).
Sounds similar to https://code.visualstudio.com/docs/editor/userdefinedsnippets?
@jpoon It is similar but the user defined snippets is too hard to do sometimes.
+1. I have a large dictionary with hundreds of abbreviations built up over years of using Vim and I get irritated by not having them every day. Snippets are overkill -- many of mine are single words that take a while to type or automatic typo correction.
I use https://marketplace.visualstudio.com/items?itemName=sygene.auto-correct to achieve this functionality.
I guess you can record Macros and play them when ever you need to insert an abbreviation...
I'm also looking forward to the implementation of this feature.