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.

My copy of vim Install vim has many plugins installed: ruby, php, python etc.

When I invoke vim from the terminal, I have to wait ~ 10 seconds before vim finishes starting.

Is it possible to have it load when Ubuntu starts?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, but I don't see using it without a terminal (unless you use gVim). You can add it to .bashrc in your home directory ( or .bash_profile under some circumstances ).

See https://help.ubuntu.com/community/AddingProgramToSessionStartup for instructions on adding startup applications in Ubuntu. The command would be one of the following:

gvim #vim GUI version

gnome-terminal --command 'vim' #execute ONLY vim in a terminal

gnome-terminal #start a terminal, and vim will load if it's in .bashrc

Replace "gnome-terminal" and "--command" with your favored terminal emulator and syntax for running commands on startup, respectively.

share|improve this answer
1  
In case you need to run other programs from the command line, you can use Ctrl+z to pause vim while you do something else, and the 'fg' command in bash to restore your previous editor state. Bash job control is awesome. –  Barbarrosa Dec 3 '11 at 2:47
    
Oh! ctrl+z and "fg" - is awesome! =) –  Вячеслав Логинов Dec 8 '11 at 11:06

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.