Re: swapping three columns in a file..

2006-12-19 Thread Milan Vancura
How to swap the three columns in file without using substitute command? Hi, I don't understand why you can't use :s so I don't know if the following solution would be usable for you. defining: qq/\/\/BOF\Enterjj^V/\/\/EOF\Enterkkf dA ^Cp Enter means Enter key ^V and ^C mean ctrl-V

Re: Vim test suite

2006-12-19 Thread A.J.Mechelynck
Nikola Knezevic wrote: On 18 Dec 2006, at 15:15 , A.J.Mechelynck wrote: What is your problem? After I compile Vim, if src/vim --version |more (on Unix-like systems) or src\vim --version |more (on Dos-like systems) src\gvim :version :q Thanks Tony. I don't have

RE: swapping three columns in a file..

2006-12-19 Thread sasikumar.kandhasamy
Hope following command is quite easy to manipulate, Mark the first line as mt, then use awk to swap the columns 't,. !awk '{print $3 $2 $1}' Thanks Regards, Sasikumar Kandhasamy Project Engineer Wipro Technologies Madivala-1|Bangalore. Mobile- +91-9986378586 | Phone: 30292842

[Feature Request] Vim should respond to WM_PASTE

2006-12-19 Thread Nikolai Weibull
It seems GVim doesn't respond to the WM_PASTE message on Windows. It would be really sweet if it did. I sadly have no intention of implementing this myself, but would appreciate it if this could be added to the TODO. Thanks. nikolai

Re: swapping three columns in a file..

2006-12-19 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: How to swap the three columns in file without using substitute command? Let us say file with the following contents, A1 B1 C1 A2 B2 C2 Then after swapping the file content should be, C1 A1 B1 C2 A2 B2 There's visswap, which you can get from

Re: [Feature Request] Vim should respond to WM_PASTE

2006-12-19 Thread A.J.Mechelynck
Nikolai Weibull wrote: It seems GVim doesn't respond to the WM_PASTE message on Windows. It would be really sweet if it did. I sadly have no intention of implementing this myself, but would appreciate it if this could be added to the TODO. Thanks. nikolai Doesn't it already? Which

Re: [Feature Request] Vim should respond to WM_PASTE

2006-12-19 Thread Nikolai Weibull
On 12/19/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: It seems GVim doesn't respond to the WM_PASTE message on Windows. It would be really sweet if it did. I sadly have no intention of implementing this myself, but would appreciate it if this could be added to the

Re: [Feature Request] Vim should respond to WM_PASTE

2006-12-19 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 12/19/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: It seems GVim doesn't respond to the WM_PASTE message on Windows. It would be really sweet if it did. I sadly have no intention of implementing this myself, but would appreciate it if

Line breaks at cursor

2006-12-19 Thread David Woodfall
Presently I'm using :set tw=N and gq to break lines at N position. But is there a way to break lines at cursor position? If there is no easy way perhaps it could made into a function/macro? -- In Devon, Connecticut, it is unlawful to walk backwards after sunset.

Re: Line breaks at cursor

2006-12-19 Thread A.J.Mechelynck
David Woodfall wrote: Presently I'm using :set tw=N and gq to break lines at N position. But is there a way to break lines at cursor position? If there is no easy way perhaps it could made into a function/macro? To break the line at the cursor, hit the Enter key in Insert mode, as with any

GVIM 7-0-178 seizing up

2006-12-19 Thread zzapper
Hi http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=1165578469 big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot edit .vimrc (unless I rename .vimrc to say fred) it shows the menu read only, edit anyway etc then seizes. I

restoring position after :g//p command, problem

2006-12-19 Thread Yakov Lerner
I made a mapping that does g//p for the current word nmap f2 :exe 'g/\'.expand('cword') . '\/#'cr This works, but I want it to restore the original position: nmap f2 ms:exe 'g/\'.expand('cword') . '\/#'cr's This does not work, because 's clears the output. It is sort of executed, but

utf-8 problem with set listchars=tab:»·,trail:·

2006-12-19 Thread Yakov Lerner
I have 'set listchars=tab:»·,trail:·' in my vimrc (or equivalent set listchars=tab:\xbb\xb7,trail:\xb7). I also have scriptencoding latin1. When I have enc=utf8, this works in gvim. But in console vim, when I set encoding to utf8 in konsole, these »· characters are not see, and columns are

RE: GVIM 7-0-178 seizing up

