-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (63 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
call pathogen#infect()
filetype plugin indent on
set ignorecase
set smartcase
set expandtab
set tabstop=4
set shiftwidth=4
set smartindent
set number
set ls=2
set linebreak
set hidden
set hlsearch
set dir=~/.vim/swp
let mapleader = ","
try
set undodir=~/.vim/undo
catch
" deal with it
endtry
set spell
set spelllang=en_us
hi SpellBad cterm=underline ctermfg=Red ctermbg=16
syntax on
inoremap <C-P> <ESC>:call PhpDocSingle()<CR>
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
let g:bufExplorerSortBy='fullpath'
let g:bufExplorerShowRelativePath=1
let g:bufExplorerSplitOutPathName=1
" Wrap visual selection in an HTML tag.
vmap <Leader>w <Esc>:call VisualHTMLTagWrap()<CR>
function! VisualHTMLTagWrap()
let tag = input("Tag to wrap block: ")
if len(tag) > 0
normal `>
if &selection == 'exclusive'
exe "normal i</".tag.">"
else
exe "normal a</".tag.">"
endif
normal `<
exe "normal i<".tag.">"
normal `<
endif
endfunction
set wildmenu
set wildmode=longest,list
if has('gui_running')
set gfn=Glass\ TTY\ VT220:h20
colorscheme evening
endif
let phpcs_conf = expand("~/development/Etsyweb/tests/standards/stable-ruleset.xml")
if filereadable(phpcs_conf)
let g:syntastic_phpcs_conf = "--standard=".phpcs_conf
endif
command! Lint !php -l %
command! Blame !git blame %
command! Run !php -r 'require "Loader.php"; require $argv[1];' %
command! Refresh set noconfirm | bufdo e! | set confirm
nmap <leader>tb :TagbarToggle<CR>
" Copy the link to file / line in github
command! Share :exe "!share-github -f % -l " . line(".")