Re: Help needed on pt_BR spell checking

2007-02-08 Thread Bram Moolenaar
Leonardo Fontenelle wrote: > I made a pt.utf-8.spl from myspell-pt_BR, and placed it in ~/.vim/spell/. > When I run ":set spell spelllang=pt_BR", I get an error message: > "Warning: region BR not supported". My locale is pt_BR, and I'm sure > vim knows about that because ":lang" yields "pt_BR.UTF

Re: Feature request: off_t / off64_t

2007-02-08 Thread Bram Moolenaar
Mathieu Malaterre wrote: > Could someone please add off_t / off64_t to the C syntax file. I'll add off_t, I think it's a generic type. I don't know off64_t. Is that for Linux? -- I AM THANKFUL... ...for the piles of laundry and ironing because it means I have plenty of clothes to wear. /

omnicomplete pattern not found

2007-02-08 Thread Sandeep
Hi, Much to my frustration I am unable to get omnicomplete working. I am using gvim 7.0 on windows. I have installed the omnicomplete and build the tags database using the right ctags (version 5.6). Tags navigation works fine but always returns pattern not found. Am I missing something? Will

RE: How do I replace text with a new line?

2007-02-08 Thread Knute Johnson
>>I've got a file with some control characters and I want to replace >>one of them with a new line. I've tried: >>:s/\%x03/\n/ >>:s/\%x03/^M^J/ >>:s/\%x03/\%x0a/ > >In the search-for field, you can use '\n' to search for a newline and >span more than one line. > >In the replace-with field, you ne

Re: searching for a string that has many '/' characters

2007-02-08 Thread Bill McCarthy
On Fri 2-Feb-07 7:52pm -0600, [EMAIL PROTECTED] wrote: > I have a string that has lots of forward slashes. I need to search it > and delete it (e.g. unix path name). I could use a backslash for > everything forward slash and find it in vim. Is there a way I need not > do that? For now, I use 'gre

Re: searching for a string that has many '/' characters

2007-02-08 Thread Kazuo Teramoto
On 2/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have a string that has lots of forward slashes. I need to search it and delete it (e.g. unix path name). I could use a backslash for everything forward slash and find it in vim. Is there a way I need not do that? For now, I use 'grep -n'

searching for a string that has many '/' characters

2007-02-08 Thread malahal
I have a string that has lots of forward slashes. I need to search it and delete it (e.g. unix path name). I could use a backslash for everything forward slash and find it in vim. Is there a way I need not do that? For now, I use 'grep -n' to get the line number and then delete it. I don't actuall

Re: editing function argument lists

2007-02-08 Thread Marc Weber
On Thu, Feb 08, 2007 at 09:56:52PM +, Tom Whittock wrote: > Hi Vim users. > > I have a question: Given a standard function call block of text: > > func(arg1, arg2, arg3); > > how do people here deal with editing the argument list efficiently? > > I'm looking to try to create a custom motion

RE: How do I replace text with a new line?

2007-02-08 Thread Gene Kwiecinski
>I've got a file with some control characters and I want to replace >one of them with a new line. I've tried: >:s/\%x03/\n/ >:s/\%x03/^M^J/ >:s/\%x03/\%x0a/ In the search-for field, you can use '\n' to search for a newline and span more than one line. In the replace-with field, you need to use

Re: vim paste buffer

2007-02-08 Thread A.J.Mechelynck
Albie Janse van Rensburg wrote: [...] here is my $vim --version VIM - Vi IMproved 6.3 (2004 June 7, compiled Aug 22 2005 09:38:37) Included patches: 1-21, 23-24, 26, 28-34, 36-37, 39-40, 42-43, 45-46, 81-82 Modified by <[EMAIL PROTECTED]> Compiled by <[EMAIL PROTECTED]> Huge version without GUI.

Re: How do I replace text with a new line?

