added a console.log() shortcut
This commit is contained in:
parent
f8a33219c6
commit
2404d4100f
1 changed files with 5 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ let g:mkdp_auto_close = 0
|
||||||
" Create Default Mappings for NerdCommenter
|
" Create Default Mappings for NerdCommenter
|
||||||
let g:NERDCreateDefaultMappings = 1
|
let g:NERDCreateDefaultMappings = 1
|
||||||
|
|
||||||
" Toggle NERDCommenter with Ctrl + /
|
" Toggle NERDCommenter with Ctrl + z
|
||||||
:map <C-z> <plug>NERDCommenterToggle
|
:map <C-z> <plug>NERDCommenterToggle
|
||||||
|
|
||||||
" Custom keybindings
|
" Custom keybindings
|
||||||
|
|
@ -91,6 +91,9 @@ nmap <C-s> 50:new
|
||||||
"Escape Insert Mode with ii
|
"Escape Insert Mode with ii
|
||||||
imap ii <Esc>
|
imap ii <Esc>
|
||||||
|
|
||||||
|
"Insert a console.log()
|
||||||
|
inoremap cll console.log();<esc><left>i
|
||||||
|
|
||||||
autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart
|
autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart
|
||||||
autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear
|
autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue