ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [20170617]vim在windows下guioption设置

[20170617]vim在windows下guioption设置

原创 Linux操作系统 作者:lfree 时间:2017-06-17 19:01:58 0 删除 编辑
[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博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2140892/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7970745