2007-02-08 Thread Knute Johnson
>On 2/9/07, Knute Johnson <[EMAIL PROTECTED]> wrote: >> I've got a file with some control characters and I want to replace >> one of them with a new line. I've tried: >> >> :s/\%x03/\n/ >> :s/\%x03/^M^J/ >> :s/\%x03/\%x0a/ > >s/\%x03/\r/ > >Yakov Thank you Yakov, that is one combination that I di

Re: How do I replace text with a new line?

2007-02-08 Thread Yakov Lerner
On 2/9/07, Knute Johnson <[EMAIL PROTECTED]> wrote: I've got a file with some control characters and I want to replace one of them with a new line. I've tried: :s/\%x03/\n/ :s/\%x03/^M^J/ :s/\%x03/\%x0a/ s/\%x03/\r/ Yakov

How do I replace text with a new line?

2007-02-08 Thread Knute Johnson
I've got a file with some control characters and I want to replace one of them with a new line. I've tried: :s/\%x03/\n/ :s/\%x03/^M^J/ :s/\%x03/\%x0a/ Which brings me to another question, you can use the \%x?? in the first half of the substitution but not the second. What's up with that?

editing function argument lists

2007-02-08 Thread Tom Whittock
Hi Vim users. I have a question: Given a standard function call block of text: func(arg1, arg2, arg3); how do people here deal with editing the argument list efficiently? I'm looking to try to create a custom motion to allow me to move across and change arguments with a minimum number of keyst

Re: non-quoting version of ?

2007-02-08 Thread A.J.Mechelynck
Marc Weber wrote: On Thu, Feb 08, 2007 at 11:56:21AM +0100, A.J.Mechelynck wrote: Marc Weber wrote: Do I have missed a non quoting version of ? Consider this example: function! T(...) for a in a:000 echom 'arg:'.string(a) endfor endfunction -- 8< -- 8< start test.vim <

Re: GVim colours

2007-02-08 Thread Alexei Alexandrov
Hi A.J.Mechelynck, you wrote: > > 3. replace the arguments of guibg= and guifg= by their #RRGGBB hex > equivalents from the rxvt color palette. What these equivalents are, I > don't know; but you can set any 32-bit color that way. If you want it to > be usable (without dithering) on a 256-color t

vim return code

2007-02-08 Thread Martin Krischik
Hello, I often use little vim scripts using "vim -E". Now like all executable vim will return a result code after execution. And it is often "false" which I don't want. Does anybody know how to influence the return value from "vim -E"? Martin -- Martin Krischik mailto://[EMAIL PROTECTED] pg

RE: how do u visually select a search pattern?

