From 552b28da98a387d13aea7403a7e72732a913277d Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 2 Feb 2009 23:43:35 +0100 Subject: tools/vim/plugin: Added a function to configure vim for python scripts. --- tools/vim/plugin/apbteam.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/vim') diff --git a/tools/vim/plugin/apbteam.vim b/tools/vim/plugin/apbteam.vim index fa320567..6a1d3393 100644 --- a/tools/vim/plugin/apbteam.vim +++ b/tools/vim/plugin/apbteam.vim @@ -60,6 +60,16 @@ function! APBTeamProg() nmap h :GHPH p endfunction +function! APBTeamPython() + " Programming options. + setlocal tabstop=4 + setlocal shiftwidth=4 + setlocal smarttab + setlocal expandtab + setlocal softtabstop=4 +endfunction + + " If you do not want automatic execution. if exists('g:no_apbteam') | finish | endif @@ -67,5 +77,6 @@ call APBTeam() au FileType c call APBTeamProg() au FileType cpp call APBTeamProg() +au FileType python call APBTeamPython() au BufNewFile README Template README au BufNewFile *.c,*.cc,*.tcc,*.icc,*.h,*.hh,*.hpp,*.C,*.cxx TemplateHeader -- cgit v1.2.3