Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CComment remappings improved with opening and closing comments

  • Loading branch information...
commit 1e1b72c52d24d024d36b67758edd403b70fa5574 1 parent 735d331
Gianluca Fiore authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 .vimrc
4 .vimrc
@@ -287,8 +287,8 @@ function! XdefaultsComment()
287 287 endfunction
288 288
289 289 function! CComment()
290   - noremap - :s/^/\/\*/<CR>
291   - noremap _ :s/^\s*\/\* \=//<CR>
  290 + noremap - :s/^/\/\*/<CR> \| :s/$/ \*\//<CR> \| :nohls<CR>
  291 + noremap _ :s/^\s*\/\* \=//<CR> \| :s/\s*\*\/$//<CR> \| :nohls<CR>
292 292 set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
293 293 endfunction
294 294

0 comments on commit 1e1b72c

Please sign in to comment.
Something went wrong with that request. Please try again.