-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
42 lines (38 loc) · 1.18 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
" See http://amix.dk/vim/vimrc.html, http://nvie.com/posts/how-i-boosted-my-vim/
" 'hidden' hides buffers instead of closing them, allowing unwritten changes to a file and open a new file using :e, without being forced to write or undo your changes first. Also, undo buffers and marks are preserved while the buffer is open.
set hidden
"set verbose=9
if has('syntax')
syntax enable
"colorscheme evening
colorscheme desert
"hi Comment ctermfg=cyan
endif
if has('filetype')
filetype plugin indent on
filetype indent on
endif
set autoindent
if has('autocmd')
" autocmd!
autocmd BufNewFile,BufRead *.json set filetype=json
autocmd Filetype php setlocal nobomb ff=unix
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif
" Show row,column at the bottom
set ruler
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" Don't redraw while executing macros (good performance config)
set lazyredraw
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
" Remember info about open buffers on close
set viminfo^=%