Anonymous avatar Anonymous committed 7e0bd69

Add more files.

Comments (0)

Files changed (5)

+--type-set=rst=.rst
+newtext=darkgreen
+oldtext=darkred
+cvsstuff=blue
+set samples 300
+set macros
+# startup script for python to enable saving of interpreter history and
+# enabling name completion
+
+# import needed modules
+import os
+import atexit
+import readline
+import rlcompleter
+
+# where is history saved
+historyPath = os.path.expanduser("~/.pyhistory")
+
+# handler for saving history
+def save_history(historyPath=historyPath):
+    import readline
+    readline.write_history_file(historyPath)
+
+# read history, if it exists
+if os.path.exists(historyPath):
+    readline.set_history_length(10000)
+    readline.read_history_file(historyPath)
+
+# register saving handler
+atexit.register(save_history)
+
+# enable completion
+readline.parse_and_bind('tab: complete')
+
+# cleanup
+del os, atexit, readline, rlcompleter, save_history, historyPath
+bind pgup any prevPage
+bind pgdn any nextPage
+bind home any gotoPage(1)
+bind end any gotoLastPage
+
+bind g any reload
+
+initialZoom page
+urlCommand "firefox %s"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.