this post was submitted on 23 May 2024
1 points (100.0% liked)

Helix Editor

157 readers
7 users here now

About

Post-modern community focused on post-modern editor.

Rules

Instance rules apply here.

founded 1 year ago
MODERATORS
 

To open a file relative to the current one in Helix, you can to the do the following with 24.3:

:o <C-r>%<C-w>

Here, the Control-R allows you to select a register and the special register "%" contains the current file path and inserts into the command line, while the final Control-w chops off the last part of the file name leaving with you current directory.

This is like :o %:h from Vim/Neovim

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here