Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want everything that has to do with text to be edited within console vim with tabs.

My problem is that I can't open files in console vim from GUI, I can only open them in gvim. Does anyone know how I can do such a thing?

For example my most frequent issue is with a game called Second Life. In this game you can write scripts and it gives you the option to edit your scripts in External editors. I want my external editor to be console vim. These are the instructions from the game: ExternalEditor: Path to program used to edit LSL scripts and XUI files, e.g.: /usr/bin/gedit --new-window "%s". so when I put: "/usr/bin/X11/gvim" "%s" it works for gvim, but it opens a new one each time I edit a new script AND this doesn't work at all for console vim. I tried vim server, but it was a failure.

If someone knows how to do what I want, please share.

Thanks in advance.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Okay, I guess the instructions that I read for vim server were not accurate. After digging a bit more into it, I found a line that works. I Initialized a vim server with the following command in terminal:

vim --servername LSLEditor

And then in the Second Life viewer external editor text I put:

/usr/bin/X11/vim --servername LSLEditor --remote-tab "%s"

Since this answer is more directed to Second Life I will Change the title so if someone else wants to do the same, they can find the answer here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.