2007-02-08 Thread Sibin P. Thomas
Yup that was useful, but I am stuck at the next step of my quest. I visually select the search pattern using "//v//e", then yank it to a register - say 0 ("0yy). After that, I want to evaluate the yanked text to delete the highlighted part if it meets a condition, as in -> :if (!(@0=~"set_reg")) |

Re: how do u visually select a search pattern?

2007-02-08 Thread Marc Weber
On Thu, Feb 08, 2007 at 09:59:52PM +0530, Sibin P. Thomas wrote: > Hi all, > > How can one visually select a pattern which is searched for? You can use /v//e to select it (/e means move to the end of match) than you can yank and read the "@ register. There may be better ways to do this though. Ma

RE: how do u visually select a search pattern?

2007-02-08 Thread Sibin P. Thomas
True, this will work for the present case. But what I exactly wanted was to visually select whatever is highlighted due to the previous search, to be precise only one of the matches at a time. For instance if my search string were "para\_.\{-}var" (notice that I am not searching for an entire word

Re: how do u visually select a search pattern?

2007-02-08 Thread Tim Chase
I would like to search for the pattern "para\_.\{-}variable". When I am on the highlighted selections (3 pairs of lines in this case), I would like to yank the highlighted portion to a register (for evaluation etc). Well, it's not quite what you describe, but it's like the "n/N" functionality

how do u visually select a search pattern?

2007-02-08 Thread Sibin P. Thomas
Hi all, How can one visually select a pattern which is searched for? In the following text : get_register_primitive 7 get_register_test_case_primitive 8 parameters address---> variable - set_register_primitive 11 parameters set_reg---> variable ---

Re: vim paste buffer

2007-02-08 Thread Guillaume Bog
On 08/02/07, Albie Janse van Rensburg <[EMAIL PROTECTED]> wrote: > Hi, thank for answers. I'm not at work now so I can only try on > Windows with putty term branched on a CentOS server > > paste from windows to vim is never a problem, but I can't make it from > vim to outside. For this to work,

Re: vim paste buffer

2007-02-08 Thread Albie Janse van Rensburg
Hi, thank for answers. I'm not at work now so I can only try on Windows with putty term branched on a CentOS server paste from windows to vim is never a problem, but I can't make it from vim to outside. For this to work, you will have to check with putty how to get data into the windows clipbo

Re: vim paste buffer

2007-02-08 Thread Tim Chase
:help x11-selection in particular :help quoteplus Until I shifted to using *nix boxes regularly (via an actual X session, rather than remotely accessing via ssh), the distinction between these registers was lost on me. On Win32, both the "*" register and the "+" register do the same thing

Re: vim paste buffer

2007-02-08 Thread Albie Janse van Rensburg
(Copied to group) Guillaume, just use your mail client's "Reply to all" function if you don't have a "Reply to list" option, that way the mail will go to the group, and you will get more answers ;-) Albie On 08/02/07, Albie Janse van Rensburg <[EMAIL PROTECTED]> wrote: gg"*yG extra: on Win

Re: vim paste buffer

2007-02-08 Thread Kim Schulz
On Thu, 8 Feb 2007 21:34:12 +0800, "Guillaume Bog" <[EMAIL PROTECTED]> wrote: > Hi everbody, > > I'm new on this list. I use vim in a terminal on ubuntu everyday and > still need some help for efficient use. If the file i'm editing is > longer than one screen and I want to paste it somewhere el

Re: vim paste buffer

2007-02-08 Thread Albie Janse van Rensburg
Albie Janse van Rensburg wrote: Guillaume Bog wrote: Hi everbody, I'm new on this list. I use vim in a terminal on ubuntu everyday and still need some help for efficient use. If the file i'm editing is longer than one screen and I want to paste it somewhere else (say in a firefox textarea), I h

Re: vim paste buffer

2007-02-08 Thread Kev
Guillaume Bog wrote: Hi everbody, I'm new on this list. I use vim in a terminal on ubuntu everyday and still need some help for efficient use. If the file i'm editing is longer than one screen and I want to paste it somewhere else (say in a firefox textarea), I have to go out of vim, cat the fil

Re: vim paste buffer

2007-02-08 Thread Albie Janse van Rensburg
Guillaume Bog wrote: Hi everbody, I'm new on this list. I use vim in a terminal on ubuntu everyday and still need some help for efficient use. If the file i'm editing is longer than one screen and I want to paste it somewhere else (say in a firefox textarea), I have to go out of vim, cat the fil

Re: vim paste buffer

2007-02-08 Thread Thomas Michael Engelke
2007/2/8, Guillaume Bog <[EMAIL PROTECTED]>: Hi everbody, I'm new on this list. I use vim in a terminal on ubuntu everyday and still need some help for efficient use. If the file i'm editing is longer than one screen and I want to paste it somewhere else (say in a firefox textarea), I have to go

Re: Mapping: Pick occurance of word under cursor, vim7-style

2007-02-08 Thread Thomas Michael Engelke
2007/2/8, Marc Weber <[EMAIL PROTECTED]>: On Thu, Feb 08, 2007 at 01:30:37PM +0100, Thomas Michael Engelke wrote: > Can anybody give me a hint on how to rewrite the mapping so I get such > a conext menu instead of a numbered list? Get the word under the cursor using expand('') See completion ex

vim paste buffer

2007-02-08 Thread Guillaume Bog
Hi everbody, I'm new on this list. I use vim in a terminal on ubuntu everyday and still need some help for efficient use. If the file i'm editing is longer than one screen and I want to paste it somewhere else (say in a firefox textarea), I have to go out of vim, cat the file i'm editing, select

Re: Mapping: Pick occurance of word under cursor, vim7-style

2007-02-08 Thread Marc Weber
On Thu, Feb 08, 2007 at 01:30:37PM +0100, Thomas Michael Engelke wrote: > Can anybody give me a hint on how to rewrite the mapping so I get such > a conext menu instead of a numbered list? Get the word under the cursor using expand('') See completion examples (:h complete-functions) to filter and

Re: Vim presentation in Mountain View

2007-02-08 Thread Thomas Michael Engelke
2007/2/6, Vigil <[EMAIL PROTECTED]>: Hopefully this will be available on google videos. Yes, as a german it's an awfully long way just to meet Bram once. I hope to see this lecture pop up as a Torrent or or Goggle Video.

Mapping: Pick occurance of word under cursor, vim7-style

2007-02-08 Thread Thomas Michael Engelke
Hello! I am using the following mapping: map [I:let nr = input("Match: ")exe "normal " . nr ."[\t" This displays a list of all lines with occurances of the word under the cursor on it, assigns an incremental number to it and lets me pick one to jump to. This works fine. But I know that vim7 (

Re: Feature request: off_t / off64_t

2007-02-08 Thread Yakov Lerner
On 2/7/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: Hello, Could someone please add off_t / off64_t to the C syntax file. You can do it yourself. Add this line syn keyword cTypeoff64_t off_t to the file ~/.vim/after/syntax/c.vim And 'mkdir -p ~/.vim/after/syntax' if necessary

Re: non-quoting version of ?

2007-02-08 Thread Marc Weber
On Thu, Feb 08, 2007 at 11:56:21AM +0100, A.J.Mechelynck wrote: > Marc Weber wrote: > >Do I have missed a non quoting version of ? > > > >Consider this example: > > > > > >function! T(...) > > for a in a:000 > >echom 'arg:'.string(a) > > endfor > >endfunction > > > >-- 8< -- 8< sta

Re: do not match the longest pattern

2007-02-08 Thread Matthew Winn
On Thu, 08 Feb 2007 13:50:51 +0800, Bin Chen <[EMAIL PROTECTED]> wrote: > In the help page: > If a "-" appears immediately after the "{", then a shortest match > first algorithm is used (see example below). In particular, > "\{-}" is > the same as "*" but uses the shortes

Re: non-quoting version of ?

2007-02-08 Thread A.J.Mechelynck
Marc Weber wrote: Do I have missed a non quoting version of ? Consider this example: function! T(...) for a in a:000 echom 'arg:'.string(a) endfor endfunction -- 8< -- 8< start test.vim < -- 8< -- 8< -- 8< command! -nargs=* -buffer TestAddSeven :call

Re: gvim and Unicode

2007-02-08 Thread A.J.Mechelynck
Guido Milanese wrote: I have an additional question concerning this topic, that has been discussed several times. I am happily using (g)vim with files containing several languages, basically as editor for LaTeX, and it's all right with Unicode. I am working in Linux Mandriva 2007, with (g)vim

non-quoting version of ?

2007-02-08 Thread Marc Weber
Do I have missed a non quoting version of ? Consider this example: function! T(...) for a in a:000 echom 'arg:'.string(a) endfor endfunction -- 8< -- 8< start test.vim < -- 8< -- 8< -- 8< command! -nargs=* -buffer TestAddSeven :call T(7,) comman

Re: gvim and Unicode

2007-02-08 Thread Guido Milanese
I have an additional question concerning this topic, that has been discussed several times. I am happily using (g)vim with files containing several languages, basically as editor for LaTeX, and it's all right with Unicode. I am working in Linux Mandriva 2007, with (g)vim 7.0.30. I still have a

Re: Workspace concept ala TextPad

2007-02-08 Thread A.J.Mechelynck
Jürgen Krämer wrote: Hi, A.J.Mechelynck wrote: Eric Leenman wrote: I read on the script that I need to follow the 6 points mentioned. [...] What I did: Download the zip file: And stored workspace.txt is stored in C:\Program Files\Vim\vimfiles\doc