Demonstrating Claude Code driving nvim in a separate tmux pane — opening files, creating splits, and using vim plugins.
using tmux send-keys open nvim to the RASP decompilation grader with that line highlighted
Searched codebase for the RASP decompilation grader.
Which grader file did you mean — the thin wrapper (tasks/rasp_decompile/grader/grader.py, 55 lines) or the full autograder implementation (tasks/rasp_decompile/grader/grader_data/autograder/grader.py, 327 lines)?
And which line do you want highlighted? You said "that line" but I don't see a prior reference. Could you clarify?
autograder; function decl
Grepped for ^def in the autograder.
There are 3 function declarations. Which one?
- Line 18:
def find_last_sop() - Line 51:
def grade_rasp_program() - Line 192:
def grade_rasp_submission()
open them all in splits
tmux send-keys "nvim +18 ...grader.py -c 'split +51 %' -c 'split +192 %'" EnterDone. Opened nvim with three horizontal splits, each positioned at a function declaration.
haha almost. this is the same tmux, so you just sent it to yourself. you'll need to open a new pane
tmux split-window -h "nvim +18 ...grader.py -c 'split +51 %' -c 'split +192 %'"Opened a new tmux pane to the right with nvim and three horizontal splits at lines 18, 51, and 192.
cool; ty! now use visual mode to select the docstrings in those panes
Read the file to find docstring line ranges, identified the nvim pane as %1.
The docstrings are at:
find_last_sop: lines 19–23grade_rasp_program: lines 60–77grade_rasp_submission: lines 196–218
However, vim only has one cursor — I can't have visual selections active in all three splits simultaneously.
Would you like me to:
- Select the docstrings one at a time (moving between splits)?
- Use vim marks or some other approach to highlight all three?
- Use folds/highlights to mark all three docstrings visually?
Use F1 to paint them using my vim plugin
tmux send-keys -t %1 Escape '196GV218G' F1 C-w j '60GV77G' F1 C-w j '19GV23G' F1Done. Visually selected and painted (F1) the docstrings in all three splits:
- Top:
grade_rasp_submissiondocstring (lines 196–218) - Middle:
grade_rasp_programdocstring (lines 60–77) - Bottom:
find_last_sopdocstring (lines 19–23)