wordpress.vim
wordpress.vim copied to clipboard
Conflict with tcd.vim - Any way to turn off auto tag generation and bind to a key?
I use quite a few plugins in my daily editing, but tcd.vim is probably one of the most important.
If you haven't come across it, it simply allows auto changing of current directories when switching between tabs. This allows having seperate projects open on a per tab basis, with things like NerdTree and this plugin generally behaving and working exactly as they should on a per tab basis.
However what's happening is this: .vimrc open in tab1 pwd: ~/ WordPress project in tab two pwd: ~/ol/y/MyWordPressProject/wordpress Wordpress.vim will nicely auto gen ctags in ~/ol/y/MyWordPressProject/wordpress, perfect.
However if then in my .vimrc tab I do a
:bd
Because .vimrc is my last buffer in that tab, one of my WordPress buffers will replace it. This has never bothered me in the past. However now WordPress.vim kicks in detecting the WordPress file and begins generating tags in my home directory, very quickly filling my entire hdd with its tags file. I then have to kill the ctags process, rm the tags file and restart vim due to swap write errors.
I realise this is very edge case and will never affect 99% of people, but do you have any suggestions on how to prevent this? Could we perhaps have a global variable that allows us to auto place the tags in the detected /wordpress folder instead of the current directory? Or even a 'WordPress project detected, generate ctags?' prompt so at least the user choice is there.