Re: Formating comments

2010-11-07 Thread Stahlman Family
Fernando Basso wrote: Let's say I'm writing a comment, and it takes two lines long. I start like this: /* When user clicks, remove both 'narrow' and 'large' css classes and (I hit Return here, and continue on the next line) * make the page use the default styling. */ Then I notice that I

Re: Coloring a line by keystroke: TODO file in vim

2010-10-30 Thread Stahlman Family
Gareth Oakes wrote: On Oct 14, 10:18 am, Stahlman Family brettstahl...@comcast.net wrote: Christian Brabandt wrote: Hi Rahul! On Mi, 13 Okt 2010, Rahul wrote: I maintain a simple Todo file using vim. Each line has a task. Sometimes for an important task it would be nice if I had a keystroke

Re: Coloring a line by keystroke: TODO file in vim

2010-10-29 Thread Stahlman Family
Rahul wrote: ... Worked like a charm! ;-) Yes,Rahul, you could certainly use Txtfmt for this purpose. Txtfmt gives you a sort of rich text highlighting capability in any sort of text file: you can apply foreground and background colors, as well as all combinations of bold, underline, italic,

Re: Buggy display of non-breaking space character in several single-byte encodings

2010-10-23 Thread Stahlman Family
Bram Moolenaar wrote: Brett Stahlman wrote: I've noticed that Vim displays the NO-BREAK SPACE character (Unicode 00A0) incorrectly for several single-byte encodings (e.g., cp437, cp850 and cp775), which typically encode it as 0xFF. To reproduce... :set enc=cp850 Enter the following 2

Buggy display of non-breaking space character in several single-byte encodings

2010-10-22 Thread Stahlman Family
I've noticed that Vim displays the NO-BREAK SPACE character (Unicode 00A0) incorrectly for several single-byte encodings (e.g., cp437, cp850 and cp775), which typically encode it as 0xFF. To reproduce... :set enc=cp850 Enter the following 2 lines in an empty buffer... ff2345 12345 ...where ff

Re: building vim with gui on Fedora 13

2010-09-30 Thread Stahlman Family
Steven wrote: Hi, I am having trouble building vim with gui on Fedora 13. I am using ./configure --enable-gui=auto --with-features=huge --prefix= $HOME/myvim but I get checking for X... (cached) no checking if X11 header files can be found... no checking --enable-gui argument... no GUI

Re: How to see make output while make is in progress ?

2010-09-29 Thread Stahlman Family
Timothy Madden wrote: On 05.09.2010 15:25, Timothy Madden wrote: Hello My gvim 7.2 on Windows 7 first runs the entire make and only after can I see make out. Can I get it to show lines output by make while make is in progress ? For example vim 7.0.237 has this behavior by default on Linux

Re: How to highlight different keywords with different colors?

2010-09-25 Thread Stahlman Family
Sampan Xu wrote: ...[snip]... Have you tried Txtfmt (The Vim Highlighter)? http://www.vim.org/scripts/script.php?script_id=2208 It's a token-based highlighter that lets you set the foreground/background color, as well as the format attributes (bold, underline, italic, etc...) of

Re: 答复: Re: Why Vimball archives are e vil?

2010-09-25 Thread Stahlman Family
panshi...@routon.com wrote: vim_use@googlegroups.com 写于 2010-09-25 19:44:03: I ask you; What is wrong with tar.gz? It is not easily extractable on Windows, if you don't have any extra archiver installed. And this is not always possible to install them. So I release my plugins as .vba. Does

Re: Why Vimball archives are evil?

2010-09-25 Thread Stahlman Family
panshi...@routon.com wrote: vim_use@googlegroups.com 写于 2010-09-26 09:51:37: The more steps required, the more likely he is to move on to something else without trying the plugin. Agree, so why not simply provide .vim files, which does not need to be decompressed at all? Well, in my case,

Re: 答复: Re: Why Vimball archives are e vil?

2010-09-25 Thread Stahlman Family
bill lam wrote: Сбт, 25 Сен 2010, Stahlman Family писал(а): more likely he is to move on to something else without trying the plugin. I agree this likely to happen, but it is also likely that some people who will just move on without trying the plugin if it is a vimball format. FWIW I'm one

Re: How to highlight different keywords with different colors?

2010-09-24 Thread Stahlman Family
robert song wrote: Hi, everyone. Sometimes it's useful to display different keywords in different colors, here I can use * to highlight the word under cursor, but how to highlight the other keywords in some other colors at the same time ? Have you tried Txtfmt (The Vim Highlighter)?

Re: Why Vimball archives are evil?

2010-09-24 Thread Stahlman Family
Tom wrote: For example, now that many users (at least some that I know) are using the plugin loader pathogen, all the plugins are installed as ~/.vim/plugin_name/ftplugin/foo.vim. Installing with a vimball would place the files in their original vim directories. I ask you; What is wrong

Re: Why Vimball archives are evil?

2010-09-24 Thread Stahlman Family
Jakson A. Aquino wrote: ...[snip]... Is there an official recommendation on this subject? I haven't noticed any guidelines on the scripts upload page, which simply refers to a collection of bundled files. I seem to remember at some point seeing a script page that provided both .zip and some

Re: can't highlight background of entire region, only where text is

2010-09-16 Thread Stahlman Family
Christian Brabandt wrote: On Thu, September 16, 2010 12:10 am, hsitz wrote: I have Vim documents that have codeblock areas that use 'syntax include' regions to have different syntax highlighting from the main document. For example, I have a syntax region named 'pyregion' defined that I use

Possible bug with wildcard expansion patterns on command line: question mark (match any single character) metacharacter doesn't seem to work

2010-09-03 Thread Stahlman Family
According to the help on cmdline-completion... The 'wildchar' option defaults to Tab (CTRL-E when in Vi compatible mode; in a previous version Esc was used). In the pattern standard wildcards '*' and '?' are accepted. '*' matches any string, '?' matches exactly one character. The ?

Re: Forcing Vim to use findstr as 'grepprg' on Windows

2010-09-01 Thread Stahlman Family
Kyro El wrote: I have trouble forcing Vim to use findstr /N as grepprg on Windows. I don't know what tricks does Vim do under the hood, but my grepprg is set to 'grep -nH $*' by default. However, while I do have a copy of grep in my path, it doesn't support the '-H' option. I then put 'set

Re: Possible bug: cchar not applied to region start token when cole=2

2010-08-24 Thread Stahlman Family
Ben Fritz wrote: On Aug 21, 9:15 am, Stahlman Family brettstahl...@comcast.net wrote: Now comes the unexpected part... With the cursor on the 2nd line (the one containing the yz region), and Vim in normal mode, the region end token (Z) is displayed as cchar (`-') (as expected), but the start

Possible bug: cchar not applied to region start token when cole=2

2010-08-21 Thread Stahlman Family
Consider the following example... --- Sample text file --- ABC Just after an abc match Y Inside a yz region Z --- Syntax file --- syn match abc /ABC/ conceal cchar=- hi link abc Comment syn region yz matchgroup=yz_ends start=/Y/ end=/Z/ concealends cchar=- hi link yz

Re: key binding for bash the vim way

2010-08-17 Thread Stahlman Family
aleCodd wrote: if i want to customise and define my _own_ mapping for the command line, is there a way to define these mapping like in vim i.e. :noremap or :noabbreviate etc. or do i have to learn the gun readline style to do this.. i don't want to learn a new style in order to get further

Re: Writing files without EOL

2010-08-15 Thread Stahlman Family
Peter Hodge wrote: Dear Vimmers, Is there a way to make vim write a file using dos line endings (CR NL) but *without* the EOL at the end? Isn't this just another way of saying mac format? :set ff=mac :help ff Brett Stahlman Currently it seems vim will only let me: A) Add newlines for

Re: Writing files without EOL

2010-08-15 Thread Stahlman Family
Stahlman Family wrote: Peter Hodge wrote: Dear Vimmers, Is there a way to make vim write a file using dos line endings (CR NL) but *without* the EOL at the end? Isn't this just another way of saying mac format? Ah. It occurred to me after I'd read Sven's reply that you probably meant

Re: Problem about OmniCppComplete

2010-08-05 Thread Stahlman Family
Libo Song wrote: On Mon, Jul 26, 2010 at 4:35 AM, Liu Lei orphen.lei...@gmail.com wrote: Hi, All: I'm using VIM+Cscope+Ctags+OmniCppComplete for coding. But, I found that the OmniCppComplete can NOT complete the anonymous members in struct/union. Example.

Re: What's the simplest way to do this search?

2010-08-05 Thread Stahlman Family
Xell Liu wrote: Hi all, For example, when I want to search all letters and digits (i.e. all [:alnum:] ) except the two letters a and b (without quotes), how should I do that instead of stupidly enumerating all the characters I want? The real question I want to ask is: 1. The items I want to

Re: What's the simplest way to do this search?

2010-08-05 Thread Stahlman Family
Stahlman Family wrote: Xell Liu wrote: Hi all, For example, when I want to search all letters and digits (i.e. all [:alnum:] ) except the two letters a and b (without quotes), how should I do that instead of stupidly enumerating all the characters I want? The real question I want to ask

Re: Is read-only text possible in vim?

2010-07-27 Thread Stahlman Family
On Tue, 2010-07-27 at 15:55 +0800, winterTTr wrote: I know that we can use the set nomodifiable to make a buffer read-only, which makes all the text in it not modifiable. But is it possible to make some text in a buffer read-only but not for the whole buffer? I mean maybe we can bind a

Re: Simplifying interleaved regions with :syn

2010-06-13 Thread Stahlman Family
Andres Perera wrote: Hello, On Fri, Jun 11, 2010 at 10:55:13AM -0700, Brett Stahlman wrote: To support all possible permutations of 8 fg colors, 8 bg colors, and bold/underline/italic requires well over 3000 regions. Txtfmt supports a configuration (disabled by default for performance

Re: error in the help files (various.txt line 193)

2010-06-12 Thread Stahlman Family
aleCodd wrote: instead of 'printable' it should be 'unprintable'. No. 'Printable' is correct. It is saying that without :execute, you would need to type... :normal CTRL-W CTRL-W ...where each CTRL-W represents a single Control character typed at the keyboard. The :execute command lets

Re: Highlighting text between tags

2010-06-11 Thread Stahlman Family
Adriaan wrote: Dear Vim Wizards, I've a text which is tagged with an XML/HTML like syntax, like this: Lorem ipsum A dolor sit amet, consectetur adipisicing /A elit, sed B do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis /B nostrud exercitation

Re: Possible bug: Newly-edited buffer gets its 'modifiable' setting from buffer in which :edit or :split command is executed

2010-06-07 Thread Stahlman Family
Ben Fritz wrote: On Jun 6, 10:19 pm, Stahlman Family brettstahl...@comcast.net wrote: Steps to reproduce... :e file1 :set noma :sp file2 At this point, `set ma?' indicates that file2's buffer is 'nomodifiable'. This seems strange to me, given that the 'modifiable' option is local to buffer

Re: UTF-8 mess up my maps definitions

2010-06-07 Thread Stahlman Family
Pablo Giménez wrote: Hello vims. I have recently begin to use UTF-8 as the default encoding I picked up this snippet and put it in my vimrc to enable it: if has(multi_byte) if termencoding == let termencoding = encoding endif set encoding=utf-8 setglobal fileencoding=utf-8 bomb

Possible bug: Newly-edited buffer gets its 'modifiable' setting from buffer in which :edit or :split command is executed

2010-06-06 Thread Stahlman Family
Steps to reproduce... :e file1 :set noma :sp file2 At this point, `set ma?' indicates that file2's buffer is 'nomodifiable'. This seems strange to me, given that the 'modifiable' option is local to buffer, and file1 and file2 obviously do not share a buffer. The result is the same when :e is

Re: Formatting help files

2010-06-03 Thread Stahlman Family
Pablo Giménez wrote: ...[snip]... Hmmm... That's very strange. Are you sure that the `hi Ignore ctermfg=black' command is never executed? I'm wondering whether it's possible that something else is changing the Ignore ctermfg setting after the `hi Ignore' command... There are several ways

Re: Formatting help files

2010-06-02 Thread Stahlman Family
Pablo Giménez wrote: 2010/6/2 Stahlman Family brettstahl...@comcast.net Pablo Giménez wrote: ...[snip]... Pablo, Thanks for the screenshot. I'll check into it tonight when I have access to a real terminal on my Linux system at home. Do you mind telling me what colorscheme and terminal

Re: Formatting help files

2010-06-02 Thread Stahlman Family
Stahlman Family wrote: ...[snip]... I seem to remember urxvt supporting italic, but it doesn't seem to be working for me now. I'll investigate and get back with you... Ah... I didn't have TERM set to rxvt-unicode. If you're using urxvt and TERM=rxvt-unicode when Vim starts up, italic

Re: Formatting help files

2010-06-01 Thread Stahlman Family
Pablo Giménez wrote: Hi Brett. I am checking some text formatted with tftfmt in a terminal and for some colorschemes the characters used to format the test appear visible in the buffer. Pablo, The following section in the Txtfmt help gives a detailed explanation... :help

Re: Formatting help files

2010-06-01 Thread Stahlman Family
Pablo Giménez wrote: 2010/5/28 Stahlman Family brettstahl...@comcast.net Pablo Giménez wrote: Hi. I have some help files along with my scripts and I wanto give them a better formatting. So far the text layout is not too bad, but I am wondering is there is anyway to make some letter

Re: Formatting help files

2010-06-01 Thread Stahlman Family
Pablo Giménez wrote: ...[snip]... Pablo, Thanks for the screenshot. I'll check into it tonight when I have access to a real terminal on my Linux system at home. Do you mind telling me what colorscheme and terminal you're using? Also, what type of region is being applied to the text with the

Re: Regex matching the first occurrence of a string

2010-05-29 Thread Stahlman Family
ShayAllen wrote: I want to match everything between and including Begin and End. There are several blocks in the file: Begin dfsdfsdf sdfsdf End Begin sasdfsa sdfgsd hghfgh End My best guess so far: :%s/Begin\_.*\(End\)\{-1}/This was one block/ Try this...

Re: Formatting help files

2010-05-28 Thread Stahlman Family
Pablo Giménez wrote: Hi. I have some help files along with my scripts and I wanto give them a better formatting. So far the text layout is not too bad, but I am wondering is there is anyway to make some letter to appear as bold or italic, like when you write a wiki. Is this possible with vim

Re: Arranging split windows

2010-05-21 Thread Stahlman Family
Christian Brabandt wrote: On Fri, May 21, 2010 10:13 am, David Chanters wrote: Sometimes i split vim horizontally -- and then i often wished i could create a vertical split on one side of the screen that spanned the entire height of vim -- but of course splitting vim vertically creates a new

Re: How to edit in the minibuffer?

2010-05-02 Thread Stahlman Family
xiaweitang wrote: Hi, I have been using vim, then emacs, now vim again. In emacs, I can still use the editing commands like Alt+B in the command windows (mini buffer), but in vim I can't use the normal editting command. Am I missing something here? :help cmdline-window Hope it helps...

Re: Can't set directory path for Notes plugin

2010-04-16 Thread Stahlman Family
BC wrote: I installed the Notes plugin by Hari Krishna in gvim on Windows Vista 64, but I can't set the path to the directory for storing the notes. I've created directories named notes in several locations, but no matter what path I try in my _gvimrc, I get this error on reopening Gvim:

Re: select/copy a line every 6 lines

2010-04-14 Thread Stahlman Family
John Little wrote: Assuming the pattern /^-$/ matches lines 1,7,13,19 and so on, you can use g with relative line numbers to delete lines. For File A, copy and use :g/^-$/d2|+,+3d for File B, copy and use :g/^-$/d3|+,+2d for File C, copy and use :g/^-$/d4|+d for File D, copy and

Re: select/copy a line every 6 lines

2010-04-14 Thread Stahlman Family
Christian Brabandt wrote: Hi Stahlman! On Mi, 14 Apr 2010, Stahlman Family wrote: ...[snip]... Or, to do it all in one fell swoop from the shell... for i in 3 4 5 6; do sed -n $i~6p test.txt test$((i-2)).out; done You could do the same thing from within Vim by editing the file

Re: App to help with Deliberate Practice / Mavis Beacon Teaches Vim?

2010-04-09 Thread Stahlman Family
Tony Mechelynck wrote: On 08/04/10 12:49, John Little wrote: On Apr 8, 2:44 pm, Duane Johnsonduane.john...@gmail.com wrote: When I learned to touch type in high school... ...practice those ones over and over again... I think you're swimming against the strengths of vim. In vim if you

Re: Possible omnicppcomplete bug: Extremely slow namespace search when path contains ** (even when OmniCpp_NamespaceSearch 2)

2010-03-27 Thread Stahlman Family
Now that someone's taken an interest in this plugin again, I thought I'd bump a couple of my posts, which had previously been ignored... Thanks, Brett Stahlman Brett Stahlman wrote: On Aug 6, 9:15 am, Brett Stahlman brettstahl...@comcast.net wrote: ...snip... Note that in the test case

Re: Feature suggestion for omnicppcomplete: support for keyword aliasing

2010-03-27 Thread Stahlman Family
MasterKey, Here's another previously ignored OmniCppComplete post... You asked for it... ;-) Thanks, Brett Stahlman Brett Stahlman wrote: I've found the omnicppcomplete plugin to be very useful; however, I've recently experienced a problem. The problem isn't due to any bug in

Re: Sum a colonn number

2010-03-19 Thread Stahlman Family
epanda wrote: Hi, I have some lines like that foo0.5 foobar 1 bar0.5 Is it possible to sum which result as 2 by using regexp and writing the result line below all lines checked ? foo0.5 foobar 1 bar0.5

Re: Sum a colonn number

2010-03-19 Thread Stahlman Family
epanda wrote: I am under Windows So am I when I'm at work. That shouldn't prevent you from using Unix tools. In my opinion, if you want to harness the full power of Vim, you should have Cygwin or some other sort of Unix emulation installed, and should have 'shell' pointing to a unix-style

Re: Formatting unordered lists

2010-03-17 Thread Stahlman Family
AK wrote: Brett Stahlman wrote: On Mar 16, 7:31 am, Rainy andrei@gmail.com wrote: Hi, I'm trying to use 'formatlistpat' to format unordered lists with '-' as a bullet: :set flp=^\s*-\s* You need to escape the backslashes... :set flp=^\\s*-\\s* :help option-backslash Also, be

Re: Formatting unordered lists

2010-03-17 Thread Stahlman Family
AK wrote: Stahlman Family wrote: ...[snip]... Excellent, it does work when exceeding tw and with 'gq' command. I was in fact trying to trigger it with Return and didn't realize that wouldn't work.. Thanks very much, this was a big annoyance to me for a while.. No problem. Brett

Re: how to remove second column

2010-03-15 Thread Stahlman Family
Adrian Johnson wrote: Hi: While using Excel for removing 2nd column, it saves all weird characters in other columns. It is driving me crazy. How do I remove/delete column 2 in a tab delim file using vim. How about this: %s/^[^\t]*\zs\t[^\t]*\ze//g Brett Stahlman thank you. Adrian

Re: De-select search highlight

2010-02-27 Thread Stahlman Family
rameo wrote: I would like to find a way to de-select the search highlight. The only way I found is to do another search which isn't in the text p.e. /f Isn't there another way to de-select the search highlight? :nohls :help nohlsearch Brett Stahlman -- You received this

Re: Saving signs

2010-02-24 Thread Stahlman Family
Lrt wrote: Is there any way to save SIGNed code, so that it can persists between sessions? Out of curiosity, what is SIGNed code? Brett Stahlman -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Open Hightlighted Text in Vim

2010-02-23 Thread Stahlman Family
williey wrote: How can I open a highlighted text string in Vim? Can I set an option in my .vimrc file to do this? Willie, The Txtfmt plugin allows you to highlight arbitrary text strings in Vim: Txtfmt (The Vim Highlighter): http://www.vim.org/scripts/script.php?script_id=2208

Re: Open Hightlighted Text in Vim

2010-02-22 Thread Stahlman Family
williey wrote: How can I open a highlighted text string in Vim? Can I set an option in my .vimrc file to do this? Willie, Can you elaborate on what you mean by open a highlighted text string? Thanks, Brett Stahlman Thanks, Willie Yarbrough -- You received this message from the vim_use

Re: Generate Header

2010-02-21 Thread Stahlman Family
epanda wrote: Hi, I would like to generate my header ; func! GenereHeader() let l:header = \** . \n let l:header .= \\\* ... . \n let l:header .= \\\* @author ONEPERSON . \n let l:header .= \\\* . \n call setline(line('.'),l:header .

Re: 'live' colour changing in vim

2010-02-09 Thread Stahlman Family
Dan S wrote: Hi - I have a project where I'd like code in vim to be coloured, with the colours changing in real time (to reflect some audio-related data being generated). For example, say the text Merti() represents an audio object - I'd like to be able to update the colouring of that text to

Empty [No Name] buffer discarded by :hide edit, but not by :hide -- bug or design?

2010-02-07 Thread Stahlman Family
Consider the following test sequence... :new :ls 1 #a [No Name]line 1 2 %a [No Name]line 1 :hide :ls 1 %a [No Name]line 1 2 h [No Name]line 0 :new somefile.txt :ls 1 #a [No Name]

Re: Empty [No Name] buffer discarded by :hide edit, but not by :hide -- bug or design?

2010-02-07 Thread Stahlman Family
Andy Wokula wrote: Am 07.02.2010 17:16, schrieb Stahlman Family: Consider the following test sequence... :new :ls 1 #a [No Name] line 1 2 %a [No Name] line 1 :hide :ls 1 %a [No Name] line 1 2 h [No Name] line 0 :new somefile.txt :ls 1 #a [No Name] line 1 2 h [No Name] line 0 3 %a somefile.txt

Re: Syntax region problem

2010-02-03 Thread Stahlman Family
Gregor Uhlenheuer wrote: Hi, I have got a small problem with a syntax region meant to match some nested comments in a syntax script. That's the line: syn region mComment start=/\/\*/ end=/\*\// contains=mComment short example: /* this should be highlighted as a /* comment */ */ this text

Re: Possible bug affecting append/insert commands within :global

2010-02-03 Thread Stahlman Family
Andy Wokula wrote: Am 23.01.2010 17:16, schrieb Brett Stahlman: From the Vim help on :append and :insert... When these commands are used with :global or :vglobal then the lines are obtained from the text following the command. Separate lines with a NL escaped with a backslash:

Re: Possible bug affecting append/insert commands within :global

2010-02-03 Thread Stahlman Family
Tim Chase wrote: Stahlman Family wrote: Andy Wokula wrote: Am 23.01.2010 17:16, schrieb Brett Stahlman: From the Vim help on :append and :insert... A similar thread from July 2009 Subject: :global problem http://groups.google.com/group/vim_use/browse_thread/thread/2ff60cd19b813e62 Ah

:new with a count doesn't respect 'equalalways'

2010-01-27 Thread Stahlman Family
When :new is used *without* a count and 'equalalways' is set, the height of all existing windows is reduced to make room for the new one. (Well, technically, it's possible that the height of a small window will be increased, but the bottom-line is that, because of 'equalalways', all of the

Re: Possible bug affecting append/insert commands within :global

2010-01-25 Thread Stahlman Family
Christian Brabandt wrote: Hi Brett! [...] My understanding is that this caveat applies to :insert generally, not only to :insert within a :global command. Note, however, that I get errors for the :global usage even when it does not appear within one of those constructs. Were you saying

Re: Possible bug affecting append/insert commands within :global

2010-01-23 Thread Stahlman Family
...snip... Is this a bug, or is there an option setting that could be preventing the example from working as expected? Note that what I really want is to use :append and :insert *without* global: e.g., insert one line another line . ...And this actually does what I want. I hesitate to use

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Stahlman Family
Peter Berntsen wrote: Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I comment out the code for that in the vimrc file like this. if has(vms) set nobackup do not keep a backup file, use

Re: Txtfmt-plugin and txtfmtBgColor

2010-01-13 Thread Stahlman Family
Michael Maurer wrote: On Thu, Jan 7, 2010 at 2:34 PM, Stahlman Family brettstahl...@comcast.net wrote: Michael, Although you may wish to customize the map sequence (as described in my previous post) simply because Ctrl-Alt-ß is harder to type than Ctrl-\, I'm wondering whether there could

Re: Perl Colour Scheme

2010-01-12 Thread Stahlman Family
Paul wrote: On Tue, Jan 12, 2010 at 12:35:18PM +0100, Dennis Benzinger wrote: To switch back to the default colorscheme you can use :colorscheme default . Read :help colorscheme Hi Dennis, I tried that. It did change the colours but not to the previous ones. For example, the shebang line,

Re: Txtfmt-plugin and txtfmtBgColor

2010-01-04 Thread Stahlman Family
Michael Maurer wrote: The following concerns the Txtfmt (The Vim Highlighter)-plugin by Brett Stahlmann. I hope this is not too specific for this list. I'm using Txtfmt with GVim under Windows XP SP3. After enabling all background colors via let b:txtfmt_cfg_bgcolormask= Michael,

Re: Patterns, variables and strange behavior of some thing.

2010-01-02 Thread Stahlman Family
jojahti wrote: I have tried write highligting pattern, than search variables. \(\(int\|long\|short\|char\|void\|double\)[[:space:]]\+\)\@=[^[:space:]^(^).]\+\([[:space:]]\)\@ = Then the pattern, that search this variable in other places of the file.

Re: Patterns, variables and strange behavior of some thing.

2010-01-02 Thread Stahlman Family
Stahlman Family wrote: jojahti wrote: I have tried write highligting pattern, than search variables. \(\(int\|long\|short\|char\|void\|double\)[[:space:]]\+\)\@=[^[:space:]^(^).]\+\([[:space:]]\)\@ = Then the pattern, that search this variable in other places of the file. \(\(int

Re: Patterns, variables and strange behavior of some thing.

2010-01-02 Thread Stahlman Family
jojahti wrote: There's a better way to do what you're trying to do, which uses \zs instead of \@=. Thanks. Mmmm. But if i use \zs instead \@= in next example - he not work at all. \(\(int\|long\|short\|char\|void\|double\)[[:space:]]\+\)\@=[^[:space:]^(^).]\+\([[:space:]]\)\...@= But

Re: Is vim just for programmers?

2010-01-01 Thread Stahlman Family
Anthony Campbell wrote: Having recently rather unexpectedly found myself back on this list after being unable to get on it for several years, I seem to see a difference in emphasis. Most people who post here appear to be programmers, whereas previously there were other kinds of users as

Re: Patterns, variables and strange behavior of some thing.

2010-01-01 Thread Stahlman Family
jojahti wrote: I have tried write highligting pattern, than search variables. \(\(int\|long\|short\|char\|void\|double\)[[:space:]]\+\)\@=[^[:space:]^(^).]\+\([[:space:]]\)\@ = Then the pattern, that search this variable in other places of the file.

Re: Patterns, variables and strange behavior of some thing.

2010-01-01 Thread Stahlman Family
Ben Fritz wrote: On Jan 1, 12:28 pm, Stahlman Family brettstahl...@comcast.net wrote: I believe you may have uncovered a bug. It can be demonstrated with an even simpler example... \(i\(.\)\)\@=\2 ...which will match just after an i followed by any character, even when the character

Re: How to insert a line without moving the cursor?

2009-12-30 Thread Stahlman Family
Peng Yu wrote: o or O will move the cursor. Is there a command that don't move the cursor? If all you're trying to do is create the line, then perhaps something like... :call append(line('.'), '') :help append() Brett Stahlman -- You received this message from the vim_use maillist.

Re: How escape chars in strings in functions

2009-12-30 Thread Stahlman Family
Nick wrote: Hi all, Vim 7.2 on Linux. I'm having problems getting my head around how to escape chars in a string used within a function. BTW, I'm a programmer and experienced vim user, but new to vim scripting. I want to insert some html tags at current cursor location, not the next

Re: syntax highlight :g/pattern/p in separate buffer?

2009-12-19 Thread Stahlman Family
Reckoner wrote: Hi, I use :g/pattern/p frequently to see where functions are used in a very large program. It would be very helpful to be able to see the output of this in a separate buffer with corresponding syntax highlighting. Is this possible? Is there a plug-in for this? You

Re: Highlighting many items

2009-12-05 Thread Stahlman Family
Tony Mechelynck wrote: On 17/11/09 16:55, Jürgen Krämer wrote: Hi, Yogi wrote: I want to be able to highlight bold, italics, and underlined words in a text file. My solution was to use ...snip... Any ideas how I can do it? Do I need to write a syntax file for this? you can define up

Re: :let and :set with whitespaces

2009-12-01 Thread Stahlman Family
Aarto Matti wrote: Hi, I can freely use whitespaces with let command, both let my_var = 1 and let my_var=1 are equal correct, but something like set tabstop = 4 is impossible. Any reason why there are such restrictions in VimL? Aarto, You can use arbitrary expressions on the rhs if you

Re: Howto change selected text's color background ?

2009-11-09 Thread Stahlman Family
Stahlman Family wrote: fritzophrenic wrote: On Dec 10, 7:29 am, jack jack.mort...@gmail.com wrote: sorry gays for my misleading request, what i want is how to change the background colors of some lines Vim is not really meant to do that kind of thing...it's a text editor, not a word

Re: How to confine search to highlighted text?

2009-11-04 Thread Stahlman Family
Peng Yu wrote: I can copy highlighted text. I'm wondering if there is a way to search only in highlighted text. Use the \%V regex assertion :help /\%V Brett Stahlman --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more

Re: Resize To Cursor

2009-11-03 Thread Stahlman Family
Tony Mechelynck wrote: On 06/10/09 13:43, Stahlman Family wrote: Paul wrote: On Mon, 5 Oct 2009, Brett Stahlman wrote: nnoremapF8 :exe resize . (line('.') - line('w0') + 1)CR\|zb Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see

Re: Subject: Vim + wiki to take and organize notes ?

2009-11-03 Thread Stahlman Family
setog3 wrote: Hi, I am starting a PhD and I need a tool to take notes and organize them. My editor is vim since a while, so why not using vim for this. To organize my notes, I was thinking of a wiki; so I try the viki script, which works fine, but I want to know what do you think

ANN: Txtfmt (The Vim Highlighter) - Version 2.0 - Rich text capability in Vim!

2009-11-02 Thread Stahlman Family
Overview If you like to edit plain text documents in Vim, but sometimes miss a word processor's ability to highlight specific regions of text with colors and format attributes (bold, underline, italic, etc...), the Txtfmt plugin is for you...

Re: making your own tagfile?

2009-10-25 Thread Stahlman Family
snip . . To get Vim help file syntax highlighting in your notes files, you would need simply to set ft=help. You could do this either in a modeline, or using autocommands based upon the file extension. If you want additional highlighting capabilities, beyond those provided by Vim's help

Re: C Bracket / Paren syntax highlighting

2009-10-22 Thread Stahlman Family
Chris Sutcliffe wrote: The cCpp in cCppParen stands for C Preprocessor. The group used to highlight parens in C and C++ is cParen. The problem is that the cParen region is defined with the transparent attribute, so changing its guifg attribute has no visible effect. I've come up with a

Re: mksess can not keep my color settings

2009-10-10 Thread Stahlman Family
You can use the SessionLoadPost autocommand to do whatever you like just after a session file is sourced. Caveat: doautoall is used to execute the SessionLoadPost autocommands, so they're executed for each loaded buffer. :help :au :help SessionLoadPost If it doesn't hurt to source your script

Re: Resize To Cursor

2009-10-06 Thread Stahlman Family
Paul wrote: On Mon, 5 Oct 2009, Brett Stahlman wrote: nnoremap F8 :exe resize . (line('.') - line('w0') + 1)CR\|zb Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see a column() function... Well, I see that Christian has already

Re: Resize To Cursor

2009-10-06 Thread Stahlman Family
Stahlman Family wrote: Paul wrote: On Mon, 5 Oct 2009, Brett Stahlman wrote: nnoremap F8 :exe resize . (line('.') - line('w0') + 1)CR\|zb Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see a column() function... Well, I see

Re: Resize To Cursor

2009-10-05 Thread Stahlman Family
Paul wrote: On Mon, 5 Oct 2009, Brett Stahlman wrote: nnoremap F8 :exe resize . (line('.') - line('w0') + 1)CR\|zb Yes, you have the idea. That works for horizontal split. Now, how about for vertical split? I don't see a column() function... If the start of the line is not visible

Re: :make not generating error file

2009-10-04 Thread Stahlman Family
Nathan Huesken wrote: Hi, When I issue :make in my projects root, I can see by te console output, that it should generatate a errorfile (using tee). But when I try to open this file, it does not exist. I tried to set makeef to different files, non is created. Any hints why? Nathan,

Re: :make not generating error file

2009-10-04 Thread Stahlman Family
the stdout of tee. Note that the 21 is required, since otherwise, the tee program would never see the errors... :help makeprg Brett Stahlman Thanks! Nathan On Sun, Oct 04, 2009 at 07:25:04AM -0500, Stahlman Family wrote: Nathan Huesken wrote: Hi, When I issue :make in my projects root, I

Re: :au for Makefiles, except for Makefiles in certain dir.

2009-10-04 Thread Stahlman Family
viki wrote: I have au rule for Makefiles: au BufWritePre Makefile :something Now it turns out that Makefiles in directory $PDIR and $PDIR/** shall be excluded from this rule. How do I express such exception in au rule ? You can test the path in the autocommand itself: e.g.,

Re: Is this ccomplete's bug?

2009-10-02 Thread Stahlman Family
jason wrote: Hi Brett I did it as you said. my test.c is in dir $HOME/test these is my steps: 1.cd ~/test 2.run command ctags -R --c++-kinds=+p --fields=+iaSn --extra=+q . 3.run vim 4.put cursor at the end of pb- 5.press C-X C-O It shows Omni Completion (^O^N^P)* pattern not found.

Re: Is this ccomplete's bug?

2009-10-01 Thread Stahlman Family
jason wrote: Hi Brett I tried omnicppcomplete-0.41 as Dominique's setting, but it didn't work for me. Error message is Omni Completion (^O^N^P)* pattern not found*** I tested it in the same file. I saw omnifunc=omni#cpp#complete#Main, which is from omnicppcomplet-0.4.1. I have no idea

Re: making your own tagfile?

2009-09-27 Thread Stahlman Family
Anton Sharonov wrote: Brett Stahlman wrote: Anton Sharonov wrote: jan wrote: Hello, I am taking lengthy notes on something. I want to write a table of contents to find my way around these notes. I want to jump to a specified place in the notes-file from this TOC. Do I have to create

Re: How to apply different syntax colors to a single plain text file ?

2009-09-20 Thread Stahlman Family
Lenin Lee wrote: I want to write notes and save them into plain text files, in my notes, there are always some pieces of code. I want to apply syntax color of that language only to the block of code, is there a way to do so ? I think the following tip from the Vim tips wiki describes how

  1   2   >