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/space . Is there a way to sitch off hlsearch when

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 my

Re: half of hlsearch

2006-08-11 Thread Marc Weber
y/space . 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/space . 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/space . Is there a way to sitch off hlsearch when using y and other action

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/space .

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

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)

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 is possible

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

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/he

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 didn't

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 command

:Exp using tab

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:\dotab # 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

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, that raises a question

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

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 issues

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

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

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: Color change of :set cul or ctrl-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=black

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. A lot of

Re: Color change of :set cul or ctrl-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

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\}/

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 the

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. So, - Is

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:

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/,

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

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 to do

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. BRILLIANT! It

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 believe

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

Invoke _gvimrc.vim / unexpected expansions

2006-08-11 Thread jandl
Dear colleagues, I have 2 problems with gvim 1/ when I start gvim in Windows XP (double click on icon), gvim opens without invoking the _gvimrc.vim. I have _gvimrc.vim located in c:\programs\vim. I have also tried to put _gvimrc.vim into c:\programs\vim\vim70 but it was not automatically

Re: Invoke _gvimrc.vim / unexpected expansions

2006-08-11 Thread James Vega
On Fri, Aug 11, 2006 at 08:43:10AM +0200, jandl wrote: Dear colleagues, I have 2 problems with gvim 1/ when I start gvim in Windows XP (double click on icon), gvim opens without invoking the _gvimrc.vim. I have _gvimrc.vim located in c:\programs\vim. I have also tried to put _gvimrc.vim

Patch 7.0.051

2006-08-11 Thread Bram Moolenaar
Patch 7.0.051 (after 7.0.44) Problem:The Perl interface doesn't compile or doesn't work properly. Solution: Remove the spaces before #ifdef and avoid an empty line above it. Files: src/if_perl.xs *** ../vim-7.0.050/src/if_perl.xs Tue Aug 8 16:47:38 2006 --- src/if_perl.xs

Vim updates

2006-08-11 Thread Ali Akcaagac
Hello Bram, On my home Linux system I can easily compile and install every patch you release for Vim, same applies for the MorphOS versions that I from time to time create and release for our users but for Windows - which I need to use at work - I am stuck with the *.exe setup files as found on

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 over

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 menus that

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

2006-08-11 Thread mwoehlke
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? ;-) FIXME and XXX are two common keywords used to mark broken or

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 believe