vim

For discussion on all things (neo)vim.
dominicm 2020-08-25T14:05:04.005500Z

https://github.com/pechorin/any-jump.vim dumb jump for vim (supports clj)

🤯 3
👌 2
orestis 2020-08-25T14:48:58.008600Z

I like clap for the visual interface to jump between files, but showing buffers is very slow, and I would like a better grep feel with better use of the quick fix window ... what other tools are out there for navigating projects, quickly visiting an open buffer and good grep?

samoleary 2020-08-25T14:57:27.009800Z

I use https://github.com/junegunn/fzf.vim with https://github.com/BurntSushi/ripgrep and it's pretty quick. I've got tags set up with it too but I don't use that half has much

dominicm 2020-08-25T16:07:16.011Z

Vim-grepper is the best way to start with grep and qf

dominicm 2020-08-25T16:07:27.011400Z

Though :grep is not that bad either.

dominicm 2020-08-25T16:07:51.011900Z

I guess grepper is like :grep which is why it's good.

orestis 2020-08-25T16:19:25.014600Z

What about buffers navigation? I feel like I’m missing something fundamental. I usually have 3-4 windows open, and 5-8 buffers that I cycle through. (The working set differs depending on the task). Bnext/bprev do wildly unintuitive things for me.

dave 2020-08-25T16:21:41.015400Z

i use fzf.vim's :Files command, bound to Ctrl-F

dave 2020-08-25T16:22:03.016Z

i find it way easier to type a fragment of the name of the file i'm thinking of, vs. trying to recall if i already have it open and hunting through a list of buffers i have open

âž• 1
Jan K 2020-08-25T16:22:14.016300Z

with fzf.vim you can search open buffers (:Buffers command), another good plugin is https://github.com/ctrlpvim/ctrlp.vim

Jan K 2020-08-25T16:26:29.017100Z

I'm also using this simple buffer lister that has no search https://github.com/roblillack/vim-bufferlist

Jan K 2020-08-25T16:36:10.018300Z

This one is good for just browsing files https://github.com/preservim/nerdtree

orestis 2020-08-25T16:41:27.019600Z

VimR has a nice graphical file explorer built-in, which is nice. I don’t use file browsers that much though tbh.

orestis 2020-08-25T16:41:34.020Z

Thanks for all the suggestions :)

dave 2020-08-25T18:03:08.021Z

on the subject of simple buffer listers, i use this one which is good: https://github.com/jeetsukumaran/vim-buffergator i mostly use fzf.vim in the way i described above, but it is occasionally useful to glance at the list of files i have open, e.g. if i don't remember the name of some random log file i was just looking at