Closed humanshell closed 12 years ago
I seem to have it working, but as usual, I've gotten it to work without fully understanding how I did it. :-)
I found this page describing a preview height hack: http://stackoverflow.com/questions/3712725/can-i-change-vim-completion-preview-window-height
and then found it being used in another vimfiles repo: https://github.com/vijaydev/dotfiles/blob/master/vimrc
Both the :help and the :Gstat windows now open full size (height).
I'm gonna use it for a while and make sure I don't run into any problems.
As far as I can tell the PreviewHeightWorkAround
function is run automatically every time a buffer gets "focus". If the buffer is in a preview window it sets its height to that of previewheight
, in the case of the example "50".
This looks like a good solution, please let us know how it works out with day to day usage.
How has this been working out for you?
Well, as I wrote in the message for the colorcolumn pull request, I've started my own version of your vimfiles so that I could better understand the inner workings of all the plugins you had included in yours. It was awesome to be able to have all that functionality at my fingertips from the start but I wasn't really learning about from where and how all the functionality was being provided.
My setup is in this repo: https://github.com/humanshell/dotfiles
Currently I'm running 9 of the plugins I learned about from your repo. Fugitive is one of them but lately (out of sheer habit) I've been using git at the CLI as I did before committing to switching over to vim, so I haven't been using git inside vim lately. However, the PreviewHeightWorkAround
seems to be working fine for opening :help
. I just tried to run :Gstatus in mvim and it appears to be opening the preview window (or buffer?) correctly. There is so much to fugitive that it's almost as daunting to learn as vim itself. :-)
I started my vim setup by going line by line through your vimrc and moving over the parts that related to my usual workflow. That was a huge help because I was able to really see how each section of the vimrc sets up my environment. I still jump back to TextMate every now and then, usually when I need to do something "quick". Moving to vim is truly a commitment and I think it's important to have your old standby editor there as a crutch in the beginning.
Yehuda Katz wrote a great article about this:
http://yehudakatz.com/2010/07/29/everyone-who-tried-to-convince-me-to-use-vim-was-wrong/
Thanks for keeping in touch. If you have any comments on my dotfiles repo above, or if you see something wrong in my vim config, please let me know. I will make it a point to use git from inside vim to make sure the PreviewHeightWorkAround
doesn't need any more tweaking.
Happy Holidays
Really appreciate your feedback. I, for the same reasons as yourself, mostly use git CLI and gitx, instead of Fugitive. I pretty much only use :Gstat
and the fix looks to work fine. I'll think I'll go ahead and merge it in shortly.
I really found benefit in going cold turkey even with a week or more with lower productivity, it kind forced me to find "the way" to do particular maneuvers in vim.
Keep in touch and let me know if you come across any interesting plugins.
I agree with going cold turkey. However, when you're sitting for your Java exam and have just shy of 2 hours to write 4 fairly involved programs you don't have the luxury of "lower productivity". :-)
Other than situations like that I try to forget that TextMate in on my machine and stick totally to Vim. I will definitely let you know if I come across any useful plugins.
On Dec 16, 2011, at 5:36 AM, Kris Leech wrote:
Really appreciate your feedback. I, for the same reasons as yourself, mostly use git CLI and gitx, instead of Fugitive. I pretty much only use
:Gstat
and the fix looks to work fine. I'll think I'll go ahead and merge it in shortly.I really found benefit in going cold turkey even with a week or more with lower productivity, it kind forced me to find "the way" to do particular maneuvers in vim.
Keep in touch and let me know if you come across any interesting plugins.
Reply to this email directly or view it on GitHub: https://github.com/krisleech/vimfiles/issues/5#issuecomment-3175714
Good luck with your exam! If your and Rubyist and a Javaist (!?) have you checked out Torquebox, it brings the entire JBoss Application Stack (Background processing, Scheduling, Message Queues etc) to Ruby. Maybe we should take this discussion off the issue tracker, I'll mail you :)
In the .vim/vimrc file the window height settings cause the :Gstat preview window to open painfully narrow.
I am experimenting with various winheight settings to see if I can come up with a solution.