Skip to content

Commit

Permalink
vimrc: Add j to formatoptions
Browse files Browse the repository at this point in the history
Strips leading comment characters when joining lines
  • Loading branch information
derekerdmann committed Feb 5, 2024
1 parent 8f1cd88 commit f05300b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ set expandtab
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:EditorConfig_enable_for_new_buf = 1

" When joining lines, remove the second line's leading comment characters
set formatoptions+=j

" Disable error bells
set belloff=all

Expand Down

0 comments on commit f05300b

Please sign in to comment.