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

问一个关于VIM的对齐问题.

  •  
  •   happlebao · 2013-02-24 00:07:52 +08:00 · 2896 次点击
    这是一个创建于 4080 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我想把以下这段代码

    public class test1{

    public static void main(String[] args)
    {int a=0,b=0;}}

    自动格式化成以下形式
    public class test {

    public static void main(String[] args) {
    int a = 0, b = 0;
    }
    }

    如果用gg=G的话,根本就不行.有什么办法能像eclipse的ctrl/command+shift+f一样自能的自动格式化方法吗?
    1 条回复    1970-01-01 08:00:00 +08:00
    aisensiy
        1
    aisensiy  
       2013-02-24 00:13:08 +08:00
    java 还是不要在 vim 里面写了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2932 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:36 · PVG 15:36 · LAX 00:36 · JFK 03:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.