mark block from unknown position

2007-04-12 Thread meino . cramer
Hi, I am trying to automate this: There is a file, which contains one path/filename at each line. Lines with equal files (contents wise) are grouped together. Groups are separated by "# ---' (or whatever you want). To sort the lines of one group only I want to put the group into a visual

Re: mark block from unknown position

2007-04-12 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] schrieb: > > I am trying to automate this: > > There is a file, which contains one path/filename at each line. > Lines with equal files (contents wise) are grouped together. Groups > are separated by "# ---' (or whatever you want). > > To sort the lines of one group

Re: mark block from unknown position

2007-04-12 Thread Jürgen Krämer
Hi,, [EMAIL PROTECTED] wrote: > > J?rgen Kr?mer <[EMAIL PROTECTED]> [07-04-12 13:12]: >> Hi, >> >> [EMAIL PROTECTED] schrieb: >>> I am trying to automate this: >>> >>> There is a file, which contains one path/filename at each line. >>> Lines with equal files (contents wise) are grouped togeth

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-12 Thread A.J.Mechelynck
Tim Chase wrote: In general, the safest keys to use for the {lhs} (left-hand side) of mappings are the F keys. Almost everything else already has a function in Vim. Among Worth knowing. Thanks. What about when using a leader such as "," or "/" ? The comma does a reverse-search of the last thi

Re: CTRL+gf new tab position

2007-04-12 Thread A.J.Mechelynck
Dave Land wrote: [...] Oddly enough, this mapping also takes over plain old control-g, which is fine for me. [...] There's nothing odd to that: in "cooked" input mode (as used by Vim), Ctrl-G and Ctrl-g both (by design) map to the BEL character, 0x07. This applies to any Ctrl+letter combinati

Finding something conatined in two lines?

2007-04-12 Thread meino . cramer
Hi, Suppose there is a file containing a path/filename -- in each line: # a.txt b.txt c.txt # 1.txt 2.txt 3.txt 4.txt # 1.txt 3.txt 4.txt # Now I want to replace any combination of 1.txt 2,txt by - say - x.txt Is there a way to expand / of two/more lines ?

Re: Finding something conatined in two lines?

2007-04-12 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] wrote: > > Suppose there is a file containing a path/filename -- in each line: > > # > a.txt > b.txt > c.txt > # > 1.txt > 2.txt > 3.txt > 4.txt > # > 1.txt > 3.txt > 4.txt > # > > Now I want to replace any combination of > 1.txt > 2,txt

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-12 Thread Tim Chase
One other candidate might be the underscore, though it's a shifted key which makes it a little more difficult, it is usually in a pretty predictable place (unlike the backslash/pipe key which I find all over the keyboard depending on whose machine I'm using...makes typing DOS file-paths a pain).

RE: delete buffer questions

2007-04-12 Thread David Fishburn
> -Original Message- > From: alebo [mailto:[EMAIL PROTECTED] > Sent: Monday, April 09, 2007 2:51 PM > To: [EMAIL PROTECTED] > Subject: delete buffer questions > > > I need som things explained about the automatic delete buffers 1-9. > > When I delete rows using dd the deleted text is

Setting font in console vim

2007-04-12 Thread David . Fishburn
Vim 7 WinXP I can set the font in gvim using: Set guifont= But how do I do the same with console vim? Help, helpgrep and searching this list hasn't found me an aswer. TIA, Dave

Re: Setting font in console vim

2007-04-12 Thread Tim Chase
I can set the font in gvim using: Set guifont= But how do I do the same with console vim? It relies on the font your console uses. Thus, if you're using a xterm/rxvt/konsole/whatver, you can set your display font for the terminal application and vim uses it. If you're an an SSH session suc

Re: Setting font in console vim

2007-04-12 Thread Jean-Rene David
* [EMAIL PROTECTED] [2007.04.12 10:30]: > I can set the font in gvim using: > Set guifont= > > But how do I do the same with console vim? You change the console font. :-) If you use cygwin I can tell you how I do it for rxvt or xterm. -- JR

