Thanks.
On Mon, 12 Feb 2007, Zdenek Sekera wrote:
Ben K. wrote:
Thanks much.
On Fri, 9 Feb 2007, Hugh Sasse wrote:
On Fri, 9 Feb 2007, Ben K. wrote:
Hi,
Whenever I paste something into vim, it gets staircased. Is there a way to
avoid copy/paste being staircased even when I have ai
Thanks much.
On Fri, 9 Feb 2007, Hugh Sasse wrote:
On Fri, 9 Feb 2007, Ben K. wrote:
Hi,
Whenever I paste something into vim, it gets staircased. Is there a way to
avoid copy/paste being staircased even when I have ai, cin or si turned on? I
Yes, set paste. See
:he paste
for more on
dle/right mouse button), is there a way for
me to tell vim that ai, cin, or si should not interfere when I do pasting?
I mostly work on unix platforms, so unix-only solution also works for me.
Thanks.
Ben K.
Developer
http://benix.tamu.edu
im /fopen/
function! s:bufvim( arg )
let a = ""
let i = 1
while i <= bufnr("$")
if buflisted(i) && bufname(i) != ""
let a = a . ' ' . escape(bufname(i), ' \')
endif
let i = i + 1
endwhile
exe "vim " . a:ar
Thanks.
By the way I'm seeing this error when I open the url:
script:Can't open file: 'vs_scripts.MYI' (errno: 145)
I guess it's from some maintenance work on mysql, but just in case.
On Fri, 8 Dec 2006, Yegappan Lakshmanan wrote:
Hi,
On 12/8/06, Ben K.
Thanks.
On Fri, 8 Dec 2006, A.J.Mechelynck wrote:
Ben K. wrote:
Hi,
Is there a way to do grep only within the open files (buffers)?
I did :he grep and bufdo but it didn't seem to give me the option.
Thanks.
Ben K.
Developer
http://benix.tamu.edu
All the following is for Vim ve
Hi,
Is there a way to do grep only within the open files (buffers)?
I did :he grep and bufdo but it didn't seem to give me the option.
Thanks.
Ben K.
Developer
http://benix.tamu.edu
Thanks.
On Sat, 2 Dec 2006, Marc Weber wrote:
On Fri, Dec 01, 2006 at 10:30:26AM -0600, Ben K. wrote:
Is there a way to make gf open "some.file" from this line?
Include("/includes/some.file");
where the file is actually sitting under web server root, like
ould be approx. correct, save for
possible needs to escape the "\" characters)
Alternatively, you could map it to gf and f
to maintain the original meanings, but create new mappings to
provide the additional functionality.
HTH,
-tim
Regards,
Ben K.
Developer
http://benix.tamu.edu
I'll check it out. Thanks.
On Fri, 1 Dec 2006, Yegappan Lakshmanan wrote:
Hi,
On 12/1/06, Ben K. <[EMAIL PROTECTED]> wrote:
Is there a way to make gf open "some.file" from this line?
Include("/includes/some.file");
where the file is actually sitt
In this case
include("__some_modification_to__... _includes/some.file")
will not necessarily be convenient.
But thanks anyway.
Ben K.
Developer
http://benix.tamu.edu
pt the change from "/includes..." to "includes".
There are situations I cannot save it, e.g. if the source is on a live
server, during the time this is changed, the web server will not be able
to find the file and will generate errors.
It's ok if there's no way as is. I'll prehaps look at recompiling.
Thanks.
Ben K.
Developer
http://benix.tamu.edu
by defining a new command (say wf)?
Thanks.
Ben K.
Developer
http://benix.tamu.edu
dimming the colors, etc.
But the provided answer should be sufficient.
Regards,
Ben K.
Developer
http://benix.tamu.edu
sub aaa {
...
instance 1 # Begin by "*"
...
instance 2 # This is OK.
...
}
sub bbb {
...
instance 3 # This is not what I want
...
}
Is there a simple way to do it?
Thanks.
Ben K.
Developer
http://benix.tamu.edu
rapping the RHS with "" seems a better style. Most of the existing
shell scripts (supplied by vendors) don't seem to honor that.
Thanks
Ben K.
Developer
http://benix.tamu.edu
hname and gives me a not-found error.
Is there a way to change that?
Regards,
Ben K.
Developer
http://benix.tamu.edu
Thanks Tony and Brady. I got sufficient answers.
Happy vimming,
Ben K.
Developer
http://benix.tamu.edu
Regards,
Ben K.
Developer
http://benix.tamu.edu
st wanted to note here - in case someone has a ready
answer.
Happy vimming,
Ben K.
Developer
http://benix.tamu.edu
excel, or some databases, will recognize the
data correctly, even if you supply them as is. You will not need to do any
search and replace.
At least, postgresql correctly recognizes the three examples you gave.
Regards,
Ben K.
Developer
http://benix.tamu.edu
With gv you can re-select the previous visual block.
Is it possible to give a horizontal shift with it?
Like + or - 5?
Could you cut away the finished block and paste to another place, and do
gv again? Not quite reliable, but may work.
Regards,
Ben K.
Developer
http://benix.tamu.edu
How do I deleted per line all the 'odd' 200?
If there are repeated 200 200 200 200 ...
:%s/200\s\+200\s\+/200 zzz /g
Regards,
Ben K.
Developer
http://benix.tamu.edu
How do I deleted per line all the 'odd' 200?
:%s/ 200 200 200 / 200 zzz 200 /g
:%s/ 200 / /g
:%s/zzz/200/g
Just an idea...
Regards,
Ben K.
Developer
http://benix.tamu.edu
| vcx
Hi, an alternative FWIW
:sort
:g!/^Line/d
Ben K.
Developer
http://benix.tamu.edu
Line 18 | 123
Line 18 | 641
Line 19 |abc
Line 19 | GHI
Line 332 |xyz
Line 332 | vcx
Hi, an alternative FWIW
:sort
:g!/^Line/d
Regards,
Ben K.
Developer
http://benix.tamu.edu
ation}/\3
without having to define the pattern
:s/\(\S\+\) \(\S\+\) \(\S\+\) ... /\3 ==> brown
using white space, and if needed, by defining my own separator
Thanks.
Ben K.
Developer
http://benix.tamu.edu
27 matches
Mail list logo