happlebao
V2EX  ›  Vim

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

  •  
  •   happlebao · Feb 24, 2013 · 3432 views
    This topic created in 4841 days ago, the information mentioned may be changed or developed.
    我想把以下这段代码

    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 replies    1970-01-01 08:00:00 +08:00
    aisensiy
        1
    aisensiy  
       Feb 24, 2013
    java 还是不要在 vim 里面写了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5367 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:05 · PVG 17:05 · LAX 02:05 · JFK 05:05
    ♥ Do have faith in what you're doing.