![](https://cdn-ak-scissors.b.st-hatena.com/image/square/8b4eb6e8c025c5535ba9ae50cbcfc67db092f184/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--TUBaVPu8--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3AVim%252520script%2525E3%252581%2525A7%2525E7%25258F%2525BE%2525E5%25259C%2525A8%2525E3%252581%2525AE%2525E9%252581%2525B8%2525E6%25258A%25259E%2525E7%2525AF%252584%2525E5%25259B%2525B2%2525E3%252582%252592%2525E5%25258F%252596%2525E5%2525BE%252597%2525E3%252581%252599%2525E3%252582%25258B%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Akawarimidoll%252Cx_203%252Cy_98%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyLzIzNzlhYzhkODYuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_72%2Fog-base.png)
エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Vim scriptで現在の選択範囲を取得する
function! s:get_current_selection() abort if mode() !~# '^[vV\x16]' " not in visual mode return '... function! s:get_current_selection() abort if mode() !~# '^[vV\x16]' " not in visual mode return '' endif " save current z register let save_reg = getreginfo('z') " get selection through z register noautocmd normal! "zygv let result = @z " restore z register call setreg('z', save_reg) return result endfunction zレジスタ[1]に一度コピーすることで、現在の選択範囲を取得する getreginfoで情報を保存しておき、setregで戻すことで、レジスタの状態を汚さない autocmd T