On Sun, 12 Jan 2025, Tim Chase wrote:
> On 2025-01-12 12:45, BPJ wrote: > > The `gf` mapping opens the file name under the cursor in the same window. I > > have a file with one (absolute) file path on each line, and would like to > > be able to open two or more of them in new tabs without closing that file. > > If I do `gf` and then `:tabe #` I "lose my position" in the file with > > paths. So is there a mapping or command which opens the filepath under the > > cursor in a new tab or at least a new window without losing my position in > > the file with the path, or how could one be created (it probably could, > > this being Vim, but I can't figure out how...)? > > While I don't use tabs much and can't speak to them, for windows, you can use > > :help CTRL-W_f ... and for tabpages there is CTRL-W_gf (mentioned just a few lines below the above entry :)) Thanks, Christian -- If you had better tools, you could more effectively demonstrate your total incompetence. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z4QYCRRUGg/cNgxo%40256bit.org.