summaryrefslogtreecommitdiff
path: root/plug-config/nerd-commenter.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2020-05-10 19:23:44 -0400
committerChris <[email protected]>2020-05-10 19:23:44 -0400
commitdb80027544fdb56160b2e4bef16a98bdc1da76c8 (patch)
treee2a110a9b468c48f522ace148cdfefa8af161815 /plug-config/nerd-commenter.vim
parent5977c59876bd41de06461b81b6758dafe097faed (diff)
updates
Diffstat (limited to 'plug-config/nerd-commenter.vim')
-rw-r--r--plug-config/nerd-commenter.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/plug-config/nerd-commenter.vim b/plug-config/nerd-commenter.vim
new file mode 100644
index 00000000..8b054e34
--- /dev/null
+++ b/plug-config/nerd-commenter.vim
@@ -0,0 +1,28 @@
+
+" nnoremap <space>/ :Commentary<CR>
+" vnoremap <space>/ :Commentary<CR>
+
+let g:NERDCreateDefaultMappings = 0
+" Add spaces after comment delimiters by default
+let g:NERDSpaceDelims = 1
+
+" Use compact syntax for prettified multi-line comments
+let g:NERDCompactSexyComs = 1
+
+" Align line-wise comment delimiters flush left instead of following code indentation
+let g:NERDDefaultAlign = 'left'
+
+" Set a language to use its alternate delimiters by default
+let g:NERDAltDelims_java = 1
+
+" Add your own custom formats or override the defaults
+let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
+
+" Allow commenting and inverting empty lines (useful when commenting a region)
+let g:NERDCommentEmptyLines = 1
+
+" Enable trimming of trailing whitespace when uncommenting
+let g:NERDTrimTrailingWhitespace = 1
+
+" Enable NERDCommenterToggle to check all selected lines is commented or not
+let g:NERDToggleCheckAllLines = 1