diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-10 10:38:50 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-10 10:38:50 +1200 |
commit | ed2dfe06b1ad22d09af7fe7efc36555812c24aa5 (patch) | |
tree | ffc37ddaaf7ae67f2e7f81acc92f56493020a9b2 /vim/vimrc | |
parent | Merge branch 'release/v4.19.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-ed2dfe06b1ad22d09af7fe7efc36555812c24aa5.tar.gz dotfiles-ed2dfe06b1ad22d09af7fe7efc36555812c24aa5.zip |
Merge branch 'release/v4.20.0'v4.20.0
* release/v4.20.0:
Bump VERSION
Update vim-juvenile to v0.4.0
Update vim-insert-suspend-hlsearch to v0.7.0
Update vim-insert-cancel to v3.3.0
Update vim-foldlevelstart-stdin to v0.2.0
Update vim-equalalways-resized to v0.2.0
Update vim-digraph-search to v0.2.0
Update vim-diff-prune to v1.3.0
Update vim-cursorline-current to v0.4.0
Update vim-copy-linebreak to v0.7.0
Update vim-colon-operator to v0.4.0
Update vim-cmdwin-ctrlc to v0.3.0
Update vim-big-file-options to v1.1.0
Remove unnecessary l: prefixes to Vim variables
Remove unnecessary g: prefixes to Vim variables
Remap g& to preserve substitution flags
Bind \S in Vim to run :scriptnames
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -243,9 +243,10 @@ if &loadplugins " Don't change the mapping if we won't be loading the plugin nmap <Space> <Plug>(ScrollNext) endif -" Remap normal/visual & to preserve substitution flags +" Remap normal/visual & and g& to preserve substitution flags nnoremap <silent> & :&&<CR> xnoremap <silent> & :&&<CR> +nnoremap <silent> g& :<C-U>%&&<CR> " Map g: as a 'colon operator' nmap g: <Plug>(ColonOperator) @@ -348,6 +349,9 @@ nnoremap <Leader>R :<C-U>source $MYVIMRC<CR> " \s toggles spell checking nnoremap <Leader>s :<C-U>setlocal spell! spell?<CR> +" \S shows loaded scripts +nnoremap <Leader>S :<C-U>scriptnames<CR> + " \t shows current filetype nnoremap <Leader>t :<C-U>setlocal filetype?<CR> " \T clears filetype |