From f05300bf26f7921ce09ae6528c3cd4392bbe20cd Mon Sep 17 00:00:00 2001 From: Derek Erdmann Date: Sun, 4 Feb 2024 16:46:16 -0800 Subject: [PATCH] vimrc: Add j to formatoptions Strips leading comment characters when joining lines --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index aac0f3e..78ae230 100644 --- a/.vimrc +++ b/.vimrc @@ -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