half of hlsearch

2006-08-11 Thread Meino Christian Cramer
Hi, I am searching for a way to switch "hlsearch" half on (or half off...). Normally hlsearch is nice when searching regulary for a keyword or phrase. On the other side it highlight half of my text, if I do things like y/ . Is there a way to sitch off hlsearch when using

Re: Tips for advance use of Vim

2006-08-11 Thread Preben Randhol
Vincent Wang <[EMAIL PROTECTED]> wrote on 11/08/2006 (03:57) : > That's great! In fact, I don't want to learn vim's tips from dozens of > website, that is not good to propagate the knowledge. Wiki is better > than the official vim tips page. I will be glad to enjoy others' > smart tips and share

search and replace multiple words

2006-08-11 Thread Brian Anderson
Hello, I'm working with some plain text files, to prepare them for LaTeX. I'm trying to search for a whole line of text, then put it into brackets. for the text: 3.0 some words in the line I want to replace it with: \subsection{some words in the line} There is a tab between the last digit

Re: half of hlsearch

2006-08-11 Thread Marc Weber
> y/ > > . Is there a way to sitch off hlsearch when using y and other action > which are not "searching for something" actions from the users point > of view ? Don't think there is an easy way to do this... It's no problem to switch it on or off (just use a mappinng noremap / :

Re: half of hlsearch

2006-08-11 Thread Tobias Herp
Marc Weber <[EMAIL PROTECTED]> wrote: > Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > y/ > > > > . Is there a way to sitch off hlsearch when using y and other action Wouldn't have a ye or yE the desired effect in most cases? -- Cheers, Tobias

Re: half of hlsearch

2006-08-11 Thread Meino Christian Cramer
From: "Tobias Herp" <[EMAIL PROTECTED]> Subject: Re: half of hlsearch Date: Fri, 11 Aug 2006 09:50:32 +0200 > Marc Weber <[EMAIL PROTECTED]> wrote: > > Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > > y/ > > > > > > . Is there a way to sitch off hlsearch when using y and other a

Re: search and replace multiple words

2006-08-11 Thread Yakov Lerner
On 8/11/06, Brian Anderson <[EMAIL PROTECTED]> wrote: Hello, I'm working with some plain text files, to prepare them for LaTeX. I'm trying to search for a whole line of text, then put it into brackets. for the text: 3.0 some words in the line I want to replace it with: \subsection{some words

Re: half of hlsearch

2006-08-11 Thread Jürgen Krämer
Hi, Meino Christian Cramer wrote: > > I am searching for a way to switch "hlsearch" half on (or half > off...). > > Normally hlsearch is nice when searching regulary for a keyword or > phrase. > > On the other side it highlight half of my text, if I do things like > > y/ >

How to disable the automatic on for 'hlsearch' option.

2006-08-11 Thread panshizhu
Hi, everyone, The 'hlsearch' can be turned off by :set nohls However, it will be automatically turned on when I'd done a search, which is annoying me. What I want is that it will not be turned on automatically. but it will be turned on when I :set hlsearch. (i.e. only when I really need it) I

Re: How to disable the automatic on for 'hlsearch' option.

2006-08-11 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] wrote: > > The 'hlsearch' can be turned off by :set nohls > > However, it will be automatically turned on when I'd done a search, which > is annoying me. this does not happen here nor is it documented that way. Are you possibly confusing ":set nohls" and ":nohls"? Or do y

vim book t.o.c.

2006-08-11 Thread Boyko Bantchev
Hi all, As you know, ``The Vim book'' can be downloaded from vim.org in pdf form, but it has no table of contents. Well, I did a reconstruction of the TOC in LaTeX and I will gladly send it over to whoever is interested, or even better -- upload it somewhere that anyone can make use of it, if onl

Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Mark Woodward
Hi all, came across this [Emacs] link the other day and wondered if Vim can do this? http://steve-yegge.blogspot.com/ in summary... change these to Bob, Sue, Ralph etc (capitalised) bob sue ralph alice jimmy preston billy joe jim bob :s/\w\+/\u\0/g capitalise last letter (eg boB) :'<,'>s/\(\

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Jürgen Krämer
Hi, Mark Woodward wrote: > > came across this [Emacs] link the other day and wondered if Vim > can do this? > http://steve-yegge.blogspot.com/ [snip] > 1. change these to number order starting at 1 (1, 2, 3, 4 etc) > 2. change these to alpha list (a, b, c, etc) > [This one has me stumped altho

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Mark Woodward
Thanks Jürgen, On Fri, 11 Aug 2006 11:54:50 +0200 Jürgen Krämer <[EMAIL PROTECTED]> wrote: snip... > 1.) if this text starts at line 1 > > %s/^\d\+:/\=line('.') . '.) '/ > > 2.) for at most 26 lines > > %s/^\d\+:/\=nr2char(char2nr('a') + line('.') - 1) . ') '/ > > Regards, > Jürgen Is

