From 66e318035f928562d541e21b606493a93614584f Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 20 Nov 2021 09:42:59 -0800 Subject: [PATCH] edited init.vim --- nvim/init.vim | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 61337d11..eec1ee89 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -58,7 +58,7 @@ let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowTo let g:auto_save = 1 "silence AutoSave messages -let g:auto_save_silent = 1 +"let g:auto_save_silent = 1 let g:webdevicons_enable = 1 let g:webdevicons_enable_nerdtree = 1 @@ -99,52 +99,9 @@ nmap 50:new "Escape Insert Mode with ii imap ii -"""JavaScript Specific Shortcuts - -"Shorten var -inoremap var var =i - -"Shorten const -inoremap const const =i - -"Shorten let -inoremap let let =i - "Insert a console.log() inoremap cll console.log()i -"Shorten Template Literals -inoremap `` `${}`i - -"Create class -inoremap class class {constructor() {}}i - -"Create function -inoremap fn function () {}i - -"Create standard for loop -inoremap loo for (let i = 0; i <= ; i++) {}i - -"Create try catch statement -inoremap try try {} catch(err) {console.error(err)}i - -"Create arrow function -inoremap => () => {}i - -"Create type comment -inoremap ** /**/i - -"If Statement -inoremap if if ()i - -"Else If Statement -inoremap elif else if ()i - -"Switch/Case Statement -inoremap switch switch () { case :break case :break default:}i - -""" - autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear