V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
bramblex
V2EX  ›  Vim

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

  •  2
     
  •   bramblex · 2015-03-09 17:53:05 +08:00 · 4464 次点击
    这是一个创建于 3337 天前的主题,其中的信息可能已经有所发展或是发生改变。

    bramblex/Vimrc

    介绍等下上

    第 1 条附言  ·  2015-03-09 21:33:37 +08:00
    好了,下班了,可以继续写完~

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

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

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