Created
October 8, 2017 21:49
-
-
Save jasongonzales23/6189da1d82ee05a91edfd53403d6941d to your computer and use it in GitHub Desktop.
Vim console.log shortcut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Console log from insert mode; Puts focus inside parentheses | |
imap cll console.log()<Esc><S-f>(a | |
" Console log from visual mode on next line, puts visual selection inside parentheses | |
vmap cll yocll<Esc>p | |
" Console log from normal mode, inserted on next line with word your on inside parentheses | |
nmap cll yiwocll<Esc>p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment