Created
October 3, 2012 21:54
-
-
Save smujohnson/3830128 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func! FixShiftGlobal() | |
if getcmdtype() == ":" | |
let gcp = getcmdpos()-1 | |
let head = strpart(getcmdline(), 0, gcp) | |
if head ==# "G" || head ==# "'<,'>G" || head =~# '^\.,\.+\d\+G$' | |
return "\<BS>g/" | |
endif | |
endif | |
return '/' | |
endfunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment