-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
91 lines (71 loc) · 1.63 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
87
88
89
90
" vimrc File
" by Donny Kurnia
" donnykurnia@gmail.com
" Get the latest update from http://github.com/donnykurnia/dotvim.git
" Load Pathogen
filetype off
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
call pathogen#infect()
" CakePHP
if has("autocmd")
au FileType php set ft=php.cakephp
autocmd BufRead,BufNewFile *.ctp set filetype=php
autocmd BufEnter *.ctp set syn=php
endif
" Enable filetype
filetype on
filetype plugin on
filetype indent on
syntax enable
set background=dark
" Color Scheme
let g:solarized_termtrans=1
let g:solarized_termcolors=16
colorscheme solarized
"colorscheme vividchalk
" Write the old file out when switching between files.
set autowrite
" Switch between buffers without saving
set hidden
" Indentation
set autoindent
set smartindent
" Tab setting
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set smarttab
" Display current cursor position in lower right corner.
set ruler
" Display fugitive status
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
" Show line number
set number
" Visual help
set showmatch
set nowrap
set vb t_vb=
set virtualedit=insert
" Search preference
set incsearch
set hls
" Enable code folding
set foldenable
" set foldmethod=indent
" Set file encoding, font type and size
set fileencodings=ucs-bom,utf-8,default,latin1
set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
set termencoding=utf-8
" Set undo number
set history=500
" Set language and print option
set helplang=en
set printoptions=paper:a4
" Hide gVim toolbar by default
set go-=T
" Better line wrapping
set textwidth=72
set formatoptions=qrn1
" source ~/.simplenoterc