6
6

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 5 years have passed since last update.

Vimのカーソルキーを封じる

Posted at

ビルド待ちの間のネタ投稿だよーん

カーソル移動にはh,j,k,lを使った方が良いんだろうけど、カーソルキーを使ってしまう...

そんな人は、~/.vimrcに以下の記述をすればVim強制ギプスの下でvimが起動するぞ!

.vimrc
nmap <LEFT>  :q!<CR>
nmap <RIGHT> :q!<CR>
nmap <UP>    :q!<CR>
nmap <DOWN>  :q!<CR>

imap <LEFT>  <ESC>:q!<CR>
imap <RIGHT> <ESC>:q!<CR>
imap <UP>    <ESC>:q!<CR>
imap <DOWN>  <ESC>:q!<CR>

意味は【カーソルキーを使ったら保存せず強制終了】だ!!

同僚が面白そうだからって設定してたけど、時々席から絶叫が聞こえてきて楽しかったw

6
6
1

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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?