forked from jhaskell/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
102 lines (91 loc) · 2.81 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
91
92
93
94
95
96
97
98
99
100
101
102
version 6.0
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
let &cpo=s:cpo_save
unlet s:cpo_save
" set verbosefile=/home/kazanir/vimv.log
" set verbose=11
set background=dark
set backspace=indent,eol,start
set fileencodings=utf-8,latin1
set helplang=en
set history=50
set hlsearch
set ruler
set shiftwidth=2
set tabstop=2
set viminfo='20,\"50
set cindent
set autoindent
set expandtab
set laststatus=2
set nu
set tags=./tags,./_www/tags;/var/www/;~
au BufRead,BufNewFile *.ctp set filetype=php
au BufRead,BufNewFile *.install set filetype=php
au BufRead,BufNewFile *.module set filetype=php
au BufRead,BufNewFile *.inc set filetype=php
au BufRead,BufNewFile *.view set filetype=php
au BufRead,BufNewFile *.ctp set filetype=php
let g:pathogen_disabled = ['php-foldexpr.vim', 'php-getter-setter', 'vim-coffee-script', 'vim-javascript-syntax', 'vdebug']
let g:hack#enable=0
let g:hack#omnifunc=0
let g:php_html_in_heredoc=0
let g:php_sql_heredoc=0
call pathogen#infect()
filetype plugin indent on
colorscheme molokai
set cinkeys-=0#
set indentkeys-=0#
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
"set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P\ %{fugitive#statusline()}
let g:nerdtree_tabs_open_on_console_startup=1
let g:symfony_app_console_caller="php"
let g:symfony_app_console_path="app/console"
let g:Powerline_symbols="fancy"
let g:nerdtree_tabs_meaningful_tab_names=1
let g:nerdtree_tabs_autoclose=1
let g:nerdtree_tabs_open_on_new_tab=1
let g:nerdtree_tabs_focus_on_files=1
let g:nerdtree_tabs_smart_startup_focus=1
let g:NERDTreeDirArrows=0
let g:nerdtree_tabs_synchronize_view=1
let feature_filetype='behat'
let NERDTreeShowBookmarks=1
let g:PHP_vintage_case_default_indent=1
"nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
set encoding=utf-8
set t_Co=256
syntax on
set foldmethod=indent
fun! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
%s/\s\+$//e
call cursor(l, c)
endfun
autocmd FileType c,cpp,java,php,ruby,python autocmd BufWritePre <buffer> :call <SID>StripTrailingWhitespaces()
"This allows for change paste motion cp{motion}
nmap <silent> cp :set opfunc=ChangePaste<CR>g@
function! ChangePaste(type, ...)
silent exe "normal! `[v`]\"_c"
silent exe "normal! p"
endfunction
let b:phpgetset_setterTemplate =
\ "\n" .
\ " /**\n" .
\ " * Set %varname%.\n" .
\ " *\n" .
\ " * @param %varname% the value to set.\n" .
\ " * @return self\n" .
\ " */\n" .
\ " public function %funcname%($%varname%)\n" .
\ " {\n" .
\ " $this->%varname% = $%varname%;\n" .
\ " \n" .
\ " return $this\n" .
\ " }"
" vim: set ft=vim :