0

How can I configure VIM to automatically open WindowManager at startup? That is, how can I configure it to execute :WMToggle at startup?

JohnTortugo
  • 6,356
  • 7
  • 36
  • 69

2 Answers2

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