Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Make omnicompletion to work like IDE's one
- :set completeopt=longest,menuone,preview
- " Instruct phpcomplete to show phpdocs
- let g:phpcomplete_parse_docblock_comments = 1
- " Look for variables in ctags
- let g:phpcomplete_search_tags_for_variables = 1
- " Set the scratch/preview window vertically on right
- " and make it zero columns width
- " Commented out, was unable to get the preview buffer properly
- " defined. So let's use the horizontal top default one.
- "autocmd FileType php call DefineScratch()
- "function DefineScratch()
- " botright vertical pedit previewwindow
- " vertical resize 102
- "endfunction
- " Use CtrlP with <c-p> (mixed mode)
- let g:ctrlp_map = '<c-p>'
- let g:ctrlp_cmd = 'CtrlPMixed'
- " Configure Syntastic codechecker
- let g:syntastic_php_checkers = ['php', 'phpcs']
- let g:syntastic_php_phpcs_args = "--standard='/Users/stronk7/git_moodle/moodle-local_codechecker/moodle'"
- let g:syntastic_css_checkers = ['stylelint']
- let g:syntastic_scss_checkers = ['stylelint']
- let g:syntastic_javascript_checkers = ['eslint']
- " Use ag if available for quicker searches
- if executable('ag')
- " Use Ag over Grep
- set grepprg=ag\ --nogroup\ --nocolor
- " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
- let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
- endif
- " Seach recursively from the ancestor containing .git
- let g:ctrlp_working_path_mode = 'ra'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement