Skip to content
0:00 / 0:00

#vim#command-line

Vim Command-Line Mode Tips

Vernon Grant

76 subscribers • 4 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Vernon Grant

Intermediate. Assumes working knowledge.

2.2K views5 years ago1 recommendation

Tools and practiceVim, Emacs and editors

Vernon Grant shares useful keybindings and commands for working efficiently in Vim's command-line mode.

Here's a couple of bindings and commands I use regularly when working with Vim's command-line mode. If you know about other cool bindings or tips, please post them in the comments section. The video covers the following: - Use tab to complete commands. - Up/Down arrows to navigate the history. - C-D to show all possible completion options. - Copying information into the command line. - C-R C-W | The Word under the cursor. - C-R C-F | The Filename under the cursor. - C-R C-P | The Filename under the cursor, expanded with path. - C-R C-A | The WORD under the cursor. - C-R C-L | The line under the cursor. - Using the normal command. - Repeat the last command: @; - View command history using the history command. - Redirect command output to a register or file using the redir command.

Why it's here

1 person recommends this

What people say. Recommended for its practical tips on using Vim's command-line mode and registers.

u/vg_devin r/vim • Recommends

Vim Command-Line Mode Tips