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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user