update vim2 config

This commit is contained in:
sam 2025-03-24 09:20:35 +13:00
parent 41e92c65a0
commit d88f6013a1

View file

@ -6,18 +6,33 @@ set cindent
set mouse=a
set number
set relativenumber
set ignorecase
let &t_EI = "\<Esc>[2 q"
let &t_SI = "\<Esc>[6 q"
syntax on
colorscheme habamax
filetype plugin on
filetype plugin indent on
if !isdirectory($HOME."/.vim/undo-dir")
call mkdir($HOME."/.vim/undo-dir", "", 0700)
endif
set undodir=~/.vim/undo-dir
set undofile
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'sheerun/vim-polyglot'
Plug 'joe-skb7/cscope-maps'
Plug 'vimsence/vimsence'
Plug 'preservim/nerdcommenter'
Plug 'tomasiser/vim-code-dark'
call plug#end()
colorscheme codedark
noremap <C-_> <plug>NERDCommenterInvert
nnoremap gd :cscope find g <C-R><C-W><CR>
nnoremap gf :cscope find f <C-R><C-W><CR>
vnoremap <silent> <C-c> :w !wl-copy<CR><CR>
vnoremap <silent> <C-c> y:call system('wl-copy', @")<CR>