Friday, June 22, 2012

Re: Can vim be made to start with selected files already open?

On Jun 22, 2012, at 6:10 AM, Eric Weir wrote:

> I'm gonna go ahead and give it a try. My be back here for further instructions.

This is what I created.

command All :args ~/documents/taskpaper/writing.taskpaper, ~/documents/taskpaper/work.taskpaper,
~/documents/taskpaper/mine.taskpaper, ~/vimwiki/index.wiki <bar> All

Originally I named the command 'su' [startup]. It didn't take that. I changed to 'all'. To avoid having to enter an uppercase 'A'. That didn't work. I had a '-p' in there to try to get the files to open in tabs. It seemed to be taking that as part of a path. I deleted it. In its present form I get this error message:

When I run it I get these error messages.

"~/documents/taskpaper/writing.taskpaper," [New File]
Error detected while processing /Applications/MacVim.app/Contents/Resources/vim/run
time/scripts.vim:
line 1:
"~/documents/taskpaper/writing.taskpaper," [New File]
Error detected while processing BufNewFile Auto commands for "*":
E169: Command too recursive
Error detected while processing BufEnter Auto commands for "*":
E169: Command too recursive

Thanks,
------------------------------------------------------------------------------------------
Eric Weir

"You will be needed in the movement when you realize
that you are not needed in the movement."

- Chris Crass

--
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: