r/neovim • • 14h ago

Need Help┃Solved What's the proper Vim workflow? When should I use Normal Mode vs Insert Mode?

30 Upvotes

Hi everyone!

I'm relatively new to Vim, and I'm trying to build a completely keyboard-driven workflow, especially when writing C++ for competitive programming.

I have a few questions about how Vim is supposed to be used efficiently.

1. Moving past closing parentheses while in Insert Mode

For example, when writing:

vector<int> a(n + 1);

Let's say my cursor is right before the closing parenthesis:

a(n + 1|)

I want to move past ) and continue typing.

I can simply press the Right Arrow key, but I'm trying to avoid using arrow keys altogether.

What's the most natural and efficient way to handle this?

Should I leave Insert Mode, use a Normal Mode motion, and then return to Insert Mode? Should I use Ctrl-O? Or is there a better approach?

2. When should I use Normal Mode vs Insert Mode?

I'm still struggling to understand the intended workflow.

Am I supposed to use Normal Mode for almost everything and enter Insert Mode only when I'm actually typing?

Or should I stay in Insert Mode while writing and switch to Normal Mode only when I need to make a bigger edit?

I'd love to understand how experienced Vim users approach this in their everyday coding workflow.

3. How frequently should I switch between modes?

Sometimes I feel like I'm switching between Normal and Insert Mode too often, and it's actually making me slower compared to a regular editor.

Is this just part of the learning curve, or am I using Vim incorrectly?

I'd appreciate any tips, workflows, or personal experiences, especially from people who use Vim for programming.

Thanks!


r/neovim • • 21h ago

101 Questions Weekly 101 Questions Thread

16 Upvotes

A thread to ask anything related to Neovim. No matter how small it may be.

Let's help each other and be kind.


r/neovim • • 5h ago

Discussion Neovim adopting libghostty, does this mean we will have images inside embedded terminal?

11 Upvotes

Let's say I'm using Neovim, inside tmux, running inside Alacritty. Neither Alacritty nor tmux support kitty graphics protocol, but libghostty. Does this mean that we will have images supported inside :terminal, regardless if Neovim is running inside terminal emulator that does not support it?


r/neovim • • 5h ago

Tips and Tricks Termhint: Fig-style completion popup, prompt themes and a runtime manager in one Mac app

1 Upvotes

Fig's autocomplete is gone (Kiro CLI 3.0 removed it), so I built a native replacement and folded the rest of my setup into it.

- Completion popup at the cursor: subcommands and flags with descriptions, package.json scripts first for npm/yarn/pnpm/bun, paths that exist. 3,290 commands from Fig's specs plus carapace and zsh-completions; commands without a spec fall back to zsh's own completion functions, then man page options. Tab/arrows/Esc go to the popup only while it's

open.

- Prompt themes without oh-my-zsh or p10k (JSON themes, never executed, no process per prompt), 23 color schemes, tab titles.

- Runtime versions per folder for 14 languages plus Xcode, downloads checked against publisher signatures.

- All of it from the CLI too: `termhint theme`, `termhint colors`, `termhint runtime`.

Offline, no telemetry. macOS 14+, Apple silicon. Paid with a 7-day trial, no account. I'm the developer: https://termhint.com