2006-12-19 Thread Steve Hall
From: zzapper david tvis co.uk, Tue, December 19, 2006 6:53 am http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=1165578469big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot edit .vimrc (unless I rename .vimrc to say

RE: GVIM 7-0-178 seizing up

2006-12-19 Thread zzapper
Steve Hall [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED] .secureserver.net: From: zzapper david tvis co.uk, Tue, December 19, 2006 6:53 am http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=116557 8469big_mirror=0 Downloaded above by following links from vim.org It

Re: GVIM 7-0-178 seizing up

2006-12-19 Thread Greg Dunn
On 12/19/06, zzapper [EMAIL PROTECTED] wrote: Hi http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=1165578469 big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot edit .vimrc (unless I rename .vimrc to say fred) it shows the menu

Re: GVIM 7-0-178 seizing up

2006-12-19 Thread Jürgen Krämer
Hi, Steve Hall wrote: From: zzapper david tvis co.uk, Tue, December 19, 2006 6:53 am http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=1165578469big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot edit .vimrc (unless I

Re: GVIM 7-0-178 seizing up

2006-12-19 Thread zzapper
Greg Dunn [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 12/19/06, zzapper [EMAIL PROTECTED] wrote: Hi http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=116557 8469 big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot

Re: utf-8 problem with set listchars=tab:»· ,trail:·

2006-12-19 Thread A.J.Mechelynck
Yakov Lerner wrote: I have 'set listchars=tab:»·,trail:·' in my vimrc (or equivalent set listchars=tab:\xbb\xb7,trail:\xb7). I also have scriptencoding latin1. When I have enc=utf8, this works in gvim. But in console vim, when I set encoding to utf8 in konsole, these »· characters are not see,

Re: restoring position after :g//p command, problem

2006-12-19 Thread A.J.Mechelynck
Yakov Lerner wrote: I made a mapping that does g//p for the current word nmap f2 :exe 'g/\'.expand('cword') . '\/#'cr This works, but I want it to restore the original position: nmap f2 ms:exe 'g/\'.expand('cword') . '\/#'cr's This does not work, because 's clears the output. It is

Re: utf-8 problem with set listchars=tab:»·,trail:·

2006-12-19 Thread Yakov Lerner
On 12/19/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I have 'set listchars=tab:»·,trail:·' in my vimrc (or equivalent set listchars=tab:\xbb\xb7,trail:\xb7). I also have scriptencoding latin1. When I have enc=utf8, this works in gvim. But in console vim, when I set

adding commented output

2006-12-19 Thread Ivan F. Villanueva B.
Hello vimers, I'm restarting learning groovy, a kind of scripting language for java I have something like: #!/usr/local/java/groovy/bin/groovy println ( [a,b]*.length() ) println ( [String, File, List].'package'.name ) And would like to introduce in the same buffer the output of the

Re: utf-8 problem with set listchars=tab:»· ,trail:·

2006-12-19 Thread A.J.Mechelynck
Yakov Lerner wrote: On 12/19/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I have 'set listchars=tab:»·,trail:·' in my vimrc (or equivalent set listchars=tab:\xbb\xb7,trail:\xb7). I also have scriptencoding latin1. When I have enc=utf8, this works in gvim. But in console

Re: adding commented output

2006-12-19 Thread A.J.Mechelynck
Ivan F. Villanueva B. wrote: Hello vimers, I'm restarting learning groovy, a kind of scripting language for java I have something like: #!/usr/local/java/groovy/bin/groovy println ( [a,b]*.length() ) println ( [String, File, List].'package'.name ) And would like to introduce in the

dbext omni-completion issue

2006-12-19 Thread Albie Janse van Rensburg
Hi I am trying to get the (magnificent, by the way) dbext plugin to give me context-sensitive omni-completion for table/stored procedure names. It doesn't unfortunately get very far, and when it tries to generate the dictionary files, I get an error: dbext: Incorrect syntax near '|' Msg 102,

Remember where I left off

2006-12-19 Thread Jason Morehouse
Heya, I recall at one point, Vim would remember where I left off in a file, and place me back there when I started. I don't think it's worked since I switch to 7, and don't recall the vimrc setting. Any ideas? Thanks, -J

Re: Making C-] do something different

2006-12-19 Thread Jean-Rene David
* Chuck Mason [2006.12.13 17:15]: In :help it follows links (Maybe there's a helptags file?). Bingo. :h helptags [...] For instance I have a line that looks like: ... sometext somenumber1 someothertext2 And if the user presses C-] anywhere on the line I would like to take

Re: Remember where I left off

2006-12-19 Thread A.J.Mechelynck
Jason Morehouse wrote: Heya, I recall at one point, Vim would remember where I left off in a file, and place me back there when I started. I don't think it's worked since I switch to 7, and don't recall the vimrc setting. Any ideas? Thanks, -J Method I (recommended) Make sure

Re: Remember where I left off

2006-12-19 Thread Bill McCarthy
On Tue 19-Dec-06 6:41pm -0600, Jason Morehouse wrote: I recall at one point, Vim would remember where I left off in a file, and place me back there when I started. I don't think it's worked since I switch to 7, and don't recall the vimrc setting. Any ideas? It hasn't changed. The normal

Re: Making C-] do something different

2006-12-19 Thread A.J.Mechelynck
Jean-Rene David wrote: * Chuck Mason [2006.12.13 17:15]: In :help it follows links (Maybe there's a helptags file?). Bingo. :h helptags [...] For instance I have a line that looks like: ... sometext somenumber1 someothertext2 And if the user presses C-] anywhere on the line I would like

Pasteboard - Perl clipboard

2006-12-19 Thread David Fishburn
Calvin Waterbury asked on Sunday, October 01, 2006 3:04 PM for a pasteboard feature. This is a feature that automatically captures clipboard content to a text file that has been designated as the Pasteboard. Perhaps an example would clarify. If I had this feature implimented in

RE: dbext omni-completion issue

2006-12-19 Thread David Fishburn
I am trying to get the (magnificent, by the way) dbext plugin to give me context-sensitive omni-completion for table/stored procedure names. Thank you for the praise. This plugin contains functions/mappings/commands to enable Vim to access several databases. Currently Mysql, PostgreSQL,