From 2404d4100fbd6aa37623998752083884bddb8801 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 2 Nov 2021 13:11:43 -0700 Subject: [PATCH] added a console.log() shortcut --- nvim/init.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 141d54c8..b1b628ec 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1,4 +1,4 @@ -" If downloading this as a .txt rename as init.vim and put in ~/.config/nvim + "If downloading this as a .txt rename as init.vim and put in ~/.config/nvim " Specify a directory for plugins call plug#begin('~/.vim/plugged') @@ -77,7 +77,7 @@ let g:mkdp_auto_close = 0 " Create Default Mappings for NerdCommenter let g:NERDCreateDefaultMappings = 1 -" Toggle NERDCommenter with Ctrl + / +" Toggle NERDCommenter with Ctrl + z :map NERDCommenterToggle " Custom keybindings @@ -91,6 +91,9 @@ nmap 50:new "Escape Insert Mode with ii imap ii +"Insert a console.log() +inoremap cll console.log();i + autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear