I'm trying to execute an autocommand when a file (buffer?) is opened in vim that will display indentation guides by executing <Leader>ig
. I'm using the vundle plugin nathanaelkane/vim-indent-guides
I currently am trying autocmd BufWinEnter <Leader> ig
, but that doesn't seem to be working. I've also tried with <Leader>ig
.
What do I need to change to make this work?
BufReadPost
andFileReadPost
if you want to make sure the file's contents have been read first. – Ezarra