clewn inclusion?

2007-04-12 Thread Tobias Pflug
hi everyone, I was wondering how likely inclusion of the clewn[1] project in vim would be? I have to admit I have no idea how deep the changes are and if the patches include any evil hacks.. What I do know is that it seems to do a pretty good job at making gdb a bit more usable by incorporating i

Re: clewn inclusion?

2007-04-12 Thread Tobias Pflug
Am Donnerstag, den 12.04.2007, 17:18 +0200 schrieb Tobias Pflug: > hi everyone, > > I was wondering how likely inclusion of the clewn[1] project in vim > would be? I have to admit I have no idea how deep the changes are and if > the patches include any evil hacks.. What I do know is that it seems

Re: what is the language for vim development

2007-04-12 Thread A.J.Mechelynck
flyfish wrote: Hi, i would like to do some contribution in vim development, i have used vim more than one year in programming and text edit, but when i want to start to code for vim, i even do not know what language is used for vim development, could you give me some information and steps how to

Vim OLE and C#

2007-04-12 Thread David Fishburn
I have the following VB code: Dim Vim As Object Set Vim = CreateObject("Vim.Application") Vim.SendKeys ":e " I want to do the samething in C# (of which my skills are quite weak). I have the following: object Vim; Vim = Activator.CreateInstance(Type.GetTypeFromProgID(

hilight blocks

2007-04-12 Thread Kirk
Is there any simple way to have custom blocks of code highlighted and the remaining code outside the blocks not highlighted? For example: # file.txt some plain text [my-custom-tag] some custom text [/my-custom-tag] Some more plain text ... # end of file So the idea would be to open VIM using file

Re: hilight blocks

2007-04-12 Thread Ian Tegebo
On 4/12/07, Kirk <[EMAIL PROTECTED]> wrote: Is there any simple way to have custom blocks of code highlighted and the remaining code outside the blocks not highlighted? For example: # file.txt some plain text [my-custom-tag] some custom text [/my-custom-tag] Some more plain text ... # end of fil

Re: hilight blocks

2007-04-12 Thread Gary Johnson
On 2007-04-12, Kirk <[EMAIL PROTECTED]> wrote: > Is there any simple way to have custom blocks of code highlighted and the > remaining code outside the blocks not highlighted? > For example: > > # file.txt > some plain text > [my-custom-tag] some custom text [/my-custom-tag] > Some more plain text

Re: disabling abbreviations inside comments

