vim:keys: Map <leader>" 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.
This commit is contained in:
2022-12-28 12:57:13 +01:00
parent fd1cb36437
commit 731a290d7b

View File

@@ -243,6 +243,9 @@ noremap ][ ]]
" Strip trailing whitespace
nnoremap <leader><space> :silent! %s/\v\s+$//<CR>
" Convert double quotes to single
nnoremap <leader>" :silent! %s/"/'/g<CR>
" Keep selection when changing the indentation in visual mode
vnoremap > >gv
vnoremap < <gv