
Recently found myself handling a bit of python code and not being able to use a GUI environment, it wasn't very easy to code using standard vim editor. Googled a bit and found few nice tips for enabling auto indent, syntax highlighting, and best of the best autocompletion of module details.For autocomplete feature you'll need to get pydiction installed. The .vim files and supporting files are available at http://www.vim.org/scripts/script.php?script_id=850.
Finally my ~/.vimrc file looks like following:
filetype plugin on
set nocompatible syntax on
set background=light
set showmatch
set ignorecase
set showmode
set ts=4
set sw=4
set autoindent
set smartindent
let g:pydiction_location = '/usr/local/share/pydiction/complete-dict'
0 comments:
Post a Comment