bramblex
V2EX  ›  Vim

[新人] [Vim 控] 给 VIM 写了一套奇葩的配置

  •  2
     
  •   bramblex · Mar 9, 2015 · 5327 views
    This topic created in 4086 days ago, the information mentioned may be changed or developed.

    bramblex/Vimrc

    介绍等下上

    Supplement 1  ·  Mar 9, 2015
    好了,下班了,可以继续写完~

    首先,我这是一个份奇葩的Vim配置。为什么说是奇葩呢?因为我注重的并不是把一个Vim配置成怎么样好看,怎么好用,而是将自己学到的一些设计和思想也写进这个Vim配置文件里面了。所以我连图都懒的贴了,直接上干货。

    这套Vim配置的核心呢,就是require.vimrc这个文件。require.vimrc里面用vimscript实现了一个模块系统。基本上和nodejs的模块系统一样用,比如:

    ```VimL
    let config = Require('config')
    echo config.Get('base_path') "
    ```
    27 replies    2015-03-11 17:34:17 +08:00
    sunyuantz
        1
    sunyuantz  
       Mar 9, 2015 via Android
    lz下面没有了
    jings
        2
    jings  
       Mar 9, 2015
    荆棘的思念
    dant
        3
    dant  
       Mar 9, 2015 via iPhone
    JJ的思念
    joyeblue
        4
    joyeblue  
       Mar 9, 2015
    LZ下面果然没有了
    Twinkle
        5
    Twinkle  
       Mar 9, 2015
    莫名糟糕了起来
    Dongdong36
        6
    Dongdong36  
       Mar 9, 2015
    欢迎JJ的思念入坑V2EX
    bramblex
        7
    bramblex  
    OP
       Mar 9, 2015
    @sunyuantz 不是下面没有了,TwT。是楼主还在搬砖
    bramblex
        8
    bramblex  
    OP
       Mar 9, 2015
    @jings 卧槽,你们都是谁?
    bramblex
        9
    bramblex  
    OP
       Mar 9, 2015
    @dant TwT,已吓尿。你们是谁啊?
    bramblex
        10
    bramblex  
    OP
       Mar 9, 2015
    @joyeblue 楼主下面依然坚挺
    bramblex
        11
    bramblex  
    OP
       Mar 9, 2015
    @Dongdong36 TwT,我认不出来谁是谁……
    bramblex
        12
    bramblex  
    OP
       Mar 9, 2015
    @Twinkle /w\ 那约吗?
    Dongdong36
        13
    Dongdong36  
       Mar 9, 2015
    是谁不重要,主要是之前水多了,到V2EX换个ID才能快乐的玩耍(洗心革面,重新做人)2333....好了,不能水了...闪人
    jings
        14
    jings  
       Mar 9, 2015
    @dant 是就要掉线的小明?
    jings
        15
    jings  
       Mar 9, 2015
    @Dongdong36 是ispeller?
    bramblex
        16
    bramblex  
    OP
       Mar 9, 2015
    @Dongdong36 在帝都吗?OwO,在帝都的话周末约约约。
    bramblex
        17
    bramblex  
    OP
       Mar 9, 2015
    @jings TwT好吧,反正我是ID盲……默默看着
    wittyfox
        18
    wittyfox  
       Mar 9, 2015
    看标题识楼主
    bramblex
        19
    bramblex  
    OP
       Mar 9, 2015
    @wittyfox 看来这里很多熟人啊 /w\ 最近我折腾这个折腾出来了一些成果呢~
    winkidney
        20
    winkidney  
       Mar 10, 2015
    jj的思念+1,
    @dant @jings 妈蛋你们都是基佬吧的谁谁,赶快交代!
    bramblex
        21
    bramblex  
    OP
       Mar 10, 2015
    @winkidney 都是你们在水。没有一点有意义的回复 TwT,不开心
    jings
        22
    jings  
       Mar 10, 2015
    @winkidney xx的xx
    sunyuantz
        23
    sunyuantz  
       Mar 10, 2015 via Android
    lz新人想问这有神马用?能解决神马问题,能走上人生巅峰迎娶白富美么
    bramblex
        24
    bramblex  
    OP
       Mar 11, 2015
    @sunyuantz 好玩呀~给一个原生没有模块系统的语言实现了模块机制,很牛逼呀~
    winkidney
        25
    winkidney  
       Mar 11, 2015
    @bramblex 吓傻了,果然唧唧的思念是小受
    bramblex
        26
    bramblex  
    OP
       Mar 11, 2015
    jings
        27
    jings  
       Mar 11, 2015
    @winkidney 这是一个水贴 我来终结
    @小受
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1628 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 16:26 · PVG 00:26 · LAX 09:26 · JFK 12:26
    ♥ Do have faith in what you're doing.