-
Notifications
You must be signed in to change notification settings - Fork 3
/
.vimrc
40 lines (31 loc) · 778 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
37
38
39
40
command! SuperWrite :w ! sudo tee %
cnoreabbrev www SuperWrite
command! SuperQuit :q!
cnoreabbrev qq SuperQuit
cnoreabbrev W w
cnoreabbrev WQ wq
cnoreabbrev Wq wq
cnoreabbrev wQ wq
cnoreabbrev Q q
" https://vi.stackexchange.com/a/53/18902
if !isdirectory($HOME."/.vim")
call mkdir($HOME."/.vim", "", 0770)
endif
if !isdirectory($HOME."/.vim/backup-dir")
call mkdir($HOME."/.vim/backup-dir", "", 0700)
endif
set backupdir=$HOME/.vim/backup-dir
set backup
if !isdirectory($HOME."/.vim/undo-dir")
call mkdir($HOME."/.vim/undo-dir", "", 0700)
endif
set undodir=$HOME/.vim/undo-dir
set undofile
call plug#begin()
Plug 'junegunn/vim-easy-align'
Plug 'tpope/vim-sleuth'
call plug#end()
set tabstop=4
"set shiftwidth=4
"set expandtab
set backspace=indent,eol,start