Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Support `:ab[breviate]`

Open wongjiahau opened this issue 7 years ago • 8 comments

  • 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?

wongjiahau avatar Dec 07 '17 06:12 wongjiahau

What is the :abbreviate feature?

jpoon avatar Dec 12 '17 13:12 jpoon

@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).

wongjiahau avatar Dec 13 '17 02:12 wongjiahau

Sounds similar to https://code.visualstudio.com/docs/editor/userdefinedsnippets?

jpoon avatar Dec 13 '17 02:12 jpoon

@jpoon It is similar but the user defined snippets is too hard to do sometimes.

wongjiahau avatar Dec 14 '17 03:12 wongjiahau

+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.

sobjornstad avatar Dec 12 '18 18:12 sobjornstad

I use https://marketplace.visualstudio.com/items?itemName=sygene.auto-correct to achieve this functionality.

ghost avatar Dec 17 '18 23:12 ghost

I guess you can record Macros and play them when ever you need to insert an abbreviation... image

rajabilal555 avatar Jan 03 '21 11:01 rajabilal555

I'm also looking forward to the implementation of this feature.

TankTechnology avatar Dec 14 '23 16:12 TankTechnology