Re: half of hlsearch

2006-08-11 Thread Tim Chase
How can I find help for ye/ye ? :help ye or :help yE gives me help for the year-2000 compliance which is not directly what I wanted ... That's kinda funny that it drops you in y2k information. The trick to searching for them (and for that matter, grokking vi/vim) is to understand that what

VIMCrypt: Algo ?

2006-08-11 Thread Meino Christian Cramer
Hi, What algorithm does vim use for the encryption of buffers ? AES? Twofish? Blwofish? Serpent? MARS? Thanks for any info in advance ! mcc

Re: half of hlsearch

2006-08-11 Thread Meino Christian Cramer
From: Tim Chase <[EMAIL PROTECTED]> Subject: Re: half of hlsearch Date: Fri, 11 Aug 2006 05:37:38 -0500 Hi Tim, that raises a question I am often feeling to ask: If one is learning vim he first uses the help function by common "keywords" like "searching" and command sequences, from which s/h

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Jürgen Krämer
Hi, Mark Woodward wrote: > Thanks Jürgen, > > On Fri, 11 Aug 2006 11:54:50 +0200 > Jürgen Krämer <[EMAIL PROTECTED]> wrote: > > snip... > >> 1.) if this text starts at line 1 >> >> %s/^\d\+:/\=line('.') . '.) '/ >> >> 2.) for at most 26 lines >> >> %s/^\d\+:/\=nr2char(char2nr('a') + line('

icons

2006-08-11 Thread Robert Cussons
Hi all, sorry if this is blindingly obvious to all except me, but where is (are) the vim icon(s) stored in a windows install of vim7, I had a look for about half an hour this morning and couldn't find them, not helped by the fact that I didn't know the file extension, are they stored in some

Re: VIMCrypt: Algo ?

2006-08-11 Thread Georg Dahn
Hi! --- Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > What algorithm does vim use for the encryption of buffers ? > AES? Twofish? Blwofish? Serpent? MARS? :h encryption tells me the following: Pkzip uses the same encryption, and US Govt has no objection to its export. Pkzip's public fil

Re: icons

2006-08-11 Thread Steve Hall
On Fri, 2006-08-11 at 13:08 +0200, Robert Cussons wrote: > > sorry if this is blindingly obvious to all except me, but where is > (are) the vim icon(s) stored in a windows install of vim7, I had a > look for about half an hour this morning and couldn't find them, not > helped by the fact that I di

Re: VIMCrypt: Algo ?

2006-08-11 Thread Meino Christian Cramer
From: Georg Dahn <[EMAIL PROTECTED]> Subject: Re: VIMCrypt: Algo ? Date: Fri, 11 Aug 2006 12:14:52 +0100 (BST) Hi, > Hi! > > --- Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > What algorithm does vim use for the encryption of buffers ? > > AES? Twofish? Blwofish? Serpent? MARS? > > :h

Re: half of hlsearch

2006-08-11 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: Tim Chase <[EMAIL PROTECTED]> Subject: Re: half of hlsearch Date: Fri, 11 Aug 2006 05:37:38 -0500 Hi Tim, that raises a question I am often feeling to ask: If one is learning vim he first uses the help function by common "keywords" like "searching" and co

:Exp using

2006-08-11 Thread striker
I recently updated my netrw to v102. Since that upgrade there are two things that I miss. 1) using tab for completion when using :Exp :Exp c:\do # used to go to the first completion i.e. C: \Documents and Settings\ 2) the ability to open a directory using :e H:\notes\ # now I can

Re: search and replace multiple words

2006-08-11 Thread A.J.Mechelynck
Yakov Lerner wrote: On 8/11/06, Brian Anderson <[EMAIL PROTECTED]> wrote: Hello, I'm working with some plain text files, to prepare them for LaTeX. I'm trying to search for a whole line of text, then put it into brackets. for the text: 3.0 some words in the line I want to replace it with: \

Re: half of hlsearch

2006-08-11 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: half of hlsearch Date: Fri, 11 Aug 2006 14:03:37 +0200 Hi Tony, > Meino Christian Cramer wrote: > > From: Tim Chase <[EMAIL PROTECTED]> > > Subject: Re: half of hlsearch > > Date: Fri, 11 Aug 2006 05:37:38 -0500 > > > > Hi Tim, > > > > th

Re: icons

2006-08-11 Thread Robert Cussons
Steve Hall wrote: On Fri, 2006-08-11 at 13:08 +0200, Robert Cussons wrote: sorry if this is blindingly obvious to all except me, but where is (are) the vim icon(s) stored in a windows install of vim7, I had a look for about half an hour this morning and couldn't find them, not helped by the fac

Re: Show/Hide Split Windows

2006-08-11 Thread thomas scott urban
In addition to the other responses, you can open the buffer you are working with in a new tab, then close the tab when you are done working on it in an exclusive manner. On Thu, 2006-08-10 at 10:44 -0700, Steve Amerige wrote: > Hi all, > > The ability to split windows is an absolute essential;

Color change of :set cul or -V

2006-08-11 Thread striker
I am using colorscheme vo_dark. When I :set cul or use visual highlighting, the color for the highlight is light gray and makes the highlighted text very difficult to see. The first few lines are: let g:colors_name="VO Dark" hi normal guifg=darkgreen guibg=black ctermfg=darkgreen ctermbg=

Re: Tips for advance use of Vim

2006-08-11 Thread Tom Purl
> Why is wiki better? I find the tips pages great place for info as it is > easy to search for the info too. The best thing is that all info is at > one place. Nothing is more annoying than to chase down broken links... > > Of course I wouldn't mind if somebody compiled a Vim Cookbook/Tipbook > lik

Re: :Exp using

2006-08-11 Thread Charles E Campbell Jr
striker wrote: I recently updated my netrw to v102. Since that upgrade there are two things that I miss. 1) using tab for completion when using :Exp :Exp c:\do # used to go to the first completion i.e. C: \Documents and Settings\ 2) the ability to open a directory using :e H:\not

