0
0

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

Windows10上のSpacemacsでCtrl+vショートカットキーを効かせる

Posted at
  • Magitで git clone時にURLを貼り付けるとか、実はSpacemacsのミニバッファ上で貼り付けしたい場合が多い
  • Macでは Command + vを使えるが、Windowsではそうはいかない。

そこで、 .spacemacsに以下の設定を加える。

.spacemacs(抜粋)
(defun dotspacemacs/user-config ()

  ;; Ctrl + vをWindowsの貼り付けに合わせる
  (bind-key "C-v" 'nil)
  (bind-key "C-v" 'clipboard-yank)
)

まず既存の Ctrl + vキーバインドを滅ぼし、敵がいない状態を確保したのちに貼り付け機能 clipboard-yankを割り当てる。

ついVimのyankだと思い込んでいて「コピーじゃないんだよなぁ…貼り付けなんだよなぁ…」とかしばらく悩んでいた。ごめんて。

0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?