Jumping to source while editing scala with vim -
i edit scala code vim because of developmental state of scala plugin eclipse. find suitable of purposes, in screen
instance continuous compilation (mvn scala:cc
or ~compile
in sbt) in bottom pane.
the feature miss being able jump source easily. know of way in vim? should theoretically possible since dependencies avaiable using maven/sbt.
this question related https://stackoverflow.com/questions/3626203/text-editor-for-scala, question closed, , answer use emacs, consider if viper makes sense.
edit: wrote blog post explores using vim full-featured editor scala.
use ctags. vim has build-in support it(since ctags made vim), need download program. ctags doesn't come scala support, can configure support it(not scala user myself, haven't tested it).
you use create tags file source files, , can use definition of function/class/everything in source code. ctrl+]
jump tag under cursor. ctrl+w
, ]
open tag @ new window. :tag xxx
jump definition of xxx. , personal favorite - g
, ]
show list of available tags name, , lets jump 1 choose - or use list review declarations(perfect if forgot arguments function accepts).
Comments
Post a Comment