I don't know if it deals with this situation, but Dr. Chip's LargeFile plugin
disables various things to make editing large files more bearable, and since he
wrote netrw, too, maybe he's got some appropriate magic in place. Worth checking
out, I think. You should easily find it if you Google.
Cheers,
Ben.
Netrw attempts to minimize the number of times that a password may be
needed, so it doesn't attempt to find out what the file size is before
getting the file via scp (or ftp).
LargeFile, like DL's example, uses getfsize() to do its automatic
large-file determination.
However, it does have a "force-it" option: try using :Large!
(instead of :Large).
Regards,
Chip Campbell
I haven't tested it using scp/ftp myself, but I've put some code in it
that should:
* uses getfsize(); if the file is large, s:LargeFile() will do its
usual thing (turning off syntax, etc)
* if getfsize() returned -2, then s:LargeFile() will do its usual thing
* if getfsize() returned -1, as generally happens with ftp://.... and
scp://... , then after the file has loaded, it will check if
line2byte(line("$")) is large, and if so, s:LargeFile() will be called
with force to treat it as a large file.
Regards,
Chip Campbell
Regards,
Chip Campbell
Are you using vim 7.0? You really should update; vim is up to 7.3 now
(with 206 patches available).
Regards,
Chip Campbell
You can compile vim as an unprivileged user and install it in
your home directory. Tony Mechelynck has a nice tutorial on
compiling Vim in general:
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
You'll want to modify that a bit to change the "prefix" for the
installation to be within your home directory. Vim's
documentation has more explanation:
http://vimdoc.sourceforge.net/htmldoc/usr_90.html
See the section on "SELECTING FEATURES" in the above link. The
``--prefix`` option allows you to target your home directory
instead of /usr/local as the expected installation location.
If you get stuck, I'm sure the list will be able to help you get
past any compilation issues.
Michael Henry
Sounds just like what I have at my work. I build and install into my
home directory my own gvim, with gtk and x11 libraries built from
scratch. Here's my build script
https://github.com/infnty/configs/raw/master/bsd/survival-kit.py, you
may find it useful if you speak python.
There's a lot of useful information about building these libraries and
their dependencies on LFS project site -
http://www.linuxfromscratch.org/blfs/view/svn/index.html.