Skip to content

Commit

Permalink
change file title
Browse files Browse the repository at this point in the history
  • Loading branch information
hljyunxi committed May 24, 2014
1 parent fef1433 commit 03f7849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ autocmd BufNewFile *.sh,*.py exec ":call SetTitle()"
func SetTitle()
if &filetype == 'sh'
call setline(1, "\#!/bin/sh")
call append(line("."), "\# Author: gaopenghigh<gaopenghigh@gmail.com>")
call append(line("."), "\# Author: chenyunyun<hljyunxi@gmail.com>")
call append(line(".")+1, "")
:8
elseif &filetype == 'python'
call setline(1, "\#!/usr/bin/python")
call append(line("."), "\# -*- coding: utf-8 -*-")
call append(line(".")+1, "\# Author: gaopenghigh<gaopenghigh@gmail.com>")
call append(line("."), "\#coding: utf8")
call append(line(".")+1, "\# Author: chenyunyun<chenyunyun@gmail.com>")
call append(line(".")+2, "")
:8
endif
Expand Down

0 comments on commit 03f7849

Please sign in to comment.