From 3f259d9cd82cbd3381410c74a22cfec337c56577 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 28 Sep 2022 00:58:48 +0200 Subject: [PATCH] vim: Do not include the line break in selections --- .config/vim/vimrc.d/30-settings.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/vim/vimrc.d/30-settings.vim b/.config/vim/vimrc.d/30-settings.vim index ae8ff84..0fd347d 100644 --- a/.config/vim/vimrc.d/30-settings.vim +++ b/.config/vim/vimrc.d/30-settings.vim @@ -86,6 +86,8 @@ set virtualedit+=block " Do not redraw screen while executing macros, registers and other commands that " have not been typed. set lazyredraw +" Visual selection does not include the line break +set selection=old if (exists('g:loaded_gitgutter')) " Augment the default `foldtext()` with an indicator whether the folded