V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
happlebao
V2EX  ›  Vim

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

  •  
  •   happlebao · Feb 24, 2013 · 3401 views
    This topic created in 4817 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   ·   2491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:12 · PVG 16:12 · LAX 01:12 · JFK 04:12
    ♥ Do have faith in what you're doing.