-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
42 lines (42 loc) · 857 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
41
42
set backspace=indent,eol,start
"global shortcut"
map <C-s> :w<CR>
map s <nop>
map S <nop>
map <C-q> :q<CR>
map R :w<CR>:source $MYVIMRC<CR>
"editor behavior"
syntax on
set norelativenumber
set number
set nocursorcolumn
set cursorline
set wrap
set showcmd
set wildmenu
"tab behavior"
set smartindent
set expandtab
set tabstop=4
"search settings"
set hlsearch
exec "nohlsearch"
set incsearch
set ignorecase
set smartcase
"Install Plugin"
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'connorholyday/vim-snazzy'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline-themes'
Plug 'kien/rainbow_parentheses.vim'
Plug 'Yggdroot/indentLine'
call plug#end()
"nerdtree shortcut"
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
"appearance"
let g:airline_theme='violet'