Permalink
Browse files

update configs a bit

  • Loading branch information...
1 parent 9430250 commit b7d36fd5b550a5672bc8bb0ad1ddd499e3c91acb @linsong committed Sep 29, 2007
Showing with 10 additions and 2 deletions.
  1. +8 −0 .bashrc
  2. +2 −2 .pythonrc
View
@@ -375,5 +375,13 @@ __END
{
/usr/bin/env vim -u $HOME/.vim_simple_rc -U NONE --noplugin --cmd ":setlocal buftype=nofile" "${@:--}"
}
+
+ function vv()
+ {
+ # following command use vim as a terminal command, just like sed, awk etc,
+ # it is suitable to use in a script or just command line
+ #/usr/bin/env vim -X -E -s -u NONE -c <add some useful command here> -c 'wq' "$@"
+ echo "Not Done Yet"
+ }
# }}}
View
@@ -1,4 +1,4 @@
-def read_history_file():
+def init_history_file():
import os
histfile = os.path.join(os.environ["HOME"], ".pyhist")
try:
@@ -16,6 +16,6 @@ except ImportError:
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
- read_history_file()
+ init_history_file()
# vim: ft=python

0 comments on commit b7d36fd

Please sign in to comment.