SHARE
TWEET

vimrc (tab)

bal_gennady Nov 9th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "=====================================================
  2. " Languages support
  3. "=====================================================
  4. " --- Python ---
  5. "autocmd FileType python set completeopt-=preview " раскомментируйте, в случае, если не надо, чтобы jedi-vim показывал документацию по методу/классу
  6. autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8
  7. \ formatoptions+=croq softtabstop=4 smartindent
  8. \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
  9. autocmd FileType pyrex setlocal expandtab shiftwidth=4 tabstop=8 softtabstop=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with
  10.  
  11. " --- JavaScript ---
  12. let javascript_enable_domhtmlcss=1
  13. autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  14. autocmd BufNewFile,BufRead *.json setlocal ft=javascript
  15.  
  16. " --- HTML ---
  17. autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
  18.  
  19. " --- template language support (SGML / XML too) ---
  20. autocmd FileType html,xhtml,xml,htmldjango,htmljinja,eruby,mako setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=2
  21. autocmd bufnewfile,bufread *.rhtml setlocal ft=eruby
  22. autocmd BufNewFile,BufRead *.mako setlocal ft=mako
  23. autocmd BufNewFile,BufRead *.tmpl setlocal ft=htmljinja
  24. autocmd BufNewFile,BufRead *.py_tmpl setlocal ft=python
  25. let html_no_rendering=1
  26. let g:closetag_default_xml=1
  27. let g:sparkupNextMapping='<c-l>'
  28. autocmd FileType html,htmldjango,htmljinja,eruby,mako let b:closetag_html_style=1
  29. autocmd FileType html,xhtml,xml,htmldjango,htmljinja,eruby,mako source ~/.vim/scripts/closetag.vim
  30.  
  31. " --- CSS ---
  32. autocmd FileType css set omnifunc=csscomplete#CompleteCSS
  33. autocmd FileType css setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top