Open files in the running nvim instance connected to this tmux session.
Command
nvim --server "$NVIM_SOCKET" --remote <files...>
Environment
$NVIM_SOCKET - Path to the nvim socket (set automatically in worktree sessions)
Examples
# Open a single file
nvim --server "$NVIM_SOCKET" --remote src/index.ts
# Open multiple files
nvim --server "$NVIM_SOCKET" --remote src/index.ts src/utils.ts
# Open file at specific line (use +line before filename)
nvim --server "$NVIM_SOCKET" --remote +42 src/index.ts
Troubleshooting
Socket not set: Ensure you're in a worktree session, or manually set NVIM_SOCKET
Connection refused: The nvim instance may have closed; restart nvim with v . --listen $NVIM_SOCKET
File not opening: Verify the file path is correct and accessible
Notes
The socket is set via tmux set-environment at session creation
New panes/windows in the session inherit NVIM_SOCKET
$ARGUMENTS
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: richardgill-nix-nvim3description: Open Files in Nvim4---56# Open Files in Nvim78Open files in the running nvim instance connected to this tmux session.910## Command1112```bash13nvim --server "$NVIM_SOCKET" --remote <files...>14```1516## Environment1718- `$NVIM_SOCKET` - Path to the nvim socket (set automatically in worktree sessions)1920## Examples2122```bash23# Open a single file24nvim --server "$NVIM_SOCKET" --remote src/index.ts2526# Open multiple files27nvim --server "$NVIM_SOCKET" --remote src/index.ts src/utils.ts2829# Open file at specific line (use +line before filename)30nvim --server "$NVIM_SOCKET" --remote +42 src/index.ts31```3233## Troubleshooting3435- **Socket not set**: Ensure you're in a worktree session, or manually set `NVIM_SOCKET`36- **Connection refused**: The nvim instance may have closed; restart nvim with `v . --listen $NVIM_SOCKET`37- **File not opening**: Verify the file path is correct and accessible3839## Notes4041- The socket is set via `tmux set-environment` at session creation42- New panes/windows in the session inherit `NVIM_SOCKET`4344$ARGUMENTS4546---47> Converted and distributed by [TomeVault](https://tomevault.io/claim/richardgill) — claim your Tome and manage your conversions.48<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/richardgill-nix-nvim in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Open Files in Nvim It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.