nerdcommenter.vim 884 B

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