Spearfisher
Spearfisher

Reputation: 8773

Launch plugin on start

I have just installed the indent guides plugin for vim which is very useful: https://github.com/nathanaelkane/vim-indent-guides

However I'd like to have it launched in startup. The way it works now is the following: I start Vim and then I have to use ig to activate it.

How can I load it automatically?

Many thanks

Upvotes: 0

Views: 251

Answers (1)

romainl
romainl

Reputation: 196476

Try to put this in your vimrc:

augroup IndentGuides
    autocmd!
    autocmd VimEnter * IndentGuidesEnable
augroup END

Upvotes: 1

Related Questions