Re: Understanding regxp implementation

2007-03-22 Thread Asiri Rathnayake
Nikolai, As you might know, the reg_comp() method is called twice when compiling a r.e; first to determine the size of the compiled expression and then to actually compile it. I was thinking if this can be used to our advantage, while on the first pass, we look for occurrences of special

Re: Understanding regxp implementation

2007-03-22 Thread Nikolai Weibull
On 3/22/07, Asiri Rathnayake [EMAIL PROTECTED] wrote: As you might know, the reg_comp() method is called twice when compiling a r.e; first to determine the size of the compiled expression and then to actually compile it. I was thinking if this can be used to our advantage, while on the first

Re: Understanding regxp implementation

2007-03-22 Thread Asiri Rathnayake
On Thu, 2007-03-22 at 09:26 +0100, Nikolai Weibull wrote: On 3/22/07, Asiri Rathnayake [EMAIL PROTECTED] wrote: As you might know, the reg_comp() method is called twice when compiling a r.e; first to determine the size of the compiled expression and then to actually compile it. I was

Bug report : Spell checking doesn't know about HTML entities

2007-03-22 Thread A.J.Mechelynck
In languages using accented letters, the Vim spell checker doesn't recognise HTML entities (in HTML text): for example, the letters outside of the ...; entities are highlighted as spellBad (after :set spell spelllang=fr) in the following French words: ougrave; meaning:

vimtutor suggestion

2007-03-22 Thread Shannon -jj Behrens
In vimtutor, I see the following: A short list of motions: w - until the start of the next word, EXCLUDING its first character. e - to the end of the current word, INCLUDING the last character. $ - to the end of the line, INCLUDING the last character. I think we should add b after w,

Re: Bug report : Spell checking doesn't know about HTML entities

2007-03-22 Thread Bram Moolenaar
Tony Mechelynck wrote: In languages using accented letters, the Vim spell checker doesn't recognise HTML entities (in HTML text): for example, the letters outside of the ...; entities are highlighted as spellBad (after :set spell spelllang=fr) in the following French words: ougrave;

Re: Understanding regxp implementation

2007-03-22 Thread Bram Moolenaar
Nikolai Weibull wrote: On 3/22/07, Asiri Rathnayake [EMAIL PROTECTED] wrote: As you might know, the reg_comp() method is called twice when compiling a r.e; first to determine the size of the compiled expression and then to actually compile it. I was thinking if this can be used to our

Re: Bug report : Spell checking doesn't know about HTML entities

2007-03-22 Thread François Pinard
[Bram Moolenar] Tony Mechelynck wrote: In languages using accented letters, the Vim spell checker doesn't recognise HTML entities (in HTML text) [...] You'll have to check if using and ; in the middle of a word is causing trouble. Adding them to word characters will probably create

Re: Understanding regxp implementation

2007-03-22 Thread Asiri Rathnayake
On Thu, 2007-03-22 at 22:21 +0100, Bram Moolenaar wrote: Adding a third matcher won't happen soon, and is a big change. It's not really needed to prepare for that. The disadvantage of using a function pointer is that in the place where it's used you only see:

Re: question about search

2007-03-22 Thread Dave Land
On Mar 21, 2007, at 11:44 PM, A.J.Mechelynck wrote: Dave Land wrote: Shawn Vim friends, On Mar 21, 2007, at 6:21 PM, shawn bright wrote: cool, thanks, i knew there had to be something. And it keeps getting better. Due to Vim's extensive programmability and keystroke mapping and the

Re: question about search

2007-03-22 Thread A.J.Mechelynck
Dave Land wrote: On Mar 21, 2007, at 11:44 PM, A.J.Mechelynck wrote: Dave Land wrote: Shawn Vim friends, On Mar 21, 2007, at 6:21 PM, shawn bright wrote: cool, thanks, i knew there had to be something. And it keeps getting better. Due to Vim's extensive programmability and keystroke

Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
Hi, I use Vim 7.0 (on Mac OS 10.4.9). Spell checking works perfectly, however, not when editing HTML files. Even after typing :setlocal spell spelllang=en_us, I don't get any error marks. Other files, such as plain text or LaTeX, work perfectly with spell checking. Any idea why this could be

