summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-02-02 23:43:35 +0100
committerNélio Laranjeiro2009-02-02 23:43:35 +0100
commit552b28da98a387d13aea7403a7e72732a913277d (patch)
tree7bc579335d3abe6d3c6092ef026d6ceffcaa7d8d
parent0c176afccbe18eee09fbf7e67966b6a53c5b4420 (diff)
tools/vim/plugin: Added a function to configure vim for python scripts.
-rw-r--r--tools/vim/plugin/apbteam.vim11
1 files changed, 11 insertions, 0 deletions
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 <buffer> <Leader>h :GHPH p<CR>
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