Created
November 12, 2013 17:48
-
-
Save chriszf/7435390 to your computer and use it in GitHub Desktop.
"Python needs to be more like vim" -- nobody anywhere, ever
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
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