RE: .vimrc from URL

2007-01-05 Thread Hugo Ahlenius
| I change my .vimrc very often, and I use vim
| in many computers. The result is that my changes
| are not always updated to all computers.

Mauricio,
Maybe you should consider having your .vimrc (and other vim configuration
files, like plugins etc) under source control? I have all my personal
vimfiles directory + .vimrc under subversion, and it works very well. I
don't synchronize these daily with the repository, unless there are some
major changes, but now and then (weekly?).

Cheers,
Hugo


--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net




RE: --remote diff to tab

2006-11-16 Thread Hugo Ahlenius
| | I am trying to set up my subversion client(s) so that I 
| can get any 
| | diffs open in a proper diff mode, in an existing gvim 
| |session, in a new tab... 
| | 
| | Did you try (untested by me) 
| | 
| |--remote-tab +diffsplit %2 %1 
| | 
| |(Will the %2 need any special escaping inside the quotes?  
| |What if %2 has spaces in the file name (ugh)?) 

For the record, thanks to Benji Fisher, who got me on the right track. I was
able to set up a gvimdiff.bat file that gets called with two (possibly
quoted) files as arguments, and then it executes this:

gvim.exe --remote-tab +diffsplit %~2 %~1

Seems to work fine with spaces in the filenames. The tilde in the argument
specification is a Windows NT command extensions thing, that works on WinNT,
Win2k + XP (And I assume Vista) - it un-quotes the file arguments.

Thanks all!

/Hugo




RE: --remote diff to tab

2006-11-05 Thread Hugo Ahlenius
| I am trying to set up my subversion client(s) so that I can get any 
| diffs open in a proper diff mode, in an existing gvim
|session, in a new tab...
|
| Did you try (untested by me)
|
|--remote-tab +diffsplit %2 %1
|
|(Will the %2 need any special escaping inside the quotes?  
|What if %2 has spaces in the file name (ugh)?)

Thanks Benji, that is on the right track. Maybe I have to call a script that
does what I want to do. This works, but as you mentioned, it has a problem
with paths/files that has spaces in them. I try to avoid that, but it is
known to happen now and then...

/Hugo




RE: --remote diff to tab

2006-11-02 Thread Hugo Ahlenius
| I don't know how to do exactly what you ask, but have you seen 
| vcscommand.vim?
| 
| http://www.vim.org/scripts/script.php?script_id=90
| 
| It has a VCSVimDiff command that will use the svn client to get a diff 
| and then show the result as a vimdiff.

Hi Al, I have that, and that is what I would use from within vim - but there
are times when I would like to have things open from external tools, like my
svn browser (or my cvs manager). There are other cases as well.

Thanks anyways, I am sure someone else would have use for that tip.

/H.




--remote diff to tab

2006-11-01 Thread Hugo Ahlenius
Hi,

I am trying to set up my subversion client(s) so that I can get any diffs
open in a proper diff mode, in an existing gvim session, in a new tab...

Any tips for that? Do you I have to construct a more complicated
command-line for that -- I just tried:

--remote-tab -d %1 %2

but that opened each file in a separate tab...

Any tips? This is gvim 7 on win xp, btw

Cheers and thanks!

/Hugo


--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net




completion + case bug?

2006-08-09 Thread Hugo Ahlenius
Hi,

Is this a known bug? It seems like the case insensitivity for completion
gets broken if one does a small change after the first suggestion.

I start up gvim 7.0 on Win XP without any customizations loaded... and then:

Setup-
* :set ignorecase
* I type asdf on the first line
* Then type ASDF on the second line

Problem---
* I type a on the third line, and then press ctrl-n for completion, fine I
get the two suggestions asdf and ASDF, as expected, and it changes the
actual text on the first line to the first suggestion asdf.
* If I now delete the f in asdf on that line by pressing backspace - this
is where the case sensitivity breaks, now the ASDF suggestion disappears,
and I am left with the asdf suggestion in the popup menu.

Cheers,
Hugo


--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net




RE: netrw v103b

2006-08-02 Thread Hugo Ahlenius
Hi Charles,

Thanks for the response, I have just updated vimball + netrw again...

| * URLs with question marks in them, like
| http://www.grida.no/products.cfm?pageID=13
| I just tried it; this appears to work (under linux).  Is there still a 
| problem with windows/cygwin?

This is still a problem under windows/non-cygwin (I haven't tried under
cygwin). I get E480: No match[...]

| * FTP listings from a windows ftp server
| I think the current version addresses this.

I just tried, and it doesn't seem like that. MS Windows IIS/ftp server
return a non-standard directory listing by default (can be set to do a
unix-type dir listing), and netrw is not parsing them properly. This should
be easy to test, one just needs to start up the ftp service on a windows
machine to see this...

