Last active
December 24, 2015 23:59
-
-
Save steadystatic/6884435 to your computer and use it in GitHub Desktop.
Attempt at a quick vim function
This file contains hidden or 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
| function TitleGrab() | |
| try | |
| let @x = /media-external | |
| 6wvt""ayl:0 | |
| /a | |
| let @y = bhvT,"byhku/overlay | |
| 4wvt]"cy/kb:0 | |
| /c | |
| /textDefault | |
| 3wab/labelDefault | |
| 3wab/altTextDefault | |
| 3wab | |
| let @z = /media-external | |
| j | |
| let @s = hj | |
| let MissionSuccess=1 | |
| execute “normal @x” | |
| catch | |
| execute “normal @s” | |
| finally | |
| if exists(MissionSuccess) | |
| execute “normal @y” | |
| execute “normal @z” | |
| endif | |
| endtry | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment