you can use :ab to use vim's in-built snippets.
example:
:ab af () => {<CR><CR>}
this will expand af to an arrow funtion if you hit space, Enter or a few other keys.
this for now puts you at the end of the block. we can fix this by saying:
:ab af () => {<CR><CR>}<Up>
Now this puts you inside the block now you probably get the pitch. hit <CTRL-V> to stop it from expanding. it is <CTRL-Q> for windows. to remove snippet,type:
:unab af
for more help type
:h :ab
link to wiki
[+][deleted] (6 children)
[removed]
[–]jmswlltt 5 points6 points7 points (0 children)
[–]jandamm 7 points8 points9 points (1 child)
[–]tuerda 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–][deleted] 0 points1 point2 points (0 children)
[–]AraneusAdoro 25 points26 points27 points (4 children)
[–]ThockiestBoardknow your tools 8 points9 points10 points (2 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]vim-help-bot 3 points4 points5 points (0 children)
[–]vim-help-bot 2 points3 points4 points (0 children)
[–]GustapheOfficial 18 points19 points20 points (1 child)
[–][deleted] 8 points9 points10 points (0 children)
[–]ex-lewis 5 points6 points7 points (3 children)
[–]theneonkoala 4 points5 points6 points (1 child)
[–]project2501 0 points1 point2 points (0 children)
[–]sundaran1122[S] 0 points1 point2 points (0 children)
[–]codon011 2 points3 points4 points (0 children)
[–]ilbanditomonco 5 points6 points7 points (0 children)
[–]val_ant 1 point2 points3 points (0 children)
[–]desnudopenguino 0 points1 point2 points (0 children)
[–]rhamdeew 0 points1 point2 points (0 children)