2007-04-12 Thread Mrinal Nath
Resending due to delivery failure. Sorry for any inconvenience I have some iabbreviations defined. The problem is that the iabbrs get expanded even while I am writing comments (in VHDL). Is there a way to detect that I am currently typing a comment (line that has "--" anywh

RE: hilight blocks

2007-04-12 Thread Kirk
I like this one, I put it in my local ~/.vimrc file and it works for VIM (v6.1.3). But when I load this on another machine running VIM (v6.3) I get this error: bash-2.05$ vi file Error detected while processing /export/home/me/file: line6: E28: No such highlight group name: Comment '\[perl]\z

Re: what is the language for vim development

2007-04-12 Thread flyfish
Hi, Thank you very much for such useful information, i started to read the usr_42.txt help file and it starts with a menu.vim file to explain how to add new menu, i do not want to add module now, but i only want to know what is the vim script language it is? and where to start to learn such langu

Re: hilight blocks

2007-04-12 Thread Gary Johnson
On 2007-04-12, Kirk <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Gary Johnson [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 12, 2007 12:05 PM > > To: [EMAIL PROTECTED] > > Subject: Re: hilight blocks > > > > On 2007-04-12, Kirk <[EMAIL PROTECTED]> wrote: > > > Is ther

Re: hilight blocks

2007-04-12 Thread Ian Tegebo
On 4/12/07, Kirk <[EMAIL PROTECTED]> wrote: I like this one, I put it in my local ~/.vimrc file and it works for VIM (v6.1.3). But when I load this on another machine running VIM (v6.3) I get this error: bash-2.05$ vi file Error detected while processing /export/home/me/file: line6: E28: No

Splint, Errorformat and Windows Paths

2007-04-12 Thread Keith Prickett
I am trying to get Splint output to be parsed by gVim errorformat. I have used the following error format with Splint 3.1.1 and Vim 7.0.152: :set errorformat=%A%f(%l\\,%c):\ %m,%+C\ %.%# This seems to work pretty well, except files with Windows (I'm using gVim on Windows XP) paths are not recogn

Re: disabling abbreviations inside comments

2007-04-12 Thread Luc Hermitte
Hello, * On Thu, Apr 12, 2007 at 12:31:24PM -0700, Mrinal Nath <[EMAIL PROTECTED]> wrote: > I have some iabbreviations defined. The problem is that the iabbrs get > expanded even while I am writing comments (in VHDL). > > Is there a way to detect that I am currently typing a comment (line > that

Troubles configuring vim (multi-questions)

2007-04-12 Thread OnionKnight
I've been thinking of migrating to using vim (gvim) but I'm running into lots of difficulties on the road I just can't solve, and the documentation is... well, strange at best. * Is it possible to make the cursor stay at it's position even after scrolling it out of view? As it is it follows with

[Help]How can I add some char before a block?

2007-04-12 Thread 陈方荣
Hi all,     How can I add some char before a block?     Just like C++ comment.         Before:     Comment line1     Comment line2     Comment line3     Comment line4     After:     //Comment line1     //Comme

Re: [Help]How can I add some char before a block?

2007-04-12 Thread Ricky Zhou
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 陈方荣 wrote: > Hi all, > How can I add some char before a block? > Just like C++ comment. Use V to select the block you want, then type :s/^/\/\// Hope this helps, Ricky -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Li

Re: [Help]How can I add some char before a block?

2007-04-12 Thread Easwy Yang
:help CTRL-V or :help CTRL-V-alternative and then :help blockwise-operators, :help v_b_I_example or you can try The NERD Commenter plugin: http://www.vim.org/scripts/script.php?script_id=1218 Hope it helps. Easwy 2007/4/13, Ricky Zhou <[EMAIL PROTECTED]>: -BEGIN PGP SIGNED MESSAGE- Ha

Re: [Help]How can I add some char before a block?

2007-04-12 Thread Xi Juanjie
If you just want to comment/uncomment your source in a easy way, try this plugin "EnhancedCommentify" 陈方荣 wrote: Hi all, How can I add some char before a block? Just like C++ comment. Before: Comment line1 Comment line2

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread panshizhu
OnionKnight <[EMAIL PROTECTED]> 写于 2007-04-13 08:22:06: > I've been thinking of migrating to using vim (gvim) but I'm running into lots > of difficulties on the road I just can't solve, and the documentation is... > well, strange at best. It seems that Vim had a longer learning curve than other edi

Re: [Help]How can I add some char before a block?

2007-04-12 Thread Tim Chase
>> How can I add some char before a block? Just like C++ >> comment. > > Use V to select the block you want, then type :s/^/\/\// You can make this a little easier/shorter to type by using :s!^!// The alternative delimiters (you can use a variety of characters, though I tend to choose "

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread Easwy Yang
I can answer some of the questions. See below. 2007/4/13, OnionKnight <[EMAIL PROTECTED]>: I've been thinking of migrating to using vim (gvim) but I'm running into lots of difficulties on the road I just can't solve, and the documentation is... well, strange at best. * Is it possible to make t

答复: [Help]How can I add some char befo re a block?

2007-04-12 Thread 陈方荣
--- Best regards 陈方荣 > -邮件原件- > 发件人: Tim Chase [mailto:[EMAIL PROTECTED] > 发送时间: 2007年4月13日 :09:44 > 收件人: Ricky Zhou > 抄送: 陈方荣; Vim > 主题: Re: [Help]How can I add some char before a block? > > >> How can I add some char before a block? Just like C++ > >> comment. > > > > Use V to select th

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread OnionKnight
>inside a script you're in "command-mode", and the command "w" you've meant >to should be in "normal-mode", the correct way might be :normal w, :normal >g0w, etc... Couldn't find anything about command-mode. How is it different from normal mode? Is each line treated as one command? Like g0w is tre

Re: 答复: [Help]How can I add some char before a block?

2007-04-12 Thread Steven Woody
On 4/13/07, 陈方荣 <[EMAIL PROTECTED]> wrote: --- Best regards 陈方荣 > -邮件原件- > 发件人: Tim Chase [mailto:[EMAIL PROTECTED] > 发送时间: 2007年4月13日 :09:44 > 收件人: Ricky Zhou > 抄送: 陈方荣; Vim > 主题: Re: [Help]How can I add some char before a block? > > >> How can I add some char before a block? Just like

OT: [Help]How can I add some char before a block?

2007-04-12 Thread panshizhu
陈方荣 <[EMAIL PROTECTED]> 写于 2007-04-13 09:08:49: > Hi all, >     How can I add some char before a block? >     Just like C++ comment. > >     Before: >     Comment line1 >     After: >     //Comment line1 > Thanks. Offtopic: Generally, use comment ch

Re: Troubles configuring vim (multi-questions)

2007-04-12 Thread panshizhu
OnionKnight <[EMAIL PROTECTED]> 写于 2007-04-13 10:05:10: > Couldn't find anything about command-mode. How is it different from normal > mode? Is each line treated as one command? Like g0w is treated as "g0w" > instead of "g0" and "w"? Vim is a multi-mode editor, in different mode, it accepts comple

meta offtopic: UTF-8/vim/mutt/mrxvt

2007-04-12 Thread meino . cramer
Hi, sorry for this meta offtopic question...but I need informations about some internals of vim... I am using mutt to compose and read mail. The editor for this is vim (surprised? :) Mutt/Vim are running on/in/at/on top off/with (or what else the correct preposition is... X-) mrxvt. And all

Re: [Help]How can I add some char before a block?

2007-04-12 Thread dan123
Xi Juanjie wrote: > > If you just want to comment/uncomment your source in a easy way, try > this plugin "EnhancedCommentify" > I am a newbie. How to use it? I installed it like described. E.g. what should I write as if I like to comment a visual block? Thanks Daniel -- View this mess

Re: [Help]How can I add some char before a block?

2007-04-12 Thread dan123
dan123 wrote: > > > > Xi Juanjie wrote: >> >> If you just want to comment/uncomment your source in a easy way, try >> this plugin "EnhancedCommentify" >> > > I am a newbie. How to use it? I installed it like described. E.g. what > should I write as if I like to comment a visual block? >

Re: [Help]How can I add some char before a block?

2007-04-12 Thread Xi Juanjie
To comment/uncomment a visual block, just type "\x". and also you can map this key to any other keys dan123 wrote: dan123 wrote: Xi Juanjie wrote: If you just want to comment/uncomment your source in a easy way, try this plugin "EnhancedCommentify" I am a newbie. How to use it? I instal

RE: Troubles configuring vim (multi-questions)

2007-04-12 Thread Eric Leenman
From: OnionKnight <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Troubles configuring vim (multi-questions) Date: Thu, 12 Apr 2007 17:22:06 -0700 (PDT) [deleted] * I wanted the Home-button to act so that it first jumps to the first non-whitespace character of the current line (i.e. skip th

Wish: need a way to reverse 'cterm=inverse' highlight command

2007-04-12 Thread Spencer Collyer
Hi, First, some background. At my work I spend a lot of time editing data files in CSV format. Because some of the lines can have many empty fields (it's not unusual to have 20+ empty fields consecutively) I've developed a function which allows me to toggle highlighting of every 5th and 10th fiel