V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ekousp
V2EX  ›  Linux

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

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


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