1 of 45

Hey, Java!

Vim is coming.

Vim plug-ins all for Java editing.

2 of 45

Who am I?

  • kamichidu (github/twitter/lingr)
  • Job
    • Java programmer (ERP)
  • Hobby
    • perl
    • lua
    • c++
    • vim script
    • go
    • lots more

3 of 45

Who am I?

VIM BEGINNER

4 of 45

5 of 45

…?

6 of 45

Anybody DOUBT me?

7 of 45

Anybody DOUBT me?

  • That’s right

8 of 45

I’m also Vim plug-in developer

9 of 45

I’m also Vim plug-in developer

  • unite-javaimport
  • javaclasspath
  • vdbc
  • edit-properties
  • vital modules
    • Text.Table

10 of 45

… Now Loading

11 of 45

Agenda

  • What plug-ins do you need?
  • Introducing some plug-ins
    • Completion
    • Snippet
    • Importing
    • Syntax checking
    • Misc
  • What’s the problem you might encounter
  • Conclusion

12 of 45

Agenda

  • What plug-ins do you need?
  • Introducing some plug-ins
    • Completion
    • Snippet
    • Importing
    • Syntax checking
    • Misc
  • What’s the problem you might encounter
  • Conclusion

13 of 45

What plug-ins do you need?

14 of 45

What plug-ins do you need?

  • Eclipse, the king

15 of 45

What plug-ins do you need?

  • Eclipse, the king
    • Feature rich

16 of 45

What plug-ins do you need?

  • Eclipse, the king
    • Feature rich
    • A ton of memory usage

17 of 45

What plug-ins do you need?

  • Eclipse, the king
    • Feature rich
    • A ton of memory usage
    • Useful

18 of 45

What plug-ins do you need?

  • Eclipse, the king
    • Feature rich
    • A ton of memory usage
    • Useful
  • Can I find other editors?

19 of 45

… Now Loading

20 of 45

Agenda

  • What plug-ins do you need?
  • Introducing some plug-ins
    • Completion
    • Snippet
    • Importing
    • Syntax checking
    • Misc
  • What’s the problem you might encounter
  • Conclusion

21 of 45

Introducing some plug-ins

22 of 45

Introducing some plug-ins

  • Completion

23 of 45

Introducing some plug-ins

  • Completion
    • javacomplete
    • Tag completion (built-in)
    • neocomplete

24 of 45

Introducing some plug-ins

  • Snippet

25 of 45

Introducing some plug-ins

  • Snippet
    • neosnippet.vim
    • snipmate.vim
    • ultisnips

26 of 45

Introducing some plug-ins

  • Importing

27 of 45

Introducing some plug-ins

  • Importing
    • unite-javaimport
    • javacomplete

28 of 45

Introducing some plug-ins

  • Syntax checking

29 of 45

Introducing some plug-ins

  • Syntax checking
    • watchdogs
    • syntastic

watchdogsを使ってjavaのシンタックスチェックを非同期に行う

http://kamichidu.github.io/tips/2014/10/25/configure-watchdogs-for-javac/

30 of 45

Introducing some plug-ins

  • Misc

31 of 45

Introducing some plug-ins

  • Misc
    • edit-properties
    • javaclasspath
    • classpath
    • tcomment
    • eclim

32 of 45

Agenda

  • What plug-ins do you need?
  • Introducing some plug-ins
    • Completion
    • Snippet
    • Importing
    • Syntax checking
    • Misc
  • What’s the problem you might encounter
  • Finish

33 of 45

What’s the problem ...

34 of 45

What’s the problem ...

  • The amount of resources

35 of 45

What’s the problem ...

  • The amount of resources
    • rt.jar has 19147 class files

(oracle jdk 7)

  • src.zip has 7448 source files

(oracle jdk 7)

36 of 45

What’s the problem ...

  • Java Virtual Machine

37 of 45

What’s the problem ...

  • Java Virtual Machine
    • Launching is really slow
    • At first time, it requires 2-3 seconds or more

38 of 45

What’s the problem ...

  • Maven

39 of 45

What’s the problem ...

  • Maven
    • Slow speed

40 of 45

… Now Loading

41 of 45

Agenda

  • What plug-ins do you need?
  • Introducing some plug-ins
    • Completion
    • Snippet
    • Importing
    • Syntax checking
    • Misc
  • What’s the problem you might encounter
  • Conclusion

42 of 45

Conclusion

43 of 45

Conclusion

  • Introduced plug-ins
  • Talk about problems
  • We can use Vim as Java Editor,

but eclipse is still a most useful tool

44 of 45

Conclusion

  • Introduced plug-ins
  • Talk about problems
  • We can use Vim as Java Editor,

but eclipse is still a most useful tool

  • USE ECLIPSE, if you just want to write Java

45 of 45

Thank you for your attention.