How can I configure VIM to automatically open WindowManager at startup? That is, how can I configure it to execute :WMToggle at startup?
Asked
Active
Viewed 145 times
0
-
how to close vim when all files are closed? – JohnTortugo Jun 21 '12 at 23:09
2 Answers
2
Check out this related question: Vim - how to run a command immediately when starting vim?.
For what you are dong I think the second solution is the easy way to do what you want.
You will just need to put this in your .vimrc:
autocmd VimEnter * WMToggle

Community
- 1
- 1

vim_commando
- 96
- 4
0
Add an alias in your ~/.bashrc
or wherever you put that kind of things:
alias vim='/path/to/vim -c :WMToggle'

romainl
- 186,200
- 21
- 280
- 313