Re: Omnicompletion top window

2006-08-11 Thread Mike Bradley
Theres a set called "completeopt" make sure that it does not contain the string preview. Here are two lines from my .vimrc, I coment one out depending on which feature I would like. Put the second line in your .vimrc and see if it helps. set completeopt=menu,preview "turn on preview menu for om

Re: Tips for advance use of Vim

2006-08-11 Thread Charles E Campbell Jr
Tom Purl wrote: The big downside of a wiki is administrative costs. It would probably be slightly more difficult to fight spam, and you would need a heck of a lot more moderators. And the spam problem has already afflicted the tips, at the cost of using moderators to elide them. I can jus

RE: Tips for advance use of Vim

2006-08-11 Thread Steve Hall
From: Charles E Campbell Jr, Fri, August 11, 2006 11:31 am > Tom Purl wrote: > > > > The big downside of a wiki is administrative costs. It would > > probably be slightly more difficult to fight spam, and you would > > need a heck of a lot more moderators. No more than we currently have. A lot of

Re: How to disable the automatic on for 'hlsearch' option.

2006-08-11 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi, everyone, The 'hlsearch' can be turned off by :set nohls You must be confusing ":nohls" with ":set nohls" (see below). However, it will be automatically turned on when I'd done a search, which is annoying me. What I want is that it will not be turned on automa

Re: Omnicompletion top window

2006-08-11 Thread Panos Laganakos
Mike Bradley <[EMAIL PROTECTED]> wrote: Theres a set called "completeopt" make sure that it does not contain the string preview. Here are two lines from my .vimrc, I coment one out depending on which feature I would like. Put the second line in your .vimrc and see if it helps. set completeopt

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread A.J.Mechelynck
Mark Woodward wrote: Hi all, came across this [Emacs] link the other day and wondered if Vim can do this? http://steve-yegge.blogspot.com/ in summary... change these to Bob, Sue, Ralph etc (capitalised) bob sue ralph alice jimmy preston billy joe jim bob :s/\w\+/\u\0/g capitalise last lette

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Mark Woodward wrote: [...] [...] Oops, I misread your post. I thought you wanted to remove the accents; apparently you wanted to renumber the items. But maybe my approach can help someone else in another circumstance. Best regards, Tony.

Re: :Exp using

2006-08-11 Thread striker
Thanks Chip! This worked great! Even a few issues that I hadn't mentioned are now working. Once again, Life is Good! Kevin On Aug 11, 2006, at 11:28 AM, Charles E Campbell Jr wrote: striker wrote: I recently updated my netrw to v102. Since that upgrade there are two things that I mis

Re: half of hlsearch

2006-08-11 Thread A.J.Mechelynck
Meino Christian Cramer wrote: [...] I'd never said, that there is something /MISSING/ in the help texts!!! But as your explanations shows: One need help to use help. And the tips are...hrmmm...not directly "straight forward". Even key mappings are suggested to make thinks faster/better... As i

Re: Tips for advance use of Vim

2006-08-11 Thread Marc Weber
> spammers wiping out existing > tips' contents and inserting their garbage. Of course, I'm not a wiki The wmii people tried tackling this problem by introducing a wiki password which you can get at their chatroom.. Marc

Re: Emacs 22 'feature' - Can Vim do this?

2006-08-11 Thread Charles E Campbell Jr
> 1. change these to number order starting at 1 (1, 2, 3, 4 etc) > 2. change these to alpha list (a, b, c, etc) > [This one has me stumped although I'm sure I've seen something > along these lines before. ? something to do with sub-replace-special > and submatch?] > > > 1987:Bogotá > 5243:Fabergé

Re: Color change of :set cul or -V

2006-08-11 Thread A.J.Mechelynck
striker wrote: I am using colorscheme vo_dark. When I :set cul or use visual highlighting, the color for the highlight is light gray and makes the highlighted text very difficult to see. The first few lines are: let g:colors_name="VO Dark" hi normal guifg=darkgreen guibg=blackctermfg=dar

Re: Color change of :set cul or -V

2006-08-11 Thread Yakov Lerner
On 8/11/06, striker <[EMAIL PROTECTED]> wrote: I am using colorscheme vo_dark. When I :set cul or use visual highlighting, the color for the highlight is light gray and makes the highlighted text very difficult to see. What do I need to look for and change in order to implement a new col

RE: Tips for advance use of Vim

2006-08-11 Thread Tom Purl
> From: Charles E Campbell Jr, Fri, August 11, 2006 11:31 am >> Tom Purl wrote: >> > >> > The big downside of a wiki is administrative costs. It would >> > probably be slightly more difficult to fight spam, and you would >> > need a heck of a lot more moderators. > > No more than we currently have

Re: Color change of :set cul or -V

2006-08-11 Thread Charles E Campbell Jr
striker wrote: I am using colorscheme vo_dark. When I :set cul or use visual highlighting, the color for the highlight is light gray and makes the highlighted text very difficult to see. ..snip.. My question is this: What do I need to look for and change in order to implement a new c

Re: search and replace multiple words

2006-08-11 Thread Rodolfo Borges
Close. I mean, the regexp is ok, but the LaTeX is not. You seem to intentionaly match 1.2.3, but as far as I remember, the \subsection{} command of LaTeX is for 1.2 only, 1.2.3 should be a \subsubsection{}. So... s/^\d\+\.\d\+\s\+\(.*\)$/\\subsection{\1\}/ s/^\%(\d\+\.\){2}\d\+\s\+\(.*\)$/\\sub

Re: Tips for advance use of Vim

2006-08-11 Thread Preben Randhol
On Fri, 11 Aug 2006 10:06:13 -0500 (CDT) "Tom Purl" <[EMAIL PROTECTED]> wrote: > I agree that the tips page is a very good resource. It is my opinion, > however, that a wiki would work better in this situation. Here's some > of the reasons: > > 1. It's easier to edit a wiki page. If I make a

Re: changed-yet-not-saved-lines highlighting feature

2006-08-11 Thread Gary Johnson
On 2006-08-10, Eddy Zhao <[EMAIL PROTECTED]> wrote: > Hi, > > Very often, I open a lot of files to edit. When I exiting vim, vim > prompt me to save every file which contain changes not saved yet. So, > > - Is there plugin that could highlight the > changed-yet-not-saved-lines (possibly with ye

Re: changed-yet-not-saved-lines highlighting feature

2006-08-11 Thread Gary Johnson
On 2006-08-11, Eddy Zhao <[EMAIL PROTECTED]> wrote: > Seems vim still lack of these two features. I don't see that it lacks the features--they're just not built-in or presented in the way you're used to. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wirele

Re: fast file locating plugin (like ido.el in emacs)

2006-08-11 Thread Hari Krishna Dara
On Fri, 11 Aug 2006 at 1:31pm, Eddy Zhao wrote: > Hi Hari: > > I tried the new plugin. Excellent! Exactly what I want. There are > several missing features I think could make lookupfile even more > effecient & useful. Can you evaluate these features also ? > > - include opened buffer as matchi

Re: changed-yet-not-saved-lines highlighting feature

2006-08-11 Thread Yakov Lerner
On 8/11/06, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2006-08-10, Eddy Zhao <[EMAIL PROTECTED]> wrote: > Hi, > > Very often, I open a lot of files to edit. When I exiting vim, vim > prompt me to save every file which contain changes not saved yet. So, > > - Is there plugin that could highlight

Re: changed-yet-not-saved-lines highlighting feature

2006-08-11 Thread Mark Woodward
Hi Gary, On Fri, 11 Aug 2006 13:20:15 -0700 Gary Johnson <[EMAIL PROTECTED]> wrote: > On 2006-08-10, Eddy Zhao <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Very often, I open a lot of files to edit. When I exiting vim, vim > > prompt me to save every file which contain changes not saved yet. > >

search a/b/c/d/e in a file

2006-08-11 Thread pannayar
To search the string say /a/b/c/d/e/f/g/h/i in a file, is there a way to do it without going to each / and escaping it to \/ I select and paste the string with my mouse, so it is a real pain to then go and escape each forward / -- View this message in context: http://www.nabble.com/search-a-b-c

Re: search a/b/c/d/e in a file

2006-08-11 Thread A.J.Mechelynck
pannayar wrote: To search the string say /a/b/c/d/e/f/g/h/i in a file, is there a way to do it without going to each / and escaping it to \/ I select and paste the string with my mouse, so it is a real pain to then go and escape each forward / :let @/ = escape('string with /slashes/, \backsla

Re: search a/b/c/d/e in a file

2006-08-11 Thread Tim Chase
To search the string say /a/b/c/d/e/f/g/h/i in a file, is there a way to do it without going to each / and escaping it to \/ :let @/ = escape('string with /slashes/, \backslashes\, .periods., *asterisks* etc.', '/\.*') n Building on Tony's good suggestion...it's a good one, and an

Re: search a/b/c/d/e in a file

2006-08-11 Thread A.J.Mechelynck
Tim Chase wrote: To search the string say /a/b/c/d/e/f/g/h/i in a file, is there a way to do it without going to each / and escaping it to \/ :let @/ = escape('string with /slashes/, \backslashes\, .periods., *asterisks* etc.', '/\.*') n Building on Tony's good suggestion...it's

Re: search a/b/c/d/e in a file

2006-08-11 Thread pannayar
The ?/a/b/c solution is really cool. I have had this question in my mind for a very long time and I cant believe I could not think of this ultra simple solution...! Thanks! A.J.Mechelynck wrote: > > Tim Chase wrote: To search the string say /a/b/c/d/e/f/g/h/i in a file, is there a way >

Updated version of Piet Delport's DiffOrig

2006-08-11 Thread Bill McCarthy
On Fri 11-Aug-06 6:55pm -0600, Mark Woodward wrote: >> This command was posted by Piet Delport a few years ago. I use it >> all the time. >> >> command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | >> wincmd p | diffthis >> >> Gary > > I can see why you use this all the time. BRILL

RE: Patch (Unofficial): Malformed characters in menu and toolbar when using zh_CN.GBK encoding under Linux

2006-08-11 Thread Bram Moolenaar
> Bram, you have an overflow in your signature :) > > -- > > hundred-and-one symptoms of being an internet addict: > > 102. When filling out your driver's license application, you give > > your IP address. hundred-and-one symptoms of being an internet addict: 256. You are able to write down

Re: failure notice

2006-08-11 Thread Bram Moolenaar
Edward L. Fox wrote: > Sorry for sending this mail for the second time because my previous > mail with attachment was rejected by the mail daemon. :-( > > On 8/11/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > [...] > > > > The menu.vim file should never change 'encoding'. It should load

Re: Patch (Unofficial): Malformed characters in menu and toolbar when using zh_CN.GBK encoding under Linux

2006-08-11 Thread Yakov Lerner
On 8/12/06, mwoehlke <[EMAIL PROTECTED]> wrote: Bram Moolenaar wrote: > hundred-and-one symptoms of being an internet addict: > 256. You are able to write down over 250 symptoms of being an internet > addict, even though they only asked for 101. So where is the complete list? ;-) I believ

Re: failure notice

2006-08-11 Thread A.J.Mechelynck
Bram Moolenaar wrote: Edward L. Fox wrote: [...] The menu.vim file should never change 'encoding'. It should load menus that are appropriate for the current 'encoding' and language. But gvim doesn't support an encoding named 'gbk'. If the system encoding is 'gbk', the menu and toolbar get mal