Re: calling normal commands from ex/a function

2007-05-16 Thread fREW
On 5/16/07, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: 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: > > f

Re: calling normal commands from ex/a function

2007-05-16 Thread Charles E Campbell Jr
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" end

Re: calling normal commands from ex/a function

2007-05-16 Thread Robert Cussons
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" endf

calling normal commands from ex/a function

2007-05-16 Thread fREW
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