Can vi help me with typing my paths?
I would like some help from vi to type long winding system paths, the same way my shells do it for me. I am certain there is a way to it...
linke if I 开发者_如何学JAVAam in a config file and need to type a path
Eggs = /Us|
(the pipe being the cursor), what would I have to do to expand this to /Users/myname/somedir/...
There's a vim script called SuperTab that I think will do what you want.
Quoting the docs (emphasis mine):
Currently super tab can recognize method calls or attribute references via '.', '::' or '->', and file path references containing '/'.
It seems this can be done without a script, Ctrl-X
Ctrl-F
does it nicely.
精彩评论