VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
14k stars 1.32k forks source link

Support `:ab[breviate]` #2203

Open wongjiahau opened 6 years ago

wongjiahau commented 6 years ago

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?

jpoon commented 6 years ago

What is the :abbreviate feature?

wongjiahau commented 6 years ago

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

jpoon commented 6 years ago

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

wongjiahau commented 6 years ago

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

sobjornstad commented 5 years ago

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

ghost commented 5 years ago

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

rajabilal555 commented 3 years ago

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

TankTechnology commented 11 months ago

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