-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
79 lines (65 loc) · 2.45 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"===================================================================="
"======================= [ General Behavior ] ======================="
"===================================================================="
set mouse=a
set foldcolumn=1
set foldmethod=syntax
set foldlevelstart=20
set ruler
set number
set shiftwidth=4
set tabstop=4
set noexpandtab
set cursorline
set autoindent
set smartindent
set showmatch
"set syntax=on
:colorscheme itsasoa
"===================================================================="
"========================== [ Auto Close ] =========================="
"===================================================================="
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {}
"inoremap ( ()<Left>
"inoremap " ""<Left>
"inoremap ' ''<Left>
"===================================================================="
"=========================== [ Vim-Plug ] ==========================="
"======================== [ Plugin Manager ] ========================"
"===================================================================="
" If this is the first time you are using vim-plug on this machine
" it will create the required file structure
" :PlugInstall to run vimplug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
" List of plugins for vim-plug to install
" Format is Plug 'git repo'
call plug#begin('~/.vim/plugged')
"Plug 'scrooloose/syntastic'
"Plug 'airblade/vim-gitgutter'
"Plug 'majutsushi/tagbar'
"Plug 'mbbill/undotree'
"Plug 'octol/vim-cpp-enhanced-highlight'
"Plug 'rhysd/vim-clang-format'
"Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'
call plug#end()
"===================================================================="
"=========================== [ Key Maps ] ==========================="
"===================================================================="
map <C-n> :NERDTreeToggle<CR>
"===================================================================="
"====================== [ .vimrc Auto Reload ] ======================"
"========================= [ :w To Reload ] ========================="
"===================================================================="
augroup reload_vimrc
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END