[20170617]vim在windows下guioption設定

lfree發表於2017-06-17
[20170617]vim在windows下guioption設定.txt

--//如果你看mswin.vim設定:
" On Unix we have two selections, autoselect can be used.
if !has("unix")
  set guioptions-=a
endif

--//預設設定是取消a設定,檢視幫助:

 'a'    Autoselect:  If present, then whenever VISUAL mode is started,
        or the Visual area extended, Vim tries to become the owner of
        the windowing system's global selection.  This means that the
        Visually highlighted text is available for pasting into other
        applications as well as into Vim itself.  When the Visual mode
        ends, possibly due to an operation on the text, or when an
        application wants to paste the selection, the highlighted text
        is automatically yanked into the "* selection register.
        Thus the selection is still available for pasting into other
        applications after the VISUAL mode has ended.
            If not present, then Vim won't become the owner of the
        windowing system's global selection unless explicitly told to
        by a yank or delete operation for the "* register.
        The same applies to the modeless selection.

--//實際上修改:
" On Unix we have two selections, autoselect can be used.
if !has("unix")
  set guioptions+=a
endif

--//可以減少一些鍵盤操作,但是要冒一些操作風險,就是copy  & paste帶來的維護問題.
--//在windows 下 V 或者 v, ctrl_v(windows下使用ctrl+q代替,主要是windows下這個定義為paste了).
--//只要選中,就進入剪下板,再按ctrl+v就paste出來了.

--//滑鼠選中也是一樣.

--//主要我自己已經習慣這樣操作,很難在改正過來.^_^ .在工作中還是小心再小心!!



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2140892/,如需轉載,請註明出處,否則將追究法律責任。

相關文章