Advertisement
Soy_Estudiante

python_02

May 24th, 2022
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function AddTitle()
  2. call setline(1,"#!/bin/python")
  3. call append(2,"#Filename: " . expand("%"))
  4. call append(3,"#Author: TermuxByte")
  5. call append(5,"#Date: " . strftime("%Y-%m-%d"))
  6. endf
  7.  
  8. map <F4> : call AddTitle() <cr>
  9.  
  10. nnoremap <F5> <esc>:w<enter>:!python %:p<enter>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement