-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvimrc
More file actions
89 lines (61 loc) · 1.43 KB
/
vimrc
File metadata and controls
89 lines (61 loc) · 1.43 KB
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
87
set nocompatible
" Pathogen
execute pathogen#infect()
" ctrlp
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" syntax
filetype plugin indent on
" setup solarized color scheme
set background=dark
colorscheme solarized
"Colorize syntax and change font
syntax enable
set guifont=Source_Code_Pro:h13
" Tabs
set expandtab
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
set smarttab
" Search
set ignorecase
set hlsearch
" switch of search highlight
nnoremap <esc> :noh<return><esc>
" Makes search act like search in modern browsers
set incsearch
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
" Find < and > when searching matching braces
set matchpairs+=<:>
" No annoying sound on errors
set noerrorbells
set novisualbell
set vb
set tm=500
" auto completion
inoremap <C-Space> <C-n>
" line numbers
set number
" page guide
set cc=100
" Set to auto read when a file is changed from the outside
set autoread
" other stuff
set ruler
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
"NerdTree setup
"always show bookmarks
let NERDTreeShowBookmarks=1
" emmet / zen coding remapping
let g:user_emmet_leader_key='<C-Z>'
" set easyTags update time to 10s
let g:easytags_updatetime_min=10000
let g:easytags_updatetime_warn=0
" File type handling
au BufNewFile,BufRead *.ejs set filetype=html