
1 kumu 2013 年 9 月 10 日 function HeaderPython() call setline(1, "#!/usr/bin/env python") call append(1, "# -*- coding: utf-8 -*-") normal G normal o normal o endf autocmd bufnewfile *.py call HeaderPython() 加入以上代码即可 |
3 xiaokai 2013 年 9 月 10 日 |
4 xiaokai 2013 年 9 月 10 日 |
5 mengzhuo 2013 年 9 月 10 日 用上snippets吧 https://github.com/honza/vim-snippets |
6 eth2net 2013 年 9 月 10 日 |
7 jpuyy 2013 年 9 月 10 日 |
8 wklken 2013 年 9 月 10 日 装个ultisnips https://github.com/wklken/k-vim#sirverultisnips |
9 syv2 2013 年 9 月 10 日 在.vimrc里添加一行 autocmd BufNewFile *.py 0r /path_to_template_file |
10 GreenHand 2013 年 9 月 11 日 autocmd BufNewFile *.py 0r ~/.python_template.py |