-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
56 lines (41 loc) · 1.2 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
" Version: 1.0 - Oct 4th, 2012
" Set colorscheme
colorscheme evening
" Enable syntax highlighting
syntax on
" Height of the command bar
set cmdheight=2
" Ignore case when searching
set ignorecase
" Be smart about cases when searching
set smartcase
" Search as you type
set incsearch
" Highlight search results
set hls
" Disable highlight when <leader><cr> (\enter) is pressed
map <silent> <leader><cr> :noh<cr>
" Show position
set ruler
" Automatically indent when adding a curly bracket, etc.
set smartindent
" Use smart tab
set smarttab
" 1 tab == 2 spaces
set shiftwidth=4
set tabstop=4
" Show line number
set number
" Show autocomplete menus
set wildmenu
" Always show status line
set laststatus=2
set statusline=
set statusline+=%-3.3n\ " buffer number
set statusline+=%F\ " filename
set statusline+=%h%m%r%w " status flags
set statusline+=\[%{strlen(&ft)?&ft:'none'}] " file type
set statusline+=%= " right align remainder
set statusline+=0x%-8B " character value
set statusline+=%-14(%l,%c%V%) " line, character
set statusline+=%<%P " file position