From 5606967050b5691cc63964b44bb1be43ae7a8a4b Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 30 Aug 2022 20:39:21 +0200 Subject: [PATCH] vim:keys: Fix `dd` (clear line) `0` is necessary to move to real beginning of the line. --- .config/vim/vimrc.d/40-keys.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index fa2d7a7..121bb39 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -160,7 +160,7 @@ endif nnoremap Y y$ " Clear line (`cc` but stay in normal mode) -nmap dd ^D +nmap dd 0D " Move lines up and down while correcting the indentation " https://vim.fandom.com/wiki/Moving_lines_up_or_down