Created
January 5, 2012 09:24
-
-
Save yoshio-kinoshita/1564402 to your computer and use it in GitHub Desktop.
fakeclip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cui vimでクリップボードを使う。 | |
cUI vimの場合、+clipboardでコンパイルされないためクリップボード機能が使えないようです。 | |
そんな時、fakeclipプラグインを使えば "*Y "*pなどでクリップボードが使えるようになり、他のアプリケーションと連携ができます。 | |
いちいちマウスを触らなく良いので実にありがたい。 | |
fakeclip => http://www.vim.org/scripts/script.php?script_id=2098 | |
各種コマンドについてはvim-users.jpが参考になります。 | |
http://vim-users.jp/2010/02/hack126/ | |
で、コマンドのポイントがあるようです。 | |
"*Y | |
でヤンクできますが、Shiftキーを解除するとタイミングによってはヤンクされません。 | |
されるときもあります。タイミングがシビアなのかな? | |
Shift + 2 => " | |
シフト解除 | |
Shift + ; => * | |
Shift + y => Y | |
これでよさそうですが、なぜかヤンクされないことがあります。 | |
なので、俺はシフトキーを押しっぱなしでやることにしました。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment