Skip to content

Instantly share code, notes, and snippets.

@messa
Created September 16, 2009 14:33
Show Gist options
  • Save messa/188072 to your computer and use it in GitHub Desktop.
Save messa/188072 to your computer and use it in GitHub Desktop.
My settings
"""
Startup script for Python interactive mode
Add these two lines to .bashrc:
PYTHONSTARTUP="$HOME/.pythonrc.py"
export PYTHONSTARTUP
"""
import sys, os, readline, atexit
histfile = os.path.join (os.environ["HOME"], ".python_history")
try:
readline.read_history_file(histfile)
except IOError:
pass
atexit.register(readline.write_history_file, histfile)
import rlcompleter
readline.parse_and_bind('tab: complete')
del histfile, sys, os, readline, atexit, rlcompleter
syntax enable
colors slate
:hi Type ctermfg=cyan
:hi LineNr ctermfg=darkgray cterm=bold
:hi Function ctermfg=white
:hi Comment ctermfg=gray
set shiftwidth=4 " sirka odsazeni
set tabstop=4 " sirka tabulatoru
set expandtab " mezery misto tabulatoru
set smarttab " backspace snizi odsazeni
set cindent " chytre odsazovani
set hlsearch " zvyraznovani pri hledani
set number " cisla radku
set backspace=indent,eol,start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment