-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvimrc
87 lines (68 loc) · 2.3 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
80
81
82
83
84
85
86
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" vim plug install command
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" --------------------------------------------------------------------
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" --------------------------------------------------------------------
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" plugins
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
call plug#begin()
"" directory tree
Plug 'scrooloose/nerdtree'
"" eww extensions
" Plug 'elkowar/yuck.vim'
"" color schemes
Plug 'cocopon/iceberg.vim'
call plug#end()
set background=dark
colorscheme iceberg
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" variables
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:NERDTreeShowHidden = 1
let g:NERDTreeMinimalUI = 0
let g:NERDTreeIgnore = []
let g:NERDTreeStatusline = ''
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" options
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set encoding=UTF-8
"" settings
set nobackup
set noswapfile
set autoread
set hidden
"" appearance
set number "" show number of the line
set cursorline "" show horizontal highlighting
set cursorcolumn "" show vertical highlighting
set nowrap
set virtualedit=onemore
set smartindent
set smarttab
set expandtab "" use spaces as a tab
set shiftwidth=4 "" 4 tab
set tabstop=4
set laststatus=2
set wrapscan
set clipboard=unnamed
syntax on
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" autosatrt commands
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" exec a nerdtree only if enterd without filepath
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" keybinds
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"" disble arrow keys
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
"" auto input the matched brackets
imap [ []<left>
imap ( ()<left>
imap { {}<left>