Created
May 22, 2012 18:57
-
-
Save paulhodge/2770949 to your computer and use it in GitHub Desktop.
vim: open a file using the date as filename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" type :L to open a file at ~/notes/log/<current date> | |
fun! OpenLog() | |
let fname = strftime("%Y_%m_%d") | |
exe ":e ~/notes/log/" . fname | |
endfun | |
command L call OpenLog() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment