Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
ekousp
V2EX  ›  Linux

求教:同一用户启动 vi 时指定不同的配置文件和扩展目录?

  •  
  •   ekousp · Feb 25, 2014 · 4082 views
    This topic created in 4634 days ago, the information mentioned may be changed or developed.
    在使用公司开发机做开发时会使用同样的账户,不同的人使用vi有不同的习惯。
    怎样在启动vi时指定属于自己的配置文件和扩展目录?
    4 replies  •  2015-09-01 15:02:31 +08:00
    yangg
    yangg
    Feb 25, 2014
    1
    vim -v <vimrc>


    or
    set extrc
    To Eenables the reading of .vimrc, .exrc and .gvimrc in the current directory
    yangg
    yangg
    Feb 25, 2014
    2
    哦,那就 -v 了,然后可以 let &rtp = substitute(&rtp, '.vim', '.your_plugin_folder', 'g')
    duhastmich
    duhastmich
    Feb 25, 2014
    3
    为什么用同样的账户
    happyhacker
    happyhacker
    Sep 1, 2015
    4
    vim -u myvimrc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4397 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:56 · PVG 11:56 · LAX 19:56 · JFK 22:56
    ♥ Do have faith in what you're doing.