Browse Source

python auto add header

remotes/origin/master
Ein Verne(einverne) 10 years ago
parent
commit
eecb794fa4
  1. 3
      python_vimrc

3
python_vimrc

@ -66,6 +66,9 @@ au BufRead,BufNewFile *.c,*.h set formatoptions-=c formatoptions-=o formatoption
" C: yes " C: yes
au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix
" auto add #! /usr/bin/env python
autocmd BufNewfile *.py call append(0,'#!/usr/bin/env python')
autocmd BufNewfile *.py call append(1,'# -*- coding: UTF-8 -*-')
" ---------------------------------------------------------------------------- " ----------------------------------------------------------------------------
" The following section contains suggested settings. While in no way required " The following section contains suggested settings. While in no way required

Loading…
Cancel
Save