dmonllao / vim-IDE

Use Vim along with your project git repository to have all project-oriented IDEs cool features
52 stars 23 forks source link

Disable automatic start in IDE mode #15

Open tflori opened 7 years ago

tflori commented 7 years ago

I'm not only using vim for IDE stuff - otherwise mostly I'm using vim for editing /etc/* but I don't want it to open IDEmode when editing /etc/hosts ;)

You mentioned in README how to start IDE mode (:IDEOpen) and how to close IDE mode (:IDEClose). I'm sure it is possible and I think I did it previous time when I installed vim-IDE but now I cant remember. Maybe you mention it in README?

dmonllao commented 7 years ago

Hi @tflori, sorry for the late reply. g:IDEAlways would be the opposite of what you want, but there is no command for that, it is up for each file type plugin to call autocmd vimenter * IDEOpen.

You may be interested in adding let g:IDEOnlyEditor = 1 in your ~/.vim/custom.vim though (https://github.com/dmonllao/vim-IDE/blob/master/custom.vim.dist#L42) it is the closest to what you want.

tflori commented 7 years ago

currently I commented out the vimenter line in the ftplugin file. does the * mean that should start for every file? maybe we can write /home/*/projects/* or mention this in the readme