Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. "「關閉這功能。我也忘記是幹嘛的了,既然如此,大概用不太到吧」
  2. let g:tcommentMapLeaderOp1 = ''
  3. let g:tcommentMapLeaderOp2 = ''
  4.  
  5. "「這個只要加在 vimrc 就能控制 comment 要不要縮排了!」——料理東西軍
  6. let g:tc_option = ' col=1'
  7. noremap <silent> <expr> <LocalLeader>cc ":TComment " . (exists('b:tc_option') ? b:tc_option : g:tc_option) . "<CR>"
  8. noremap <silent> <expr> <LocalLeader>cb ":TCommentBlock " . (exists('b:tc_option') ? b:tc_option : g:tc_option) . "<CR>"
  9. noremap <silent> <expr> <LocalLeader>ci ":TCommentInline " . (exists('b:tc_option') ? b:tc_option : g:tc_option) . "<CR>"
  10. noremap <silent> <expr> <LocalLeader>c$ ":TCommentRight " . (exists('b:tc_option') ? b:tc_option : g:tc_option) . "<CR>"
  11.  
  12. let g:EnhCommentifyRespectIndent = 'No'
  13. let g:EnhCommentifyUseSyntax = 'Yes'
  14. let g:EnhCommentifyPretty = 'Yes'
  15. let g:EnhCommentifyBindInInsert = 'No'
  16. let g:EnhCommentifyMultiPartBlocks = 'Yes'
  17. let g:EnhCommentifyCommentsOp = 'Yes'
  18. let g:EnhCommentifyAlignRight = 'Yes'
  19.  
  20. " 為各別 filetype 分別設定 tc_option ……
  21. fun! s:js_rc()
  22. let b:tc_option = ''
  23. endf
  24. fun! s:haml_rc()
  25. let b:tc_option = ''
  26. endf
  27. fun! s:ruby_rc()
  28. let b:tc_option = ''
  29. endf
  30. au FileType ruby :call s:ruby_rc()
  31. au FileType haml :call s:haml_rc()
  32. au FileType javascript :call s:js_rc()
Add Comment
Please, Sign In to add comment