-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
36 lines (27 loc) · 859 Bytes
/
.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
" Nicer Tab completion
set wildmode=list:longest,full
" Hide netrw banner
let g:netrw_banner = 0
" Make split separator look nicer
set fillchars+=vert:│
hi VertSplit cterm=NONE
" Tab key creates indents that consist of 4 spaces
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" Type jk to escape as an alternative to esc key
inoremap jk <Esc>
" Store swap, backup, and undo files outside of working directory
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//
" Ensure the configured directories exist
if !isdirectory(expand(&undodir))
call mkdir(expand(&undodir), "p")
endif
if !isdirectory(expand(&backupdir))
call mkdir(expand(&backupdir), "p")
endif
if !isdirectory(expand(&directory))
call mkdir(expand(&directory), "p")
endif
" Use the ctrl-p plugin
set runtimepath^=~/.vim/bundle/ctrlp.vim