nerd-commenter.vim 929 B

12345678910111213141516171819202122232425262728
  1. " nnoremap <space>/ :Commentary<CR>
  2. " vnoremap <space>/ :Commentary<CR>
  3. let g:NERDCreateDefaultMappings = 0
  4. " Add spaces after comment delimiters by default
  5. let g:NERDSpaceDelims = 1
  6. " Use compact syntax for prettified multi-line comments
  7. let g:NERDCompactSexyComs = 1
  8. " Align line-wise comment delimiters flush left instead of following code indentation
  9. let g:NERDDefaultAlign = 'left'
  10. " Set a language to use its alternate delimiters by default
  11. let g:NERDAltDelims_java = 1
  12. " Add your own custom formats or override the defaults
  13. let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
  14. " Allow commenting and inverting empty lines (useful when commenting a region)
  15. let g:NERDCommentEmptyLines = 1
  16. " Enable trimming of trailing whitespace when uncommenting
  17. let g:NERDTrimTrailingWhitespace = 1
  18. " Enable NERDCommenterToggle to check all selected lines is commented or not
  19. let g:NERDToggleCheckAllLines = 1