home ~ socials ~ projects ~ rss

Toggle Back And Forth Between Two Files In Neovim

March 2023

Jumping back and forth between two files during a coding session is a frequent occurrance for me. I just started using Telescope which provides quick access to the recently closed "old files" list. It's quick, but still takes a couple key strokes. The faster way it to use:

<C-6>

That's the Ctrl key along with 6. It works great to toggle between two files.

On some setps you'll need add shift into the keypress to do > instead.

end of line
Share link:
https://www.alanwsmith.com/en/2n/cn/dc/sb/?toggle-back-and-forth-between-two-files-in-neovim