Skip to content

Instantly share code, notes, and snippets.

@nicalpi
Created July 24, 2013 14:01
Show Gist options
  • Save nicalpi/6070841 to your computer and use it in GitHub Desktop.
Save nicalpi/6070841 to your computer and use it in GitHub Desktop.
Is it possible to VimGolf this?
# To help me importing some CSV
# Using vim (to avoid eval hell)
# can we 'easily' move from something like
legacy_venue_id,venue_name,legacy_region_id,venue_address,venue_oot,venue_db,venue_notes
# To something like
legacy_venue_id = row[0]
venue_name = row[1]
legacy_region_id = row[2]
venue_address = row[3]
venue_oot = row[4]
venue_db = row[5]
venue_notes = row[6]
@nelstrom
Copy link

I'm sure that if you posted this example to http://vimgolf.com/ you'd get some solutions that required fewer keystrokes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment