Skip to content

Instantly share code, notes, and snippets.

@steadystatic
Last active December 24, 2015 23:59
Show Gist options
  • Select an option

  • Save steadystatic/6884435 to your computer and use it in GitHub Desktop.

Select an option

Save steadystatic/6884435 to your computer and use it in GitHub Desktop.
Attempt at a quick vim function
function TitleGrab()
try
let @x = /media-external
6wvt""ayl:0
/a
let @y = bhvT,"byh€ku/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