From ceabeeca7b08ddbe6bdb3de74714e24b9efa675b Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Thu, 27 Jan 2022 18:36:18 -0800 Subject: [PATCH] update vimrc --- dotfiles/.vimrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index d8a800c..810da07 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -1,4 +1,5 @@ -syntax on +syntax enable +filetype plugin on set noshowmode "disable default vim insert text at bottom set laststatus=2 set number @@ -22,13 +23,17 @@ set expandtab set cursorline set scrolloff=8 set sidescrolloff=8 -" show candidates for vim commands with tab -set wildmenu +set wildmenu " show candidates for vim commands with tab set background=dark +set showmatch +set nocompatible " no more vi +" set path from current directory and all directories under +set path=$PWD/** set encoding=UTF-8 set guifont=FiraCode\ Nerd\ Font\ 18 + " lsp handled by coc let g:ale_disable_lsp = 1 @@ -77,7 +82,6 @@ Plug 'vv9k/vim-github-dark' call plug#end() - "------------------------------------------------------------------------------ " Enable :Man "------------------------------------------------------------------------------ @@ -594,6 +598,7 @@ let g:floaterm_autoclose = 1 command! Reload execute "source ~/.vimrc" command! Config execute ":e ~/.vimrc" command! Env execute ":Dotenv .env" +command! MakeTags !ctags -R . "------------------------------------------------------------------------------ "KEYBINDINGS "------------------------------------------------------------------------------ @@ -627,6 +632,8 @@ nmap gs :CocCommand fzf-preview.GitStatus " help nmap hc :CocCommand fzf-preview.CommandPalette nmap hk :Maps +" insert snippets +nmap isp :-1read $HOME/Templates/python.py4jw " any jump plugin nmap j :AnyJump " toggle/open