Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddTitle()
- call setline(1,"#!/bin/python")
- call append(2,"#Filename: " . expand("%"))
- call append(3,"#Author: TermuxByte")
- call append(5,"#Date: " . strftime("%Y-%m-%d"))
- endf
- map <F4> : call AddTitle() <cr>
- nnoremap <F5> <esc>:w<enter>:!python %:p<enter>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement