... The following will fold commented lines,including pre- and succeeding empty ones. All it needs is a correct syntax plugin. This can be slow, as noted at...
86162
A.Politz
politza@...
Jan 1, 2008 9:12 am
... fde=IsComment(v:lnum)?1:IsComment(prevnonblank(v:lnum-1))?1:IsComment(nextnonblank(v:lnum+1))?1:0 ... Added '[+-]1' to '*nonblank', which is what I...
86163
A.Politz
politza@...
Jan 1, 2008 10:54 am
... This might be a good place for the '%!' operator. ... hi User1 ctermbg=DarkCyan ctermfg=Black gui=Bold guibg=DarkBlue guifg=White au BufNewFile,BufRead *...
86164
Martin Lange
m.lange@...
Jan 1, 2008 11:27 am
... bashism ahead! Protect the innocent! You can fake a multiline comment in bash-scripts. Use a "here script", which is defined as command << token content to...
86165
A.Politz
politza@...
Jan 1, 2008 12:50 pm
... I tried to come up with such a custom intro. The biggest flaw maybe is, that I have not found a way to avoid wasting a bufnumber. I think the most of it is...
86166
Ben Schmidt
mail_ben_schmidt@...
Jan 1, 2008 12:53 pm
... LOL. What fun. Of course, the downside of most of the approaches everyone has mentioned is that they need the user to do work while writing the file. Nicer...
86167
A.Politz
politza@...
Jan 1, 2008 1:22 pm
... I just noticed, that this is wrong and the first solution is correct. I was to busy looking at the performance. -ap -- Ich hab geträumt, der Krieg wär...
86168
A.Politz
politza@...
Jan 1, 2008 1:31 pm
... Ok, here is a working and faster version. ... set fdm=expr set fde=FoldComments(v:lnum) func! FoldComments( lnum ) if getline('.') =~ '\S' return...
86169
arctgx
ural.b142@...
Jan 2, 2008 1:14 am
...after this discussion it seems that folding all comments isn't so basic operation and requires some special work. Thank you all very much for rich answer....
86170
AkGw
alickguo@...
Jan 2, 2008 3:04 am
In C source file we always expand table (set expandtab) , but how can we confirm if all TAB character has been expanded. Can we make TAB to be a visible...
86171
Ben Schmidt
mail_ben_schmidt@...
Jan 2, 2008 3:16 am
... The listchars setting is also relevant. See ... Smiles, Ben. Send instant messages to your online friends http://au.messenger.yahoo.com ...
86172
Ben Schmidt
mail_ben_schmidt@...
Jan 2, 2008 3:19 am
... See my earlier reply about making them visible. But there are some other things you could try: 1. searching for tabs with the / command. In normal mode do ...
86173
Tim Chase
vim@...
Jan 2, 2008 3:20 am
... It sounds like you're looking for ... (and ":set nolist" to turn it off, or ":set list!" to toggle it) You may also be interested in the 'listchars'...
86174
Kazuo Teramoto
kaz.rag@...
Jan 2, 2008 5:12 am
On Jan 2, 2008 1:19 AM, Tim Chase <vim@...> wrote:
> :set list
> :help 'list'
> :help 'listchars'
On Jan 2, 2008 1:16 AM, Ben Schmidt...
86175
Bill McCarthy
WJMc@...
Jan 2, 2008 6:02 am
... You already have many good answers. Searching is very simple with 3 keystrokes: /<tab><enter> If you find one, replace it with: r<space> Look for the next...
86176
Victor Cardona
v.cardona@...
Jan 2, 2008 6:11 am
... I am jumping into this discussion late, but I too am a Java Developer, and I had always wondered why certain words were flagged as errors. I had never...
86177
Leah
Lea0x.Diz@...
Jan 2, 2008 7:38 pm
I know it is a little off topics but both seem to be in same category and I dont wanna open a new topic. Thus,... I'm using version 6.2, and recently just...
86178
Charles E Campbell Jr
drchip@...
Jan 2, 2008 7:41 pm
... In addition to :set list, which others have already mentioned, there's SeeTab.vim (http://vim.sourceforge.net/scripts/script.php?script_id=628) which makes...
86179
A.Politz
politza@...
Jan 2, 2008 8:15 pm
... I think your vim version is simply not supported by this plugins ( to old ). You could check the requirement fields on the vim.org site or look in the...
86180
Charles E Campbell Jr
drchip@...
Jan 2, 2008 10:07 pm
... I'm afraid that I haven't gotten any feedback about this fix -- has anyone tried it yet? Happy New Year! Chip Campbell ...
86181
Charles E Campbell Jr
drchip@...
Jan 2, 2008 10:24 pm
... I just tried the following test using vimball v24d (available from http://mysite.verizon.net/astronaut/vim/index.html#VIMBALL): (made plugin/junkPlugin.vim...
86182
Bhatia, Sundeep
sundeep.bhatia@...
Jan 3, 2008 1:48 am
Hello We downloaded the GUI version of vim. But when we install it we get a simple application window and not the one with a gui that would have the pull down...
86183
Tony Mechelynck
antoine.mechelynck@...
Jan 3, 2008 2:02 am
... - Looks like your screen shot got lost. Can you upload it somewhere and send a URL? - When you do "vim --version" from the shell (or from cmd.exe on...
86184
Yegappan Lakshmanan
yegappanl@...
Jan 3, 2008 2:56 am
Hi, ... The MRU plugin uses the ":redir" command to generate the MRU file. Before echoing the filenames to the MRU file, the status line is cleared by echoing...
86185
Ali
Caffein@...
Jan 3, 2008 5:40 am
Hi guys, is there anyway to override a syntax keyword definitions with with a syntax match definition? I know the documentation explicitly states that the...
86186
Ag. D. Hatzimanikas
a.hatzim@...
Jan 3, 2008 5:58 am
Hi Dash, Excellent script and (at least for me) also a chance to learn/understand some (vim) base scripting, so many thanks. ... Additionally, I created the...
86187
Normandie Azucena
Normandie.Q.Azucena@...
Jan 3, 2008 7:50 am
hello vimmers, I just wanna ask if there is a way that I can use a separate file to use as pattern for auto completion. But I don't want to open this file. tnx...
86188
Normandie Azucena
Normandie.Q.Azucena@...
Jan 3, 2008 10:56 am
I browsed vim.org and somebody said that vim 7.0 had a native spell checker. how do I use this? tnx --~--~---------~--~----~------------~-------~--~----~ You...
86189
Mathieu Clabaut
mathieu.clabaut@...
Jan 3, 2008 11:57 am
... For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
:help spell will give you lot of...
86190
nicolas angel
n.aggelidis@...
Jan 3, 2008 12:22 pm
here is the link: http://groups.google.com/group/vim_use/browse_thread/thread/2fc77bbeec9fe948/040c6f34f519767e ...