" Editing settings "set tabstop=4 shiftwidth=4 expandtab textwidth=90 " Syntax highlighting settings. "let g:java_allow_cpp_keywords=1 "syntax on " Comma (,) prefixes a KEYWORD abbreviation inoremap ,c class inoremap ,i interface inoremap ,I implements inoremap ,m import inoremap ,f final inoremap ,s static inoremap ,y synchronized inoremap ,e extends inoremap ,p public inoremap ,P private inoremap ,o protected inoremap ,f final inoremap ,s static inoremap ,y synchronized inoremap ,a package " Colon (:) prefixes a FLOW abbreviation inoremap :f for inoremap :w while inoremap :s switch inoremap :C case inoremap :b break inoremap :d default inoremap :i if inoremap :r return inoremap :t try inoremap :c catch inoremap :f finally inoremap :T throws inoremap :R throw " CTRL + T (^T) prefixes a TYPE abbreviation inoremap i int inoremap I Integer inoremap l long inoremap L Long inoremap b boolean inoremap B Boolean inoremap c char inoremap C Char inoremap d Double inoremap D Double inoremap v void inoremap V Void inoremap s String inoremap S String inoremap e Exception inoremap E Exception " CTRL + Underscore (_) prefixes a GENERAL abbreviation inoremap m public static void main(String args[]) inoremap o System.out.println(X);FXs inoremap e System.err.println(X);FXs inoremap t true inoremap f false inoremap E e.printStackTrace(); inoremap C inoremap c " Helpful mappings when creating a new object " Type: Object o " Get: Object o = new Object(); " F3 leaves the cursor between the parentheses. inoremap A = new ^yEpA(); inoremap A = new ^yEpA(); " To create a javadoc comment above the current line nnoremap Zc O/****/ " Useful when editing javadoc comments nnoremap ZR :se formatoptions+=ro nnoremap Zr :se formatoptions-=ro