Ask HN: How to improve vim productivity and workflow?
I only need my .bashrc and .vimrc with me on a UNIX machine to get around. It makes me feel all warm and fuzzy inside because it's so minimal and portable. I love it.
But I have not mastered vim yet. In particular, going back and forth between files and directories is really cumbersome in larger, more complex projects. When time is critical in a project I just install Atom or something with a sidebar (it makes a huge difference to me) and move on with my life.
I want to improve. Specifically, how can I productively edit multiple files simultaneously in a larger codebase? Should I use tmux panes and windows? Or vim split views? Should I use a sidebar plugin for vim? Any other workflow tips?
Should I even use vim at all? Why bother?
6 comments
[ 3.2 ms ] story [ 20.6 ms ] thread[1] https://github.com/roman/golden-ratio
[2] https://github.com/scrooloose/nerdtree
[3] https://github.com/yefim/dotfiles/blob/master/.vimrc
If you work interactively with data, you might also enjoy Slimux (https://github.com/epeli/slimux), a vim plugin that allows you to send lines from vim to an arbitrary tmux pane. I usually have IPython running in such a pane so I never have to copy+paste. I've got an ebook I've been kicking around describing this workflow in more detail here (http://dvbuntu.github.io/compute/posts/2050/01/01/workflow.h...).
https://stackoverflow.com/questions/26708822/why-do-vim-expe...
As far as plugins, if one sounds interesting or useful to you, install it. If it doesn't work out, then you can delete it later. Over the years I have tried all of the popular plugins, but I have managed to whittle it down to 4 plus a couple of language specific plugins
Here are a couple of handy youtube videos Vim Navigation Commands https://www.youtube.com/watch?v=Qem8cpbJeYc How to Do 90% of What Plugins Do (With Just Vim) https://www.youtube.com/watch?v=XA2WjJbmmoM&t=3477s