Re: Spell check not working when editing HTML

2007-03-22 Thread A.J.Mechelynck
Claus Atzenbeck wrote: Hi, I use Vim 7.0 (on Mac OS 10.4.9). Spell checking works perfectly, however, not when editing HTML files. Even after typing :setlocal spell spelllang=en_us, I don't get any error marks. Other files, such as plain text or LaTeX, work perfectly with spell checking. Any

Re: Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
On Thu, 22 Mar 2007, Claus Atzenbeck wrote: I use Vim 7.0 (on Mac OS 10.4.9). Spell checking works perfectly, however, not when editing HTML files. Even after typing :setlocal spell spelllang=en_us, I don't get any error marks. I found a solution shortly after sending this e-mail:

Masking in context for spell check -- was:Re: Spell check not working when editing HTML

2007-03-22 Thread Claus Atzenbeck
On Thu, 22 Mar 2007, A.J.Mechelynck wrote: However, I notice that the spell checker doesn't understand entities: ougrave; is highlighted as a misspelling even though où is a valid word in modern French. In fact, I have the same problem with LaTeX documents: For instance, \a (or even a with

Re: Count characters

2007-03-22 Thread Jean-Rene David
* Harald Kröll [2007.03.22 13:30]: Is there some function or script to count characters (letters without whitespaces) in vim? One way is to use the 'substitute' command's ability to tell you how many items it replaced. So if you type: :%s/\S//g You will get a message saying how many non-blank

Re: Customizing vim: How to change the char before commands

2007-03-22 Thread Jean-Rene David
* Some user [2007.03.22 15:00]: RANT Though I don't really get the reason why every command is preceded by colon. Not to nitpick, but commands themselves don't really care about the colon. The colon is used to *change mode*. In normal mode, you can just type away your commands

Re: Count characters

2007-03-22 Thread Andy Wokula
Tim Chase schrieb: Is there some function or script to count characters (letters without whitespaces) in vim? For example Kile the Latex Editor has such a feature to control how long texts are. You can use :%s/\w//g which will report back X substitutions on Y lines. X represents the

IncSearch doesn't work (newbie)

2007-03-22 Thread flope
Hi, I am new using VIM ... to be precise I use GVIM. My platform: Ubuntu 6.10, VIM 7 I made my own .gvimrc file (see below) and Incsearch is not working. What am I doing wrong? It should work when using :/pattern, shouldn't it? I checked :set all and incsearch is on. Is something related to the

Re: Error

2007-03-22 Thread Andreas Bakurov
felipe fernandez wrote: I update vim 6.3 to 7.0 on my debian. The error is Se ha detectado un error al procesar /usr/share/vim/vim70/menu.vim: línea 150 E121: Variable sin definir: paste#paste_cmd. E15: Expresión no válida: 'vnoremenu script Edit.PasteTab+gP^I' . paste#paste_cmd['v']

Re: Plug-ins for C++ Development

2007-03-22 Thread fREW
On 3/22/07, Andreas Bakurov [EMAIL PROTECTED] wrote: Hi! What is a good set of plug-ins for vim in order to make it suitable for productive C++ editing for small programs (around 15-20 .cpp files). Navigation enhancements are helpful in such cases: * I need some kind of method tree where

Re: Customizing vim: How to change the char before commands

2007-03-22 Thread panshizhu
Some user [EMAIL PROTECTED] 写于 2007-03-22 05:14:30: I'm new to Vim. I want to change the character before commands. For example saving is done by: :w enter Can it be made slightly easier by just pressing 'g' or some other key that's not taken? I don't know why every command has to be

question about omni-complete

2007-03-22 Thread shawn bright
lo there, i just discovered omni-complete . i am starting to use vim for some python and ruby scripting for work. i found omni-complete. I can type time.ctrl-x ctrl-o and a list of funtions pop up for me to choose. but how do i navigate the list without using arrow keys ? it is getting kinda