-
Notifications
You must be signed in to change notification settings - Fork 12
/
.vimrc.local
61 lines (51 loc) · 1.46 KB
/
.vimrc.local
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
" Editor overrides.
set shiftwidth=2 " Use indents of 4 spaces
set expandtab " Tabs are spaces, not tabs
set tabstop=2 " An indentation every four columns
set softtabstop=2 " Let backspace delete indent
" associate *.install and *.module files with with php filetype
au BufReadPost *.install set syntax=php
au BufReadPost *.module set syntax=php
au BufReadPost *.inc set syntax=php
" Easier navigation through buffers
map gn :bn<cr>
map gp :bp<cr>
map g1 :b1<cr>
map g2 :b2<cr>
map g3 :b3<cr>
map g4 :b4<cr>
map g5 :b5<cr>
map g6 :b6<cr>
map g7 :b7<cr>
map g8 :b8<cr>
" Don't let CtrlP changing the path.
let g:ctrlp_working_path_mode = '0'
" PHP autocompletion
au FileType php set omnifunc=phpcomplete#CompletePHP
let php_sql_query=1
let php_htmlInStrings=1
" Set tags file as hidden.
set tags=./.tags;,.tags;
" Vdebug bundle and settings.
Bundle 'joonty/vdebug.git'
if !exists('g:vdebug_options')
let g:vdebug_options = {}
endif
let g:vdebug_options['continuous_mode'] = 1
let g:vdebug_options['break_on_open'] = 0
" Disable folding.
set nofoldenable
let g:DisableAutoPHPFolding = 1
" Ignore .git files in NERDTee.
let NERDTreeIgnore = ['\.git$']
" Ignore some files and dirs with CtrP
if exists("g:ctrlp_user_command")
unlet g:ctrlp_user_command
endif
let g:ctrlp_custom_ignore = {
\ 'file': '\.tags',
\ 'dir': 'sites/default/files/simpletest',
\ }
syntax enable
set background=light
colorscheme solarized