From 28b4c6ef8ff57108a53846956df5ec58c06970f6 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 19 Oct 2021 10:19:00 -0700 Subject: [PATCH] added auto-save and modified ESC keybind mappings --- nvim/init.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 90729b68..09abbed4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -18,6 +18,7 @@ Plug 'luochen1990/rainbow' Plug 'kassio/neoterm' Plug 'simeji/winresizer' Plug 'yaegassy/coc-volar' +Plug '907th/vim-auto-save' "Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } "Plug 'christoomey/vim-tmux-navigator' @@ -42,6 +43,12 @@ let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowTo "set indentLine to nvim colorscheme "let g:indentLine_setColors = 0 +"enable AutoSave on start +let g:auto_save = 1 + +"silence AutoSave messages +let g:auto_save_silent = 1 + let g:webdevicons_enable = 1 let g:webdevicons_enable_nerdtree = 1 @@ -64,12 +71,20 @@ let g:NERDTreeIgnore = ['^node_modules$'] " do not close the markdown preview tab when switching to other buffers let g:mkdp_auto_close = 0 +" Custom keybindings + " keybind map Ctrl + m to :MarkdownPreview nmap MarkdownPreviewToggle " creates a small horizontal window for neoterm ( type |T ) nmap 50:new +" Toggle NerdTree +nmap :NERDTreeToggle + +"Escape Insert Mode with indentLine +imap ii + " vim-prettier "let g:prettier#quickfix_enabled = 0 "let g:prettier#quickfix_auto_focus = 0