0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Vim — コマンド入力モードで移動するショートカット (普通のショートカットが効かない)

Last updated at Posted at 2018-08-22

結論から書く

  • CTRL-B (行頭に移動)
  • CTRL-E (行末に移動)

を覚えておくだけで相当便利になりそう。

ショートカット一覧


CTRL-B or <Home>
        cursor to beginning of command-line
CTRL-E or <End> 
        cursor to end of command-line
CTRL-H              
<BS>        Delete the character in front of the cursor (see |:fixdel| if
        your <BS> key does not do what you want).
<Del>       Delete the character under the cursor (at end of line:
        character before the cursor).
CTRL-W      Delete the |word| before the cursor.  This depends on the
        'iskeyword' option.
CTRL-U      Remove all characters between the cursor position and
        the beginning of the line.  

コマンド入力モードとは

: / とかで出てくるあいつ。

image.png

正式には『コマンドラインモード」というらしい。(今回はじめて知った)

Command-line mode is used to enter Ex commands (":"), search patterns
("/" and "?"), and filter commands ("!").

Vim documentation: cmdline

悩み

普通のショートカットがいきなり効かなくなる。

Ctrl+a^$ も使えないし、なんなの。

と思いつつ Vim 使用頻度が低いので放置していた。

Versions

  • VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 7 2018 21:57:52)
  • Mac OS High Sierra

Links

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?