Skip to content

Instantly share code, notes, and snippets.

@chriszf
Created November 12, 2013 17:48
Show Gist options
  • Save chriszf/7435390 to your computer and use it in GitHub Desktop.
Save chriszf/7435390 to your computer and use it in GitHub Desktop.
"Python needs to be more like vim" -- nobody anywhere, ever
Meringue:shenanigans chriszf$ python
Python 2.7.1 (r271:86832, Jun 25 2011, 05:09:01)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lib.vim
>>> some_str = "DevBeat is pretty alright"
>>> s/"alright"/"awesome"/some_str
'DevBeat is pretty awesome'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment