-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
60 lines (53 loc) · 1.05 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
57
58
59
60
set fenc=utf-8
set backup
set backupdir=~/.vim/tmp
set directory=~/.vim/tmp
set viminfo+=n~/.vim/tmp/viminfo
set noundofile
set autoread
set hidden
set ambiwidth=double
" editor config.
set virtualedit=onemore
set backspace=indent,eol,start
set smartindent
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
set history=10000
set clipboard+=unnamed
inoremap <silent> jj <ESC>
" visual config.
syntax on
set title
set number
set ruler
set cursorline
set scrolloff=8
set showcmd
set showmatch
set matchtime=1
set laststatus=2
set wildmode=list:longest
set list
set listchars=tab:▸-,trail:・,nbsp:%,eol:↵,extends:❯,precedes:❮
set pumheight=10
set display=lastline
" search config.
set ignorecase
set smartcase
set incsearch
set wrapscan
set hlsearch
" vim-plug config
call plug#begin('~/.vim/plugged')
Plug 'airblade/vim-gitgutter'
Plug 'cohama/lexima.vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'itchyny/lightline.vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
call plug#end()
" NERDTree config
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1