diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 00:41:40 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 00:41:40 +1300 |
commit | 2044d97b03c31083cc0bb47a3f65d729d98f558b (patch) | |
tree | f41874a69203faf1f1e5780925b06e84310a9eeb /vim/config/substitution.vim | |
parent | Merge branch 'release/v0.7.0' (diff) | |
parent | Bump version number to 0.8.0 (diff) | |
download | dotfiles-2044d97b03c31083cc0bb47a3f65d729d98f558b.tar.gz dotfiles-2044d97b03c31083cc0bb47a3f65d729d98f558b.zip |
Merge branch 'release/v0.8.0'v0.8.0
* release/v0.8.0:
Bump version number to 0.8.0
Use BufReadPost hook for big_file_options.vim
Limit search highlighting hooks to Vim >= 7.1
Add explanatory note for choosing imperfect remap
Set 'guioptions' flag by flag
Use variable setting approach for 'guifont'
Add short-circuit boilerplate to plugins
Simplify shell linting code with single vars
Use spaces around concat dots in VimL consistently
Remove vim/bundle/html5 submodule
Remove vim/bundle/targets submodule
Adjust plugin code layout a lot
Diffstat (limited to 'vim/config/substitution.vim')
-rw-r--r-- | vim/config/substitution.vim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vim/config/substitution.vim b/vim/config/substitution.vim index da9eb47e..415665ef 100644 --- a/vim/config/substitution.vim +++ b/vim/config/substitution.vim @@ -1,4 +1,11 @@ " Preserve the flags for a pattern when repeating a substitution with &; I " don't really understand why this isn't a default, but there it is -nnoremap & :&&<CR> -vnoremap & :&&<CR> +nnoremap <silent> + \ & + \ :<C-U>&&<CR> + +" Same again for visual mode; we use vnoremap rather than xnoremap to stay +" compatible with old Vims without doing eval() dances +vnoremap <silent> + \ & + \ :<C-U>&&<CR> |