1
的對齊插件是所有好的和花花公子,但與仿製藥的仿製藥,從而打交道時,我遇到的問題是:如何在涉及java泛型時使Align.vim adec正常工作?
HashMap<String, Object> session = new HashMap();
ArrayList<String> names = new ArrayList();
String banana = "Yo banana boy";
int count = 0;
後\ ADEC就變成:
HashMap<String, Object> session = new HashMap();
ArrayList<String> names = new ArrayList();
String banana = "Yo banana boy";
int count = 0;
但我其實期望:
HashMap<String, Object> session = new HashMap();
ArrayList<String> names = new ArrayList();
String banana = "Yo banana boy";
int count = 0;
甚至更好:
HashMap <String, Object> session = new HashMap();
ArrayList <String> names = new ArrayList();
String banana = "Yo banana boy";
int count = 0;
我該如何使Align.vim的行爲如上所述?
說實話,我認爲第一個是最可讀性的:) – bwawok 2010-06-27 16:58:30
這真的是一個偏好問題。我喜歡每列對齊的東西,以便我可以選擇與視覺塊相關的列並做一些事情;) – avendael 2010-07-05 17:38:37