| * a http url with a trailing slash starts an ftp session, like 
| http://maps.grida.no/arctic/
| The trailing slash indicates to netrw that its supposed to be handling 
| a directory.  Netrw only supports two methods for browsing 
| directories: ftp and ssh. If the file transfer protocol is either http 
| or ftp, then ftp is used (for browsing).  If the file transfer 
| protocol is anything else, then ssh is used.  Attempts to use wget or 
| curl (two of the programs used to handle http://... ) doesn't yield a 
| listing.
|  Perhaps you want netrw to attach an index.html automatically?

The http prefix should tell that this is a URL that should be retrieved
using the http protocol and nothing else. A URL with a trailing slash is
still a fully valid URL, and doesn't not signify directories or anything
like that on the www. I would really like netrw to just pass any
http-prefixed URLs directly to curl/wget, and definately not attaching
anything to them! :)

Cheers and thanks,
Hugo

--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net 





RE: netrw v103b

2006-08-02 Thread Hugo Ahlenius
| -Original Message-
| From: A.J.Mechelynck [mailto:[EMAIL PROTECTED]
| IIUC, when an http: URL ends in a slash, or when it names a directory 
| even without a slash, the server retrieves the default page (if any) 
| in the directory in question; and it is up to the server to determine 
| what this default page shall be. On user sites of my ISP, the default 
| page is one of index.htm, INDEX.HTM, index.html or INDEX.HTML, 
| whichever is present, or if none is, a server page saying The page 
| you are trying to access is not present on this server with the ISP 
| logo and blue-and-white color scheme; but I've seen other sites where 
| the default page is named index.php, default.html, ... You never get a 
| directory listing unless the default page itself includes a directory 
| listing (e.g., at http://ftp.vim.org/pub/vim/patches/7.0/ you get the 
| contents of the README file _plus_ a directory listing in HTML).

Yep. It is all up to the server, the http protocol doesn't really recognize
concepts such as directories or files, it is URLs. A trailing slash could
return a 30x redirect to a file (such as index|default.xxx) or return a html
web-page. That page, might look like a directory listing, as that
ftp.vim.org example - but the client or the protocol doesn't recognize it as
anything other than a normal http request...

/Hugo




RE: netrw v103b

2006-08-01 Thread Hugo Ahlenius
| Do you still have the distribution copy of netrw v98 installed to 
| $vimruntime?

Yes I had -- your change did it!

Thanks,
Hugo




console vim on win - double CR's

2006-05-03 Thread Hugo Ahlenius
Hi,

I have vim 6.4 (non cygwin) installed on a couple of Win2k3 servers, running
the built in MS telnet server.

When I connect using the built-in WinXP/Win2k telnet client I am able to get
color in vim console sessions without any problems, and everything seems to
be working very well.

Except for one (minor) annoyance -- every time I press enter in insert mode
I get two line-fees (as if it was pressed twice). This also happens when I
start up vim without my _vimrc customizations. It does not happen, though,
if I open a remote desktop console to the server and run vim in that
session.

I'd love to compare and test if this appears in putty (to identy if it is
the telnet client that is the problem), but I can't get vim to run through a
putty session... :(

Any tips?


--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net




RE: omni + case

2006-04-29 Thread Hugo Ahlenius
| -- but is there any (easy) way to make the preview list all the 
| alternative capitalizations of a specific keyword? I would like 
| FunctionName, functionName and functionname etc to
|show up in the menu...

|:set ignorecase
|should do it.

Should it? I had it already set, and it doesn't do what I need. I tried with
ignorecase off, and that may be more like what I want (but still not
really...).

I would like to start tying 'func' and then pressing the omni key and it
would list FunctionName, functionName and functionname.

:)

/Hugo




getlatestvimscripts

2006-04-29 Thread Hugo Ahlenius
Hi,

I just tried the new GLVS script in Vim 7.0f, I am getting an error:
SNR27_GetLatestVimScripts: Line 125: E486: Pattern not found: ^-
Everything was already current

Am I doing something wrong... ?

(this is on WinXP)

/Hugo


--
Hugo Ahlenius
fraxinus (@) oxel.net
http://www.oxel.net

 




omni + case

2006-04-28 Thread Hugo Ahlenius
Hi,

I 6.x series vim, I had the completion to cycle through all the available
keywords in the existing buffer, and it was then case insensitive.

Now I am on gvim 7.0f (on WinXP) and omni-completion looks very cool -- but
is there any (easy) way to make the preview list all the alternative
capitalizations of a specific keyword? I would like FunctionName,
functionName and functionname etc to show up in the menu...

Cheers guys,
Hugo


--
Hugo Ahlenius
fraxinus (at) oxel.net
http://www.oxel.net