-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
68 lines (51 loc) · 1.17 KB
/
vimrc
File metadata and controls
68 lines (51 loc) · 1.17 KB
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
61
62
63
64
65
66
67
68
filetype plugin on
filetype indent on
set nocompatible
set autoindent
set smartindent
set shiftwidth=2
set showmatch
set ruler
set incsearch
set virtualedit=all
syntax on
set directory=~/.vim/tmp
set backup
set backupdir=~/.vim/backup
set list
"set listchars=tab:>-,trail:-
set listchars=tab:>-
set wildmenu
set wildmode=list:longest,full
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
" Trailing whitespace
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\s\+$', -1)
set expandtab
set nowrap
set shiftwidth=2
set softtabstop=2
set tabstop=8
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
map <F8> :tabn<CR>
map <F7> :tabp<CR>
map <S-Right> :n<CR>
map <S-Left> :prev<CR>
" AutoPairs Plugin
let g:AutoPairsFlyMode = 1
let g:AutoPairsShortcutBackInsert="<C-b>"
let g:AutoPairsFlyModeOnlyCurrentLine = 1
" Fuzzy matching
map ff :FufFile
map fF :FufFileWithCurrentBufferDir
map fl :FufLine
map fb :FufBuffer
" Filetype settings
autocmd FileType html setlocal shiftwidth=2 tabstop=2
filetype plugin indent on