Re: VIM window restores incorrectly

2006-11-22 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 11/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: VIM 7.0, MS-Windows 32 bit GUI version with OLE support Included patches: 1-162 run gvim a.txt; maximize the VIM window, then minimize it to task bar; run gvim --remote-tab b.txt;

Re: VIM window restores incorrectly

2006-11-22 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 11/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Liu Yubao wrote: VIM 7.0, MS-Windows 32 bit GUI version with OLE support Included patches: 1-162 run gvim a.txt; maximize the VIM window, then minimize it to task bar; run gvim --remote-tab

Re: VIM window restores incorrectly

2006-11-22 Thread Yegappan Lakshmanan
Hi Bram, On 11/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: VIM 7.0, MS-Windows 32 bit GUI version with OLE support Included patches: 1-162 run gvim a.txt; maximize the VIM window, then minimize it to task bar; run gvim --remote-tab b.txt; VIM window is

Re: VIM window restores incorrectly

2006-11-22 Thread Yegappan Lakshmanan
Hi Bram, On 11/22/06, Bram Moolenaar [EMAIL PROTECTED] wrote: VIM 7.0, MS-Windows 32 bit GUI version with OLE support Included patches: 1-162 run gvim a.txt; maximize the VIM window, then minimize it to task bar; run gvim --remote-tab b.txt; VIM window is brought to

sorting columns alphabetically

2006-11-22 Thread Vim Visual
Hi, I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after the surname (3rd column). How can I do that? I know how to sort it after the first one (visual + !sort) thanks! Pau

Re: How to override $HOME on Windows NT/XP?

2006-11-22 Thread Wolfgang Schmidt
Hi, to me it's no clear what you mean by prevent Vim from going to my Home directory. I'm using Vim on windows, too, but he never asked me for a HOME directory. Instead, the _vimrc file is kept in $VIMRUNTIME, which by default on XP is C:\Programme\Vim\vim70. Therefore, all you have to do

Re: sorting columns alphabetically

2006-11-22 Thread Vim Visual
sorry, I got it: sort -k 3 The problem now are midnames, like Mr Bla Blo Ms Ble Blu Dr Bli T. Blu but I have deleted them :) 2006/11/22, Vim Visual [EMAIL PROTECTED]: Hi, I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after

Re: sorting columns alphabetically

2006-11-22 Thread Jürgen Krämer
Hi, Vim Visual wrote: I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after the surname (3rd column). How can I do that? I know how to sort it after the first one (visual + !sort) with VIM 7 you can sort inside VIM:

Re: How to override $HOME on Windows NT/XP?

2006-11-22 Thread A.J.Mechelynck
Wolfgang Schmidt wrote: Hi, to me it's no clear what you mean by prevent Vim from going to my Home directory. I'm using Vim on windows, too, but he never asked me for a HOME directory. Instead, the _vimrc file is kept in $VIMRUNTIME, which by default on XP is C:\Programme\Vim\vim70.

tar all files in buffer preserving path

