4 ms·
OP here. Thanks for the tips. I've used vim-sneak for quite a while (it's even built into Visual Studio Code's Vim plugin), but it just didn't work with me. I'm
by omn1 8y ago
OP here. Thanks for the tips.
I've used vim-sneak for quite a while (it's even built into Visual Studio Code's Vim plugin), but it just didn't work with me. I'm more of an easymotion (https://github.com/easymotion/vim-easymotion https://github.com/easymotion/vim-easymotion) type of guy.
But even easymotion vanished from my workflow, because `/` works almost equally well for me and easymotion is not available on every system I use.
I guess what I'm trying to say is that I became more and more conservative about what external dependencies to rely on, because as soon as they become part of my workflow, I can't easily go back because they become part of muscle memory.
For vim-move I use `V` + `j,k` for the selection followed by `d` to delete and `p` for paste. Works quite well for me.
The problem that I have with visual selections is, that I often want to "grow" a selection from inside of my current position.
Say my cursor is inside parentheses, I'd like to hit a key repeatedly to select an ever growing region of text: first the entire content inside the parentheses, then including the parenthesis, then the entire line, then the entire function and so on. Is there a plugin for that?
Thanks for your article on buffers. Looks like a great workflow. What I'd like to have on top of that is a way to open a buffer based on the contents of a file. Say I have a file somewhere that contains a specific function, `myFunction()`. I'd love to just start typing `myFu` and vim would suggest the correct file to open. Bonus points for handling typos, e.g. `ymFu` should also work.
- edanm 8y agoI think vim-expand-region (https://github.com/terryma/vim-expand-region https://github.com/terryma/vim-expand-region) is what you're looking for. It allows you to repeatedly 'v' to select ever larger parts of text.
- omn1 8y agoWell that's exactly what I was looking for. Thank you!
- darthlucio 8y agoFor content-based buffer opening, I use fzf's Tags command - it fuzzy searches ctags and open the file containing the definition.