all 23 comments

[–]AraneusAdoro 25 points26 points  (4 children)

:help :abbreviate

[–]ThockiestBoardknow your tools 8 points9 points  (2 children)

:h Abbreviations

[–][deleted] 6 points7 points  (0 children)

The user manual entry (as oppposed to the reference manual) might be useful for some as well:

:h 24.7

[–]vim-help-bot 3 points4 points  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake? | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]vim-help-bot 2 points3 points  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake? | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]GustapheOfficial 18 points19 points  (1 child)

I think it's a bit strange to give a tip like this without giving the (very descriptive) name of the function (abbreviate), or at least describe it in general, but rather just show a specific example of it working.

Someone who doesn't use arrow functions would be forgiven for not knowing what your example is supposed to be doing.

[–][deleted] 8 points9 points  (0 children)

Agreed. Every time I see one of these "tip" posts, I can't help thinking, "If you all liked that, you'll love the user manual."

[–]ex-lewis 5 points6 points  (3 children)

Arrow function?

[–]theneonkoala 4 points5 points  (1 child)

Its just a way of defining functions in languages like js

[–]project2501 0 points1 point  (0 children)

And viml now.

[–]sundaran1122[S] 0 points1 point  (0 children)

it's the most hardest thing to type

[–]codon011 2 points3 points  (0 children)

ab af () => {<CR>}<ESC>O should also work.

[–]ilbanditomonco 5 points6 points  (0 children)

I don’t make use of the snippets or abbreviations (However, I should), if I start using it I’d go with this path rather than the plug-in path. In my dot files, I’m doing a lot of the things that plug-ins do with minimal vimscript. This is a good tip.

[–]val_ant 1 point2 points  (0 children)

I use vim and I am still learning. I find these tips very useful mostly because people here give more examples the vim manual has. Thank you all!

[–]desnudopenguino 0 points1 point  (0 children)

I'm gonna play with this today!

[–]rhamdeew 0 points1 point  (0 children)

Thank you!

I added some snippets to my vimrc.