fREW wrote:
Hey everyone,
How do I have a function call Normal commands? Example: I'd like to
make a function that will open a certain file, and then set the
foldlevel to 1, and then go to the right window. So I have:
function TodoListMode()
execute ":e ~/.todo.otl"
execute ":Calendar"
endfunction
and then after the second command I want to do:
<ctrl>wl
zM
zr
Thanks!
-fREW
Hi fREW,
execute "normal! <ctrl>wl zM zr"
would be my guess, but I've never tried writing my own functions, this
is adapted from someone else's work, so someone else's input would be
useful :-)
Rob.