On 4/20/06, James B. [email protected] wrote:
Phil H. wrote:
[snip]
That said, I am loath to learn
yet another editor unless I have a strong motive. Hoowever, inline
completion of API methods is a compelling argument to change if
necessary. I take it that there is no possiblity of obtaining this
functionality for Ruby/Rails in vim?
There is no funky autocompletion in textmate, afaik, beyond completion
from open files, which vim already does. What you are seing in the
video are textmate snippets and there are at least two attempts to get
similar functionality in vim:
I use XP and I had snippetMaginc working at some point and it’s quite
decent. The snippets were actually converted to yaml form the textmate
repository.
As for editing files remotely, vim is supposed to be able to do it but
I had some problems.
At first, netrw was trying to quote something using single quotes, had
to change that to double quotes.
file, netrw, changed line 545 to:
exe g:netrw_silentxfer.“!”.g:netrw_scp_cmd.useport."
“”“.g:netrw_machine.”:“.escape(b:netrw_fname,’ ?&').”“” ".tmpfile
Then, I was able to open a remote file like this:
:let g:netrw_scp_cmd = “pscp -q” (that’s pscp from putty in my PATH)
:e scp://[username]@[host]/[/path/to/file]
Unfortunately, saving the file back doesn’t work and I gave up after
trying to debug it for a while.
In case anyone wants to try to make this final step work, the error is
produced by line 797 in netrw.vim:
echohl Error | echo “netrw your
“.substitute(tmpfile,‘[^/]+$’,‘’,‘e’).” directory is missing!”
It complains that it can’t find the temp directory but it seems to
ignore the _vimrc setting for it.
This probably has a simple fix. However, I’m quite tired and can’t be
bothered to track this down right now. But please post the solution if
you can make it work.
btw:
:version
VIM - Vi IMproved 7.0aa ALPHA (2006 Mar 3, compiled Mar 4 2006
09:40:47)
MS-Windows 32 bit GUI version with OLE support
Compiled by [email protected]
Regards,
Jim
–
Happy huntin’