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

How to properly fold the Vim/Neovim configuration (如何折叠 Vim 或 Nvim 的配置文件)

  •  
  •   jdhao · 2019-08-17 10:14:10 +08:00 · 3165 次点击
    这是一个创建于 1705 天前的主题,其中的信息可能已经有所发展或是发生改变。

    I have written a post on how to properly fold the Vim or Neovim configuration files. Folding is especially useful when your configuration goes too long (1000+ lines).

    Click here to read the post. Hope you enjoy it. 🐶️

    9 条回复    2019-08-17 15:45:25 +08:00
    BreezeInWind
        1
    BreezeInWind  
       2019-08-17 10:27:10 +08:00 via Android
    wo kan bu dong
    jdhao
        2
    jdhao  
    OP
       2019-08-17 10:30:29 +08:00
    @hedamao9999 ni ying gai ti gao zi ji de zi shi shui ping le 🐶️
    20015jjw
        3
    20015jjw  
       2019-08-17 12:55:35 +08:00 via Android
    看了一眼俩语法错误不想看了打扰了
    tamlok
        4
    tamlok  
       2019-08-17 13:30:23 +08:00 via Android
    当配置文件太长的时候,应该是拆分文件,而不是折叠啊!
    114514
        5
    114514  
       2019-08-17 14:03:52 +08:00 via Android
    hen good,wo really kanbudong, but i just go to shoucang😂
    leafre
        6
    leafre  
       2019-08-17 14:09:22 +08:00
    u r white eat!
    no three no four!
    jdhao
        7
    jdhao  
    OP
       2019-08-17 14:36:43 +08:00
    @tamlok 拆分文件太麻烦了,我像尽可能维护一个文件
    jdhao
        8
    jdhao  
    OP
       2019-08-17 14:37:56 +08:00
    @leafre
    tamlok
        9
    tamlok  
       2019-08-17 15:45:25 +08:00 via Android
    @jdhao 看你配置的体量吧,写个 acm 就单个文件没问题,写个大工程肯定讲究模块化
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2814 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:20 · PVG 08:20 · LAX 17:20 · JFK 20:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.