Re:My Biggest Vim Productivity Boost
by djacobs on Monday May 20, 2013 @11:50PM
(#5741803)
It's always good to share Vim tips, so thanks for that.
Question, though -- why not use the native <C-i> and <C-o> to navigate between jump points? It will get you to the previous and next buffers but has just enough granularity to be useful for other things, too. (<C-6> is native buffer toggling and ignores jump points, but it's not easy to type.)
Re:My Biggest Vim Productivity Boost
by lake99 on Monday May 20, 2013 @11:57PM
(#5741828)
Quite odd that in the last two polls on editors, it turned out that HN has about half as many emacs users as vim users. And still, we have this disproportionate barrage of vim tips, vim tricks, vim productivity boosts, and what not.
Isn't there some vim mailing list you could subscribe to?
Re:My Biggest Vim Productivity Boost
by siddboots on Tuesday May 21, 2013 @02:04AM
(#5742121)
I've only ever used window splits (<C-w> | _ = etc) and have never even tried to get used to tabs or non-visible buffers. Can anyone tell me whether there would be much benefit to changing my workflow?
Re:My Biggest Vim Productivity Boost
by amiorin on Tuesday May 21, 2013 @04:17AM
(#5742440)
I was like you. I thought that tabs were useless. Now I use tabs. The workflow is to open 3 or 4 tabs, not more. For example, first tab rails app, second tab a gem used by the app, third tab my vimrc (I need to tweak constantly), fourth tab my todo list.
Here you find my comment about it with a screenshot
http://syskall.com/my-biggest-vim-productivity-boost/#commen...
Re:My Biggest Vim Productivity Boost
by walrus on Tuesday May 21, 2013 @12:19AM
(#5741884)
For switching tabs, there's also gt and gT. For buffers, I normally switch with :b or :e, since I often end up with too many buffers for next/previous to be practical.
Question, though -- why not use the native <C-i> and <C-o> to navigate between jump points? It will get you to the previous and next buffers but has just enough granularity to be useful for other things, too. (<C-6> is native buffer toggling and ignores jump points, but it's not easy to type.)
Isn't there some vim mailing list you could subscribe to?
(and then probably go all grumpy when people don't use vim the "right" way)
A: You don't, they tell you.
I think I'll try switching to "one tab per project", but stick with splits for individual files within a project.
This enables relative line numbering, meaning that moving between lines suddenly gets much quicker. For example: I can type 18j and not miss.
not really sure why.. (i have my screen tabbing with F11 and F12).
you can try dwm.vim (https://github.com/spolu/dwm.vim) if you have spare keybindings.
if you are still not convinced and want to use screen, i recommend tmux since you can split both horizontal and vertical.