Re: paste staircasing

2007-02-12 Thread Ben K.
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

Re: paste staircasing

2007-02-12 Thread Ben K.
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

paste staircasing

2007-02-09 Thread Ben K.
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

Re: search within buffers

2006-12-11 Thread Ben K.
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

Re: search within buffers

2006-12-08 Thread Ben K.
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.

Re: search within buffers

2006-12-08 Thread 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

search within buffers

2006-12-08 Thread Ben K.
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

Re: question on gf and path

2006-12-04 Thread Ben K.
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

Re: question on gf and path

2006-12-04 Thread Ben K.
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

Re: question on gf and path

2006-12-01 Thread Ben K.
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

Re: question on gf and path (fwd)

2006-12-01 Thread Ben K.
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

Re: question on gf and path

2006-12-01 Thread Ben K.
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

question on gf and path

2006-12-01 Thread Ben K.
by defining a new command (say wf)? Thanks. Ben K. Developer http://benix.tamu.edu

Re: search between two brackets

2006-11-14 Thread Ben K.
dimming the colors, etc. But the provided answer should be sufficient. Regards, Ben K. Developer http://benix.tamu.edu

search between two brackets

2006-11-13 Thread Ben K.
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

RE: gf question

2006-10-27 Thread Ben K.
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

gf question

2006-10-26 Thread Ben K.
hname and gives me a not-found error. Is there a way to change that? Regards, Ben K. Developer http://benix.tamu.edu

vimdiff same bg and fg colors

2006-10-18 Thread Ben K.
Thanks Tony and Brady. I got sufficient answers. Happy vimming, Ben K. Developer http://benix.tamu.edu

follow up - colorscheme on vimdiff

2006-10-18 Thread Ben K.
Regards, Ben K. Developer http://benix.tamu.edu

color schemes same fg and bg on vimdiff

2006-10-18 Thread Ben K.
st wanted to note here - in case someone has a ready answer. Happy vimming, Ben K. Developer http://benix.tamu.edu

Re: Search and Replace with a Regular Expression

2006-08-03 Thread Ben K.
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

Re: Select prev visual block + 5 hor pos more

2006-08-03 Thread Ben K.
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

Re: Deleting a repetative pattern

2006-08-02 Thread Ben K.
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

Re: Deleting a repetative pattern

2006-08-02 Thread Ben K.
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

Re: Sorting a file

2006-08-02 Thread Ben K.
| vcx Hi, an alternative FWIW :sort :g!/^Line/d Ben K. Developer http://benix.tamu.edu

Re: Sorting a file

2006-08-02 Thread Ben K.
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

basic question: quick split like awk

2006-05-10 Thread Ben K.
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