Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (41 sloc) 1.232 kB
92f24e0 @JWong42 Add vimrc - version 1.0
authored
1 " Version: 1.0 - Oct 4th, 2012
2
3 " Set colorscheme
743a409 @JWong42 Change tab setting and colorscheme. Add shortcut for no highlight.
authored
4 colorscheme evening
92f24e0 @JWong42 Add vimrc - version 1.0
authored
5
6 " Enable syntax highlighting
7 syntax on
8
9 " Height of the command bar
10 set cmdheight=2
11
12 " Ignore case when searching
13 set ignorecase
14
15 " Be smart about cases when searching
16 set smartcase
17
18 " Search as you type
19 set incsearch
20
21 " Highlight search results
22 set hls
23
d9d0b96 @JWong42 Change comment for disable highlight
authored
24 " Disable highlight when <leader><cr> (\enter) is pressed
743a409 @JWong42 Change tab setting and colorscheme. Add shortcut for no highlight.
authored
25 map <silent> <leader><cr> :noh<cr>
26
92f24e0 @JWong42 Add vimrc - version 1.0
authored
27 " Show position
28 set ruler
29
30 " Automatically indent when adding a curly bracket, etc.
31 set smartindent
32
33 " Use smart tab
34 set smarttab
35
36 " 1 tab == 2 spaces
743a409 @JWong42 Change tab setting and colorscheme. Add shortcut for no highlight.
authored
37 set shiftwidth=4
38 set tabstop=4
92f24e0 @JWong42 Add vimrc - version 1.0
authored
39
40 " Show line number
41 set number
42
43 " Show autocomplete menus
44 set wildmenu
45
46 " Always show status line
47 set laststatus=2
48 set statusline=
49 set statusline+=%-3.3n\ " buffer number
50 set statusline+=%F\ " filename
51 set statusline+=%h%m%r%w " status flags
52 set statusline+=\[%{strlen(&ft)?&ft:'none'}] " file type
53 set statusline+=%= " right align remainder
54 set statusline+=0x%-8B " character value
55 set statusline+=%-14(%l,%c%V%) " line, character
56 set statusline+=%<%P " file position
Something went wrong with that request. Please try again.