Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. " Make omnicompletion to work like IDE's one
  2. :set completeopt=longest,menuone,preview
  3.  
  4. " Instruct phpcomplete to show phpdocs
  5. let g:phpcomplete_parse_docblock_comments = 1
  6. " Look for variables in ctags
  7. let g:phpcomplete_search_tags_for_variables = 1
  8.  
  9. " Set the scratch/preview window vertically on right
  10. " and make it zero columns width
  11. " Commented out, was unable to get the preview buffer properly
  12. " defined. So let's use the horizontal top default one.
  13. "autocmd FileType php call DefineScratch()
  14. "function DefineScratch()
  15. " botright vertical pedit previewwindow
  16. " vertical resize 102
  17. "endfunction
  18.  
  19. " Use CtrlP with <c-p> (mixed mode)
  20. let g:ctrlp_map = '<c-p>'
  21. let g:ctrlp_cmd = 'CtrlPMixed'
  22.  
  23. " Configure Syntastic codechecker
  24. let g:syntastic_php_checkers = ['php', 'phpcs']
  25. let g:syntastic_php_phpcs_args = "--standard='/Users/stronk7/git_moodle/moodle-local_codechecker/moodle'"
  26. let g:syntastic_css_checkers = ['stylelint']
  27. let g:syntastic_scss_checkers = ['stylelint']
  28. let g:syntastic_javascript_checkers = ['eslint']
  29.  
  30. " Use ag if available for quicker searches
  31. if executable('ag')
  32. " Use Ag over Grep
  33. set grepprg=ag\ --nogroup\ --nocolor
  34. " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
  35. let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
  36. endif
  37.  
  38. " Seach recursively from the ancestor containing .git
  39. let g:ctrlp_working_path_mode = 'ra'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement