Part of my vim set up is like this:
$HOME/.vimrc
runtime autocmd.vim
And in $HOME/.vim/autocmd.vim I have amongst other things (I need to review
all this again):
augroup python_autocmd
" Remove all python autocommands
autocmd!
autocmd FileType python set smartindent autoindent
autocmd FileType python set formatoptions=croql
autocmd FileType python set cinoptions=t0(0
autocmd FileType python set textwidth=78 shiftwidth=4
autocmd FileType python set softtabstop=4 tabstop=8
autocmd FileType python set expandtab
autocmd FileType python compiler python
autocmd FileType python hi PreProc ctermfg=DarkCyan guifg=DarkCyan
autocmd FileType python set dict=$HOME/.vim/python.dict
autocmd BufEnter *.py if getline(1) == "" | call setline(1, "#!/usr/bin/env py
thon") | call append(1, "") | call cursor(2,1) | endif
autocmd BufWrite * if &ft == 'python' | call StripTrailingWhiteSpace()
autocmd BufWritePost *.py if FileExecutable("%:p") | :!chmod a+x % ^@ endif
augroup END
And these are additional things I have inside my $HOME/.vim:
autoload:
pythoncomplete.vim - 0.7
http://www.vim.org/scripts/script.php?script_id=1542
compiler:
python.vim:
http://www.vim.org/scripts/script.php?script_id=1439
ftplugin:
python_encodings.vim:
http://www.vim.org/scripts/script.php?script_id=756
xml.vim - 1.33
http://www.vim.org/scripts/download_script.php?src_id=5909
indent:
python.vim:
http://www.vim.org/scripts/script.php?script_id=974
plugin:
a.vim - 2.15
http://www.vim.org/scripts/script.php?script_id=31
matchit.vim 1.12
http://www.vim.org/scripts/script.php?script_id=39
project.vim - 1.4.1
http://www.vim.org/scripts/script.php?script_id=69
pydoc.vim - 1.1.1
http://www.vim.org/scripts/script.php?script_id=910
snippetEmu.vim:
http://www.vim.org/scripts/script.php?script_id=1318
taglist.vim - 4.3
http://www.vim.org/scripts/script.php?script_id=273
vcscommand - beta 12
http://www.vim.org/scripts/script.php?script_id=90
syntax:
clearsilver:
http://www.vim.org/scripts/script.php?script_id=1100
django:
http://www.vim.org/scripts/script.php?script_id=1487
genshi:
http://www.vim.org/scripts/script.php?script_id=1869
gtk and such:
http://www.vim.org/scripts/script.php?script_id=1000
mathml.vim - 1.1
http://www.vim.org/scripts/script.php?script_id=1235
python.vim:
http://www.vim.org/scripts/script.php?script_id=790
svg.vim - 1.2
http://www.vim.org/scripts/script.php?script_id=935
txt.vim:
http://www.vim.org/scripts/script.php?script_id=1532
--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
De nihilo nihil...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---