diff options
-rw-r--r-- | base/.vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/.vimrc b/base/.vimrc index 9265ad0..4e3858a 100644 --- a/base/.vimrc +++ b/base/.vimrc @@ -138,8 +138,8 @@ nnoremap <leader>q gqip nnoremap <leader>vp V`] nnoremap <leader>h :syntax sync fromstart<CR> -noremap <silent> + :s/^/\/\//<CR>:noh<CR> -noremap <silent> - :s/^\/\///<CR>:noh<CR> +noremap <silent> + :s/^\s*/&\/\//<CR>:noh<CR> +noremap <silent> - :s/^\(\s*\)\/\//\1/<CR>:noh<CR> vnoremap Q gq nnoremap Q gqap |