On Mon, Apr 23, 2012 at 05:12:22PM EDT, Christian Brabandt wrote:
Hi Chris!
On So, 22 Apr 2012, Chris Jones wrote:
On Sun, Apr 22, 2012 at 07:47:19AM EDT, Christian Brabandt wrote:
Hi Chris!
Hallo Christian, wie geht's..?
Ich bin beeindruckt ;)
Don't.. that's about all the
On Mon, Apr 23, 2012 at 06:07:24PM EDT, Gary Johnson wrote:
On 2012-04-23, Chris Jones wrote:
[..]
From a more general perspective, the OP could use the ‘autocutsel’
program that keeps X11's clipboard primary selection in sync'.
Inspired by this discussion, I decided to install
Tnx John and Ben.
Please let me ask one more question about submatch()
If I use submatch like this:
:%s/'pattern'/\=MyFunction(submatch())/g
function! MyFunction(m)
variable x
do something with variable x
return x
endfunction
I would like to confirm (with a c flag) all single substitutions
I have a bunch of numbers and for each of them I have to find all
occurrences in a file, that is: for the first number, find all lines
containing the number, for the second one the same, and so on. Since
this is repetitive process, I'd like to minimize the number of key I
have to type. I'm trying
rameo wrote:
If I use submatch like this:
:%s/'pattern'/\=MyFunction(submatch())/g
That gives:
E119: Not enough arguments for function: submatch
E116: Invalid arguments for function MyFunction(submatch())
I would like to confirm (with a c flag) all single
substitutions but the c flag at the
On Tuesday, April 24, 2012 10:01:35 AM UTC+2, JohnBeckett wrote:
rameo wrote:
If I use submatch like this:
:%s/'pattern'/\=MyFunction(submatch())/g
That gives:
E119: Not enough arguments for function: submatch
E116: Invalid arguments for function MyFunction(submatch())
I would like
Hi,
I recently look for re-(format|indent)ing my code and after many queries on
google or in :help I didn't find a satisfactory solution.
On websites I found a solution with AStyle or indent and in :help I have to
make a very big function.
Basically I want to follow de Allman Style (
I am trying to write an script to execute a vim command to multiples txt files
and to overwrite these txt with the result. Something like that.
#!/bin/sh
for i in *.txt; do vim :%s/foo/bar/g; done
How I can run vim commands from a bash script? What I am doing bad?
--
You received this message
On Tue, 2012-04-24 at 04:42 -0700, Antonio Recio wrote:
I am trying to write an script to execute a vim command to multiples txt
files and to overwrite these txt with the result. Something like that.
#!/bin/sh
for i in *.txt; do vim :%s/foo/bar/g; done
How I can run vim commands from a
Oups, you are right I have forgotten the filename:
for i in *.txt; do vim $i %s/foo/bar/g; done
Now it opens each txt file but it doesn't replace or save them.
--
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
vim was not designed for that kind of task.
You can pass commands via -c and --cmd (see --help).
Give this a try:
sed -i 's/foo/bar/' *.txt
-i = write back file in place
vim foo will open file name 'foo'.
vim '%/s...' will open file name '%/s...' (and fail)
for x in ..
vim -c e $x| %s/
Hi,
Marc Weber wrote:
vim was not designed for that kind of task.
You can pass commands via -c and --cmd (see --help).
Give this a try:
sed -i 's/foo/bar/' *.txt
-i = write back file in place
vim foo will open file name 'foo'.
vim '%/s...' will open file name '%/s...' (and
Antonio Recio wrote:
I am trying to write an script to execute a vim command to
multiples txt files and to overwrite these txt with the
result. Something like that.
#!/bin/sh
for i in *.txt; do vim :%s/foo/bar/g; done
As others have mentioned, that is not going to work well.
See the
On Tue, 2012-04-24 at 04:51 -0700, Antonio Recio wrote:
Oups, you are right I have forgotten the filename:
for i in *.txt; do vim $i %s/foo/bar/g; done
Now it opens each txt file but it doesn't replace or save them.
How about trying to save and quit as well in the command. Although not
the
Excerpts from Jürgen Krämer's message of Tue Apr 24 14:02:29 +0200 2012:
vim -c set autowrite nomore -c argdo %s/.../.../ -c q *.txt
I haven't thought about it for long because the simple sed command does
the job. So no, there was no specific reason because it doesn't make
sense to me anyway
Using sed how I can replace this symbol ¦ with tab?
sed -i 's/¦/\t/' *.txt
--
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
On Tue, 2012-04-24 at 05:18 -0700, Antonio Recio wrote:
Using sed how I can replace this symbol ¦ with tab?
sed -i 's/¦/\t/' *.txt
sed -i 's/|/\t/g'
or
perl -p -i.bak -e 's/\|/\t/g'
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text
On Tuesday, April 24, 2012 2:05:59 AM UTC-5, esquifit wrote:
I have a bunch of numbers and for each of them I have to find all
occurrences in a file, that is: for the first number, find all lines
containing the number, for the second one the same, and so on. Since
this is repetitive process,
On Tuesday, April 24, 2012 5:58:48 AM UTC-5, Gautier DI FOLCO wrote:
Hi,
I recently look for re-(format|indent)ing my code and after many queries on
google or in :help I didn#39;t find span lang=enspana satisfactory
solution.
On websites I found a solution with AStyle or indent and in
On 24 Abr, 16:50, Gary Johnson garyj...@spocom.com wrote:
On 2012-04-24, esquifit wrote:
:help v:count
:help v:count1
This does the trick indeed. Thank you!
e.
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying
On Sat, Apr 21, 2012 at 4:25 PM, Tim Chase v...@tim.thechases.com wrote:
Just installed vcscommand and am hitting some strange errors when I issue
VCSBlame in my git repo. Based on what I see in the (literally) screen
full of red/error text (dumped below), it looks like it's trying to use bzr
On 24 Abr, 16:51, Ben Fritz fritzophre...@gmail.com wrote:
On Tuesday, April 24, 2012 2:05:59 AM UTC-5, esquifit wrote:
I have a bunch of numbers and for each of them I have to find all
occurrences in a file, that is: for the first number, find all lines
containing the number, for the
For me, elaborate manipulation of syntax highlight files is not worth it.
I have access to a unix system with a version of aspell that bypasses
nroff/troff commands. Interestingly, aspell can be used with vim, but
the version for windows no longer has roff filters - only ones for html,
LaTex,
According to the help (:he :ilist)
:il /foo/
would find all occurrences of the string 'foo' while
:il foo
would find all occurrences of the pattern \foo\, that is, 'foo' as a
whole word.
I've found that when the pattern is a number this is no longer the case:
:il /20/
finds all occurrences of the
Hi,
esquifit wrote:
According to the help (:he :ilist)
:il /foo/
would find all occurrences of the string 'foo' while
:il foo
would find all occurrences of the pattern \foo\, that is, 'foo' as a
whole word.
I've found that when the pattern is a number this is no longer the case:
:il
25 matches
Mail list logo