From bfe865ce32c25a5df807d8dc5c95517c26db6f71 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 1 Mar 2023 19:20:54 +0100 Subject: vim: get rid of semantic newlines in comments --- %HOME%/.vimrc | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to '%HOME%/.vimrc') diff --git a/%HOME%/.vimrc b/%HOME%/.vimrc index 3dfd96c..8667301 100644 --- a/%HOME%/.vimrc +++ b/%HOME%/.vimrc @@ -45,10 +45,9 @@ set colorcolumn=80 " Key bindings " ----------------------------------------------------------------------------- -" In insert mode, press F2 to enter 'paste mode'. -" Now you can paste text from elsewhere and _not_ mess up indentation. -" Nice and easy, right? -" Press F2 again to exit 'paste mode'. +" In insert mode, press F2 to enter 'paste mode'. Now you can paste text from +" elsewhere and _not_ mess up indentation. Nice and easy, right? Press F2 again +" to exit 'paste mode'. nnoremap :set invpaste paste? set pastetoggle= set showmode @@ -61,18 +60,18 @@ nmap o " System settings " ----------------------------------------------------------------------------- -" Backup files are written to ~/.vimtmp/backup/. -" I'm not sure how the whole thing's gonna work out in case of concurrent -" writes to multiple files with the same name, since backup file names will -" collide due to a long-standing Vim issue. +" Backup files are written to ~/.vimtmp/backup/. I'm not sure how the whole +" thing's gonna work out in case of concurrent writes to multiple files with +" the same name, since backup file names will collide due to a long-standing +" Vim issue. +" " Vim treats `backupdir` option inconsistently: if its value ends with two " slashes, Vim doesn't convert the absolute path of the file being backed up " to its backup file name (replacing directory separators with % signs) as it " does with swap and 'persisent undo' files, but rather simply appends ~ to -" the end of file's name. -" For some reason it still works this way when there're two slashes at the -" end, so I'm gonna stick with this, hoping that this problem gets fixed in -" the future. +" the end of file's name. For some reason it still works this way when there're +" two slashes at the end, so I'm gonna stick with this, hoping that this +" problem gets fixed in the future. set backupdir=~/.vimtmp/backup// set nobackup set writebackup -- cgit v1.2.3