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
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
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
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
[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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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,
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
* 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
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
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
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
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
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,
32 matches
Mail list logo