Tuesday, May 17, 2011

Re: BufReadPost getfsize and scp

On 17 Mai, 22:50, Charles Campbell <Charles.E.Campb...@nasa.gov>
wrote:
> Please try v5h of LargeFile.vim (available at  http://mysite.verizon.net/astronaut/vim/index.html#LARGEFILE).

I tried it and so far it does not do the job.

In this autocommand:
au BufReadPost *
\ if &ch < 2 && line2byte(line("$")) >= g:LargeFile*1024*1024
\| if exists("b:LargeFile_mode") && b:LargeFile_mode == 0|call
LargeFile(1,expand(""))|endif
\| echomsg "***note*** handling a large file"
\| endif

The if exists("b:LargeFile_mode") does not work for me. If I cut the
whole second if it does.
But it does not work even then if I open a file using tabedit scp://...,
because &ch seems be 2.

David

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: