Tuesday, December 4, 2012

execute edit command

Why does this not work?

let dnfile = strftime("%Y") . ".md"
nmap <leader>dn execute 'e ' fnameescape(dnfile)

dnfile is set properly, but when I try to invoke it, it makes a change
to the current buffer...

c
--
Chris Lott <chris@chrislott.org>

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment