From 731a290d7bad46b33f7d4afefb2f02210dc3b92f Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 28 Dec 2022 12:57:13 +0100 Subject: [PATCH] vim:keys: Map " to s/"/'/g I prefer single quotes when a language supports them for normal strings (e.g. python & vimlang). Add this mapping for a quick conversion. --- .config/vim/vimrc.d/40-keys.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 79d98ba..3b8b5f6 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -243,6 +243,9 @@ noremap ][ ]] " Strip trailing whitespace nnoremap :silent! %s/\v\s+$// +" Convert double quotes to single +nnoremap " :silent! %s/"/'/g + " Keep selection when changing the indentation in visual mode vnoremap > >gv vnoremap <