update vim2 config
This commit is contained in:
parent
41e92c65a0
commit
d88f6013a1
1 changed files with 18 additions and 3 deletions
21
vim2/.vimrc
21
vim2/.vimrc
|
@ -6,18 +6,33 @@ set cindent
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
set relativenumber
|
||||||
|
set ignorecase
|
||||||
|
|
||||||
|
let &t_EI = "\<Esc>[2 q"
|
||||||
|
let &t_SI = "\<Esc>[6 q"
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
colorscheme habamax
|
filetype plugin indent on
|
||||||
filetype plugin 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()
|
call plug#begin()
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'tpope/vim-sensible'
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'joe-skb7/cscope-maps'
|
Plug 'joe-skb7/cscope-maps'
|
||||||
Plug 'vimsence/vimsence'
|
Plug 'vimsence/vimsence'
|
||||||
|
Plug 'preservim/nerdcommenter'
|
||||||
|
Plug 'tomasiser/vim-code-dark'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
colorscheme codedark
|
||||||
|
|
||||||
|
noremap <C-_> <plug>NERDCommenterInvert
|
||||||
nnoremap gd :cscope find g <C-R><C-W><CR>
|
nnoremap gd :cscope find g <C-R><C-W><CR>
|
||||||
nnoremap gf :cscope find f <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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue