Created
September 16, 2009 14:33
-
-
Save messa/188072 to your computer and use it in GitHub Desktop.
My settings
This file contains 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
""" | |
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 | |
This file contains 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
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