-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
56 lines (50 loc) · 1.15 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
" Luo JianFeng'.vimrc
set nu
sy on
set ruler
set smartindent shiftwidth=2 " default: 4
set tabstop=2 " default: 4
set expandtab
set listchars=tab:>-,trail:~
set list
"colorscheme desert
" base
set nocompatible
set showcmd
set mouse=a
filetype indent on " *.py -> ~/.vim/indent/python.vim
set cursorline
set scrolloff=10 " very useful
set hlsearch
set ignorecase
set incsearch
set undofile
set history=100
set undodir=~/.vim/undo// " you must run mkdir first, can't do it by itself
set backupdir=~/.vim/backup//
set directory=~/.vim/swp//
set wildmenu " very useful
" vim-plug
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'preservim/nerdcommenter'
Plug 'itchyny/lightline.vim'
Plug 'crusoexia/vim-monokai'
Plug 'Yggdroot/indentLine'
Plug 'neoclide/coc.nvim',{'branch':'release'}
call plug#end()
map <C-n> :NERDTreeToggle<CR>
nnoremap <F3> :NERDTreeToggle<CR>
autocmd vimenter * if !argc()|NERDTree|endif
let g:NERDTreeWinSize=20
set laststatus=2
colo monokai
let g:indent_guides_start_level=2
" remaping
imap jk <Esc>
nnoremap tn :tabnew<CR>
nnoremap tj :tabnext<CR>
nnoremap tk :tabprev<CR>
nnoremap tc :tabclose<CR>
nnoremap sa :wq<CR>
nnoremap qq :q<CR>