linux
Vim mapping for
console.log output
Use this vim mapping for javascript to quickly type
for an object and including a label with the same name as the object.
console.log
map <S-F11> oconsole.log('here: ');<ESC>ddPpnhx4l3xk:.,.+1s/here/
map! <S-F11> console.log('here: ');<ESC>ddPpnhx4l3xk:.,.+1s/here/
Here is an example in action:
Last Updated: 2020-06-22 07:41:47