diff options
author | Adam Hovorka <[email protected]> | 2017-07-23 16:39:58 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2017-07-23 16:39:58 -0600 |
commit | 69d878b09a2c1aa8d3373a311cd5945e0a430045 (patch) | |
tree | 85f36b836e5eb2a93b0bc504db66735757382d6a /base | |
parent | 256cf4d5e214ca4bd0a06a210183d388a7d66038 (diff) |
Change commenter regex to place slashes closer to code
Diffstat (limited to 'base')
-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 |