From 6f280c5198386265b37aa1d7cd7e86f3f7550a85 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 17 May 2020 15:41:15 -0400 Subject: react comments hack --- plug-config/nerd-commenter.vim | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'plug-config/nerd-commenter.vim') diff --git a/plug-config/nerd-commenter.vim b/plug-config/nerd-commenter.vim index 8b054e34..1a581a53 100644 --- a/plug-config/nerd-commenter.vim +++ b/plug-config/nerd-commenter.vim @@ -1,28 +1,3 @@ - -" nnoremap / :Commentary -" vnoremap / :Commentary - -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 +" nnoremap / :Commentary +vnoremap / :Commentary +autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */} -- cgit v1.2.3