-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
60 lines (53 loc) · 1.24 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
" refs: https://github.com/vim/vim/blob/master/runtime/defaults.vim
"------------------------------
""" basic
"------------------------------
scriptencoding utf-8
let mapleader = ";"
syntax enable
set verbose=0
set encoding=utf-8
set noswapfile
set list
set number
set nopaste
set noautoindent
set tabstop=2
set shiftwidth=2
set expandtab
set showtabline=2
set laststatus=2
set hlsearch
set completeopt=menu,menuone,preview
set listchars=tab:»-,trail:-,extends:»,precedes:«,nbsp:%
"------------------------------
""" map
"------------------------------
map <F4> :set listchars=tab:»-,trail:-,extends:»,precedes:«,nbsp:%<CR><Esc>
map <F5> :set listchars=""<CR><ESC>
nmap <F6> :TagbarToggle<CR>
nmap <Esc><Esc> :nohlsearch<CR><Esc>
map <C-t><C-n> :tabnew<CR>
map <C-t><C-w> :tabclose<CR>
map <C-t><C-t> :tabn<CR>
map <C-t><C-p> :tabp<CR>
au BufWritePre * :%s/\s\+$//ge
augroup cch
au! cch
au WinLeave * set nocursorline
au WinEnter,BufRead * set cursorline
augroup END
"------------------------------
""" PLUGINS
"------------------------------
source ~/.vim/dein.vimrc
source ~/.vim/nerdtree.vimrc
source ~/.vim/tagbar.vimrc
source ~/.vim/go.vimrc
source ~/.vim/shfmt.vimrc
" NeoVim
if has('nvim')
if has('mouse')
set mouse-=a
endif
endif