Vim to delete comment char when joining comment lines
dblume

dblume commited on 2024-03-19 09:10:05
Showing 1 changed files, with 1 additions and 0 deletions.

... ...
@@ -13,6 +13,7 @@ set listchars+=tab:>-,precedes:<,extends:>,nbsp:ยท " for :set list
13 13
 set iskeyword+=-    " Add - to list of non-word-breaking chars.
14 14
 set incsearch       " Navigate to matched strings while typing. Toggle: :set is!
15 15
 set scrolloff=0     " EC2 defaults to 5. Set explicitly to be consistent
16
+set formatoptions+=j " Delete comment character when joining commented lines.
16 17
 
17 18
 if v:version >= 703
18 19
   " Do save the undo tree to file, but not in the local directory.
19 20