乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      解決vim選中文字不能復(fù)制的問題

       XeonGate 2021-11-19

      https://blog.csdn.net/shiming_liu/article/details/104090252

      概述

      最近發(fā)現(xiàn)在iterm2中打開vim,用鼠標(biāo)選中文字,并用command + c復(fù)制選中的文字,但粘貼出來是空的。查了一圈終于在iterm2的官方gitlab issue庫里發(fā)現(xiàn)了解決辦法。將Enable mouse reporting這個(gè)設(shè)置去掉即可。

      版本信息

      操作系統(tǒng)
      Mac os 10.15.2

      iterm2
      iterm2 3.3.6
      iterm2 3.3.7

      vim
      Vi IMproved 8.1 (2018 May 18, compiled Dec 26 2018 02:33:06)

      重現(xiàn)步驟

      1. iterm2中使用cat命令打印文件,然后用鼠標(biāo)選中command + c可以正常復(fù)制。
      2. 但是用vim打開文件,選中文字用command + c復(fù)制,卻不能復(fù)制。
      3. 并且當(dāng)鼠標(biāo)點(diǎn)擊vim中的文字后,vim會(huì)自動(dòng)變?yōu)?code>visual模式。

      解決方案

      iterm2 > Preferences > Profiles > Terminal > Enable mouse reporting 去掉勾選

      mouse reporting

      mouse reporting的作用是在vim編輯時(shí)識(shí)別鼠標(biāo),可以支持鼠標(biāo)滾輪查看文件內(nèi)容(需要在.vimrc中加入設(shè)置支持鼠標(biāo)有效:set mouse=a,用戶在命令行模式輸入:set mouse=v禁用鼠標(biāo))。關(guān)閉了mouse reporting后就不支持鼠標(biāo)滾輪了。

      那要使用鼠標(biāo)滾輪怎么辦?

      可在iterm2 > preferences > advance > 搜索mouse > scroll whell down 那里寫\j > scroll whell up那里寫\k,作用就是發(fā)送j/k鍵到vim實(shí)現(xiàn)滾動(dòng)效果。

      更多信息

      Mac自帶的terminal也會(huì)有這個(gè)問題,在View > Allow Mouse Reporting 去掉勾選即可

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多