diff options
-rw-r--r-- | keys/which-key.vim | 7 | ||||
-rw-r--r-- | plug-config/leetcode.vim | 5 | ||||
-rw-r--r-- | vim-plug/plugins.vim | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/keys/which-key.vim b/keys/which-key.vim index cc0c41a2..6caf83b6 100644 --- a/keys/which-key.vim +++ b/keys/which-key.vim @@ -25,12 +25,11 @@ autocmd FileType which_key set laststatus=0 noshowmode noruler " Single mappings -let g:which_key_map['/'] = [ ':call Comment()' , 'comment' ] +let g:which_key_map['/'] = [ ':call Comment()' , 'comment' ] let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ] let g:which_key_map[';'] = [ ':Commands' , 'commands' ] let g:which_key_map['='] = [ '<C-W>=' , 'balance windows' ] let g:which_key_map[','] = [ 'Startify' , 'start screen' ] -let g:which_key_map['c'] = [ ':Codi!!' , 'virtual repl'] let g:which_key_map['d'] = [ ':bd' , 'delete buffer'] let g:which_key_map['e'] = [ ':CocCommand explorer' , 'explorer' ] let g:which_key_map['f'] = [ ':Files' , 'search files' ] @@ -54,7 +53,8 @@ let g:which_key_map.a = { \ 'r' : [':set norelativenumber!' , 'relative line nums'], \ 's' : [':let @/ = ""' , 'remove search highlight'], \ 't' : [':FloatermToggle' , 'terminal'], - \ 'v' : [':Vista!!' , 'tag viewer'], + \ 'v' : [':Codi' , 'virtual repl on'], + \ 'V' : [':Codi!' , 'virtual repl off'], \ } " b is for buffer @@ -122,6 +122,7 @@ let g:which_key_map.g = { \ 'P' : [':Git pull' , 'pull'], \ 'r' : [':GRemove' , 'remove'], \ 's' : ['<Plug>(GitGutterStageHunk)' , 'stage hunk'], + \ 'S' : [':!git status' , 'status'], \ 't' : [':GitGutterSignsToggle' , 'toggle signs'], \ 'u' : ['<Plug>(GitGutterUndoHunk)' , 'undo hunk'], \ 'v' : [':GV' , 'view commits'], diff --git a/plug-config/leetcode.vim b/plug-config/leetcode.vim new file mode 100644 index 00000000..a52c7de5 --- /dev/null +++ b/plug-config/leetcode.vim @@ -0,0 +1,5 @@ +let g:leetcode_browser='chrome' +let g:leetcode_china=0 +let g:leetcode_hide_paid_only=1 +let g:leetcode_solution_filetype='python3' + diff --git a/vim-plug/plugins.vim b/vim-plug/plugins.vim index 7369468a..515fc12e 100644 --- a/vim-plug/plugins.vim +++ b/vim-plug/plugins.vim @@ -93,7 +93,7 @@ call plug#begin('~/.config/nvim/autoload/plugged') " Echo doc " Plug 'Shougo/echodoc.vim' " Interactive code - Plug 'ChristianChiarulli/codi.vim' + Plug 'metakirby5/codi.vim' " Vim Wiki " Plug 'https://github.com/vimwiki/vimwiki.git' endif |