2006-11-22 Thread Eric Smith
I want to make a tar file that includes the full pathname. When I go :bufdo ! tar -vrf archive_with_full_path.tar % The `%' does not expand the full path so I do not get the path information into the tar file. How could I best achieve what I want? -- Eric Smith

Re: Dangerous keybindings

2006-11-22 Thread A.J.Mechelynck
DervishD wrote: Hi all :)) I'm not exactly new to this list, I was subscribed back in 2002, when I tried to migrate from Joe to Vim. I finally didn't do it for some reasons, and I finally forgot about it. The fact is that I've decided to go Vim once and for all, because Joe is

Re: g/pat/s/pat.*/to/ vs :%s/pat.*/to/

2006-11-22 Thread Tim Chase
In vim docs, there is example like this: g/pat/s/pat.*/to/ As far as I know, it is also possible to do it without g: %s/pat.*/to/ Is there a difference, a reason to prefer the first form, the longer for with 'g' ? I don't think in the example you gave, that there's a significant

Re: Can't change search background color

2006-11-22 Thread Benji Fisher
On Tue, Nov 21, 2006 at 03:25:13AM -0600, Larry Alkoff wrote: I'm using Vim64 in Kubuntu and cannot change the color background when doing a search. The background color is a kind of darkish orange - I _think_ it's numbe 3. I'd like to have LightYellow but nothing I have done so far

Re: Dangerous keybindings

2006-11-22 Thread DervishD
Hi Benji :) * Benji Fisher [EMAIL PROTECTED] dixit: On Wed, Nov 22, 2006 at 02:04:29PM +0100, A.J.Mechelynck wrote: DervishD wrote: [snip] I want to do something like that in my vimrc. delete_all_keys if at all possible map i i yes, I want to go to insert

Re: tar all files in buffer preserving path

2006-11-22 Thread Tom Purl
This seems like a pretty sweet tip. It would be much appreciated if you could post a fleshed-out version of this tip, along with some possible use cases on the vim.org tips page. Thanks! Tom Purl Yeah, thanks it works like this too: bufdo !tar -vrf /path/to/archive.tar %:p How do I avoid

Execute command for current block of code

2006-11-22 Thread Kevin Old
Hello everyone, I have been thinking about implementing this little feature to help clean up my code. Here's the scoop. I'm a Perl programmer and I use a templating module called HTML::Mason which allows perl code within certain tags. Here's an example of the code: % $tmpl-template_top() %

Re: Execute command for current block of code

2006-11-22 Thread A.J.Mechelynck
Kevin Old wrote: Hello everyone, I have been thinking about implementing this little feature to help clean up my code. Here's the scoop. I'm a Perl programmer and I use a templating module called HTML::Mason which allows perl code within certain tags. Here's an example of the code: %

RE: How to override $HOME on Windows NT/XP?

2006-11-22 Thread Gene Kwiecinski
I know this is a bizarre request. I would like to prevent Vim from going to my Home directory. The reason is that my IT department has mapped my home directory to a laggy network drive with a login script. I can't override the Windows environment variables which set up the home directory,

Calendar ?

2006-11-22 Thread Meino Christian Cramer
Hi, where can I find instructions on how to use Calendar.vim and its keybindings ? I visited vim.org's script pages about Calendar.vim but didn't found, what I was searching for. Google also gave me nothing... But may be all this is my fault ?! Regards, mcc

Re: Execute command for current block of code

2006-11-22 Thread Kevin Old
Hi Tony, Actually, I didn't know that highlighting visually and hitting the : will give me the range. That's half the battle for me on this. I've tried putting that into a mapping like this: map vti :',' !perltidy but when I visually select a chunk of code then type vti I get and error

Re: Calendar ?

2006-11-22 Thread Tom Purl
Check out the source, which should be in one of your plugin directories. For me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP computer. The header of the file has a ton of commments, including usage statements nad Additional notes. HTH! Tom Purl Hi, where can I find instructions

Re: Execute command for current block of code

2006-11-22 Thread Christian Ebert
* Kevin Old on Wednesday, November 22, 2006 at 12:57:27 -0500: Actually, I didn't know that highlighting visually and hitting the : will give me the range. That's half the battle for me on this. I've tried putting that into a mapping like this: map vti :',' !perltidy vmap vti

Re: vim encryption

2006-11-22 Thread panshizhu
Noah Spurrier [EMAIL PROTECTED] 写于 2006-11-22 04:14:52: I am not so concerned with strong encryption (although, I'd be sad if the encryption turned out to be trivial). At the moment my main goal is to be able to write VIM compatible encrypted files from a PHP or Python script. Just :h :X and

Re: Can't change search background color

2006-11-22 Thread panshizhu
Larry Alkoff [EMAIL PROTECTED] 写于 2006-11-21 17:25:13: I'm using Vim64 in Kubuntu and cannot change the color background when doing a search. The background color is a kind of darkish orange - I _think_ it's numbe 3. I'd like to have LightYellow but nothing I have done so far changes it.

Re: Execute command for current block of code

2006-11-22 Thread A.J.Mechelynck
Christian Ebert wrote: * Kevin Old on Wednesday, November 22, 2006 at 12:57:27 -0500: Actually, I didn't know that highlighting visually and hitting the : will give me the range. That's half the battle for me on this. I've tried putting that into a mapping like this: map vti :',' !perltidy

Re: Calendar ?

2006-11-22 Thread Meino Christian Cramer
From: Tom Purl [EMAIL PROTECTED] Subject: Re: Calendar ? Date: Wed, 22 Nov 2006 12:15:04 -0600 (CST) I found the plugin in $HOME/.vim/plugin/. What version do you use? The header of my calendar.vim consists mainly of a long history, instructions on how to set some calendar specific variables in

Searching/replacing literally

2006-11-22 Thread Meino Christian Cramer
Hi, I want to search a longer string totally literally...regexp totally switched of, no exceptions. Or in other words: I want to search like sttcmp() of glibc would do. Is this possible with vim? (ok, this is a more rethorical question...everything is possible with vim. The question is

Re: error reading from stdin, vim 7.0.164

2006-11-22 Thread Gregory Margo
On Tue, Nov 21, 2006 at 09:34:45AM -0500, Adam Mercer wrote: On 21/11/06, Yakov Lerner [EMAIL PROTECTED] wrote: In the latest vim (7.0.164), I am getting error reading from stdin: ls | vim -u NONE - press any key Vim: Reading from stdin... Vim: Error reading input, exiting... Works

Re: sorting columns alphabetically

2006-11-22 Thread drchip
Quoting Vim Visual [EMAIL PROTECTED]: I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after the surname (3rd column). How can I do that? I know how to sort it after the first one (visual + !sort) May I suggest looking at How

why CTRL-W = don't work after :cope command ?

2006-11-22 Thread KLEIN Stéphane
Hello, why CTRL-W = don't work after :cope command ? Thanks for your help, Stephane

Re: Execute command for current block of code

2006-11-22 Thread Gary Johnson
On 2006-11-22, A.J.Mechelynck [EMAIL PROTECTED] wrote: vobject where object is a Normal-mode object, will highlight the concerned object. Example: vip for the inner paragraph. And if you're using the matchit.vim plugin with your tags specified in b:match_words, then a% will highlight

Re: Help - install problem can not run gvim (E233)

2006-11-22 Thread Bob Hoekstra
Tony Young wrote: Hello I am trying to see if I can get vim/gvim to work with our work Sun box. I Installed and used instructions from http://www.vim.org/ http://www.vim.org/download.php#unix Downloaded the runtime and source files together: vim-##.tar.bz2 i.e. I