Re: external processes interaction

2008-11-19 Thread bill lam
On Wed, 19 Nov 2008, Tony Mechelynck wrote: > Each Chinese character is a "word" by itself, isn't it, so no spell > check is needed when typing Chinese text? Or do you have a Chinese spell > dictionary which rejects characters which cannot be used alone (e.g. > counting words maybe), unless t

Re: external processes interaction

2008-11-19 Thread Tony Mechelynck
On 19/11/08 09:03, bill lam wrote: [...] > I'll be happy if it can distinguish between "non-english/french/" > and "real typo". [...] Isn't that where the suggested alternate spellings come into play? If you type an English (or French or...) word with one letter replaced by another, you oug

Re: vimgdb in windows

2008-11-19 Thread StarWing
yes, thank you it IS make_ming.mak, my mistake. if i make a Vim in cygwin, can i use it out of cygwin? i.e, in a Cmd window neither a bash terminal i think i can't make a Win32-GUI for vim in cygwin, for it hasn't the library for windows, and i don't know how to cross-compiling. i have read

Re: vimgdb in windows

2008-11-19 Thread Tony Mechelynck
On 19/11/08 09:30, StarWing wrote: > yes, thank you it IS make_ming.mak, my mistake. > > if i make a Vim in cygwin, can i use it out of cygwin? i.e, in a Cmd > window neither a bash terminal > i think i can't make a Win32-GUI for vim in cygwin, for it hasn't the > library for windows, and i don't

Re: vimgdb in windows

2008-11-19 Thread StarWing
it seems that, my explore goes to the end... gdb.c:24:24: sys/wait.h: No such file or directory gdb.c:49:22: termio.h: No such file or directory gdb.c: In function `exec_gdb': gdb.c:983: error: storage size of 'tio' isn't known gdb.c:987: error: `WNOHANG' undeclared (first use in this function) g

Select 'v' Issue

2008-11-19 Thread Ajay Jain
Hi, When I use the 'v' key and select a few lines, the color of the selection is so light grey, that I fail to see what has been selected. Could you tell me how to solve the issue? Regards, Ajay. --~--~-~--~~~---~--~~ You received this message from the "vim_use

How to wrap up

2008-11-19 Thread Ajay Jain
Hi, When I write a C code, I would like to wrap up after say 80 columns. Can I do this in Vim? If yes, how? What are the related and useful commands to wrap around while coding? Regs, Ajay. --~--~-~--~~~---~--~~ You received this message from the "vim_use" mail

Re: How to wrap up

2008-11-19 Thread Ben Schmidt
Ajay Jain wrote: > Hi, > > When I write a C code, I would like to wrap up after say 80 columns. Can > I do this in Vim? If yes, how? What are the related and useful commands > to wrap around while coding? Make sure 't' is in formatoptions to wrap code and not just comments: :set fo+=t and set

Re: Trying to use Explore with BufNew

2008-11-19 Thread Andy Wokula
Jeenu schrieb: > Hi, > > I'm trying to use Explore with BufNew auto-command so that I get a > browser whenever I create a new buffer. I did: > > aucmd BufNew * Explore > > But I don't see Explore command working when I create a new buffer. > All I see is an empty buffer. :au BufNew command does

Re: Unsubscription of Account

2008-11-19 Thread Yongwei Wu
2008/11/19 Elennoel Bacongallo <[EMAIL PROTECTED]>: > Hi, > > I would to request, to unsubscribe my account at vim_use community > for the reason as follows: > > 1. I'm not interested anymore on vim application > 2. Every day i keep on cleaning my email due the flooded mails from > the community

Re: Trying to use Explore with BufNew

2008-11-19 Thread Ben Schmidt
> I don't know what the BufNew event is good for, but it gives me crap: > > augroup foo > au! > au BufNew * call AddSomeText() > augroup end > > func! AddSomeText() > put = 'Text added from BufNew event!' > endfunc > " EOF > > > :new > > modifies text in the old window (gVim 7.1.3

Re: ('|') in perldo

2008-11-19 Thread Matt Wozniski
On Wed, Nov 19, 2008 at 12:01 AM, Tony Mechelynck wrote: > > In external commands, | separates two processes to be run in such way > that the sysout of the first (cat) is fed on sysin to the second (grep). > (In this case you could, more simply, do "grep blah < > /var/log/messages"). Since Vim use

Re: How to wrap up

2008-11-19 Thread Peter Palm
Op woensdag 19 november 2008, schreef Ajay Jain: > Hi, Hi, > When I write a C code, I would like to wrap up after say 80 columns. > Can I do this in Vim? If yes, how? What are the related and useful > commands to wrap around while coding? :help wrap eventually leads to 'textwidth', press ] to

Re: gvim - environment/bashrc not loaded

2008-11-19 Thread Ben Schmidt
Aljosa Mohorovic wrote: > i have some paths and other stuff defined in bashrc and when i start > vim from command line everything works but when i use gvim it seems > like stuff i defined in bashrc are not loaded. > any idea what's wrong? > > Aljosa What operating system? What window manager? Et

gvim - environment/bashrc not loaded

2008-11-19 Thread Aljosa Mohorovic
i have some paths and other stuff defined in bashrc and when i start vim from command line everything works but when i use gvim it seems like stuff i defined in bashrc are not loaded. any idea what's wrong? Aljosa --~--~-~--~~~---~--~~ You received this message fro

Re: Convert XML strings to "plan text"?

2008-11-19 Thread David Fishburn
On Tue, Nov 18, 2008 at 4:46 PM, Matt <[EMAIL PROTECTED]> wrote: > > I am working with a monitoring tool that exports events to XML. In > many cases, long XML strings are part of the event detail, thus I wind > up with XML inside of XML where some characters are escaped (ex. > "'http://www.vim.org

Unsubscription of Account

2008-11-19 Thread Elennoel Bacongallo
Hi, I would to request, to unsubscribe my account at vim_use community for the reason as follows: 1. I'm not interested anymore on vim application 2. Every day i keep on cleaning my email due the flooded mails from the community. 3. I want my account at vim_use will be deleted as soon as possib

Re: Select 'v' Issue

2008-11-19 Thread Jürgen Krämer
Hi, Ajay Jain wrote: > > When I use the 'v' key and select a few lines, the color of the > selection is so light grey, that I fail to see what has been selected. > Could you tell me how to solve the issue? execute this command highlight Visual ctermbg=DarkGray guibg=DarkGray after you have

Re: Unsubscription of Account

2008-11-19 Thread Ben Schmidt
Just send a mail here: [EMAIL PROTECTED] and the system will unsubscribe you. Ben. Elennoel Bacongallo wrote: > Hi, > > I would to request, to unsubscribe my account at vim_use community for > the reason as follows: > > 1. I'm not interested anymore on vim application > 2. Every day i k

Re: Convert XML strings to "plan text"?

2008-11-19 Thread Tony Mechelynck
On 19/11/08 14:48, David Fishburn wrote: > On Tue, Nov 18, 2008 at 4:46 PM, Matt<[EMAIL PROTECTED]> wrote: >> I am working with a monitoring tool that exports events to XML. In >> many cases, long XML strings are part of the event detail, thus I wind >> up with XML inside of XML where some charac

Re: gvim - environment/bashrc not loaded

2008-11-19 Thread Tony Mechelynck
On 19/11/08 14:16, Ben Schmidt wrote: > Aljosa Mohorovic wrote: >> i have some paths and other stuff defined in bashrc and when i start >> vim from command line everything works but when i use gvim it seems >> like stuff i defined in bashrc are not loaded. >> any idea what's wrong? >> >> Aljosa >

Re: Auto Indent + 1 in insert mode or normal

2008-11-19 Thread fritzophrenic
On Nov 18, 9:09 pm, Tim Johnson <[EMAIL PROTECTED]> wrote: > Using vim 7.1 (huge version) on Kubuntu 7.10 > >  I would like to be able to type or Ctrl-J >  in insert mode and open a new line indented one >  more tab than the previous: >  example - type "block: []" >  move cursor between the bra

Re: gvim - environment/bashrc not loaded

2008-11-19 Thread Gary Johnson
On 2008-11-19, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > i have some paths and other stuff defined in bashrc and when i start > vim from command line everything works but when i use gvim it seems > like stuff i defined in bashrc are not loaded. > any idea what's wrong? Your bashrc is read by

RE: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Hansen, Mike
> Any kind of LISP is cool? Not for me. Refrigerating maybe. If > you want > Polish notation, give me FORTH. But in most cases a > structured language > like Vimscript is just what I need. (LISP(Lost (In) (Stupid) (Parentheses)) =) --~--~-~--~~~---~--~~ You r

Re: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Efraim Yawitz
On Wed, Nov 19, 2008 at 4:40 AM, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > > > Any kind of LISP is cool? Not for me. Refrigerating maybe. If you want > Polish notation, give me FORTH. But in most cases a structured language > like Vimscript is just what I need. > I guess I meant 'intellectually

Re: Select 'v' Issue

2008-11-19 Thread Roberto Miura Honji
You can choose a color, see the possibles in: help ctermbg 2008/11/19 Jürgen Krämer <[EMAIL PROTECTED]> > > > Hi, > > Ajay Jain wrote: > > > > When I use the 'v' key and select a few lines, the color of the > > selection is so light grey, that I fail to see what has been selected. > > Could you t

Re: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Tom Link
> (LISP(Lost (In) (Stupid) (Parentheses)) =) Come on folks. The elisp dialect is a pretty old one that AFAIK hasn't undergone any major changes for years. Nevertheless it's suitable to do all sorts of things and it is quite stable. elisp's weak spot is its dynamic binding. Otherwise it's cool an

align doesn't work

2008-11-19 Thread Cesar Romani
I'd like to align the following: a := baaa c := d ee := f Suppose I do an error and do: AlignCtrl w=:= and thereafter :%Align := it wouldn't align like expected and If I try to correct it by doing: AlignCtrl w= := and thereafter :%Align := it doesn't align anyway! Regards, Ce

Re: align doesn't work

2008-11-19 Thread Charles Campbell
Cesar Romani wrote: > I'd like to align the following: > >a := baaa > c := d >ee := f > > Suppose I do an error and do: > AlignCtrl w=:= > and thereafter :%Align := > > it wouldn't align like expected and If I try to correct it by doing: > AlignCtrl w= := > and thereafter :%Alig

Re: Spell: Vim didn't search automatically for a spell file in my language

2008-11-19 Thread Leandro Lucarella
On Jul 13, 12:04 pm, pqs <[EMAIL PROTECTED]> wrote: > On 12 Jul, 14:40, Michael Wagner <[EMAIL PROTECTED]> wrote: > > > I had the same problem here on my Debian Sid, but with the german spell > > files. You must download the files by your own from the net and put it > > in ~/.vim/spell. Look at vi

Re: Auto Indent + 1 in insert mode or normal

2008-11-19 Thread Tim Johnson
On Wednesday 19 November 2008, fritzophrenic wrote: > I would first suggest using an indentexpr or the indent ftplugin for > your file type. See :help 'indentexpr' and :help :filetype-indent-on > > If this doesn't work for you, a simple mapping will suffice. Great! I was looking for some refere

badd and syntax

2008-11-19 Thread Michal Kurgan
Hello! I've found strange behaviour in vim. When doing "autocmd VimEnter * nested badd ..." syntax highlight work as expected, means i see colors. I can use "bnext" and see colors in all badd'ed files. However if i do "autocmd VimEnter * nested source ..." and inside the file i use badd, then t

Re: external processes interaction

2008-11-19 Thread Noah
On Nov 18, 7:48 am, "Gene Kwiecinski" <[EMAIL PROTECTED]> wrote: > >What's the reasoning for not using external processes. Couldn't it just > >be added as a feature to get everyone happy? > > Because it'd have to be done for the 27 incarnations of Windows, the 426 > incarnations of *nix, for VMS

Re: external processes interaction

2008-11-19 Thread Bram Moolenaar
Luc Hermitte wrote: > "Bram Moolenaar" <[EMAIL PROTECTED]> wrote : > > I've been thinking of making the Vim spellcheck code available as a > > library, but simply don't have the time for it. > > It could be really nice. As a matter of fact, today > I was wondering how I could replace firefox s

Re: Spell: Vim didn't search automatically for a spell file in my language

2008-11-19 Thread Leandro Lucarella
Bram Moolenaar, el 19 de noviembre a las 22:01 me escribiste: > > I did: > > $ mkdir -p ~/.vim/spell > > > > and all worked like a charm. > > Try the replacement for runtime/autoload/spellfile.vim below. For Unix > it will create ~/.vim/spell if it doesn't exist yet. Let me know if you > spot

Re: Spell: Vim didn't search automatically for a spell file in my language

2008-11-19 Thread Bram Moolenaar
Leandro Lucarella wrote: > On Jul 13, 12:04=A0pm, pqs <[EMAIL PROTECTED]> wrote: > > On 12 Jul, 14:40, Michael Wagner <[EMAIL PROTECTED]> wrote: > > > > > I had the same problem here on my Debian Sid, but with the german spell > > > files. You must download the files by your own from the net and

Re: vimgdb in windows

2008-11-19 Thread Xavier de Gaye
On Wed, Nov 19, 2008 at 6:54 AM, StarWing <[EMAIL PROTECTED]> wrote: > > how can i compile the patched vim in windows? the vimgdb patch file > only patch the makefile of src, but when we compile in windows, we use > makefile_ming.mak(in vim72_extra.bz2), and not config.h, configure and > so on. so

RE: vim book dedicated to scripting

2008-11-19 Thread John Beckett
Scott Kostyshak wrote: > Alright, I'll give it a look. I guess learning by example > is the best way to go. There are lots of places to find examples of scripts. You might be interested in looking at the following which contain tips that I've worked on recently. http://vim.wikia.com/wiki/Deletin

Re: Introduce a PDF Viewer, and its behaviour like Vim

2008-11-19 Thread Alf
has windows version now. On Nov 12, 9:57 pm, "A. S. Budden" <[EMAIL PROTECTED]> wrote: > 2008/11/11 Alf <[EMAIL PROTECTED]>: > > > > > Apvlv is written by me. > > > It's a Vim-like pdf viewer. > > > Like Vim, Apvlv makes people reading their PDF files just like using Vim. > > > So, Apvlv bindings

how to count how many certain strings are in a file?

2008-11-19 Thread Peng Yu
Hi, Suppose I want search how many '>' is in a file. Is there an easy way to do it in vim? Thanks, Peng --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~

Re: how to count how many certain strings are in a file?

2008-11-19 Thread Roberto Miura Honji
One way, not right way, is: %s/>//g This tell you how many substitution was done. (how many '>' have in your file) after :undo 2008/11/20 Peng Yu <[EMAIL PROTECTED]> > > Hi, > > Suppose I want search how many '>' is in a file. Is there an easy way > to do it in vim? > > Thanks, > Peng > > > -

Re: how to count how many certain strings are in a file?

2008-11-19 Thread Tim Chase
> Suppose I want search how many '>' is in a file. Is there an easy way > to do it in vim? You can use the "n" flag to :s :%s/>//gn which you can learn more about at :help :s_flags :help count-items -tim --~--~-~--~~~---~--~~ You received this mes

Re: how to count how many certain strings are in a file?

2008-11-19 Thread Roberto Miura Honji
You can %s/>/>/g This way, undo is not necessary 2008/11/20 Roberto Miura Honji <[EMAIL PROTECTED]> > One way, not right way, is: > %s/>//g > > This tell you how many substitution was done. (how many '>' have in your > file) > > after > :undo > > 2008/11/20 Peng Yu <[EMAIL PROTECTED]> > > >> Hi,

How do I open :help in a new tab?

2008-11-19 Thread sergio acosta
This is kind of a vim newbee question. I don't like that the :help command opens always in a split window. I would like to be able to have it open in a new tab. Is there any way to force it to open in a new tab, or at least in the current full window? (in that case I can open a new empty tab bef

Re: how to count how many certain strings are in a file?

2008-11-19 Thread Tim Chase
> You can %s/>/>/g > This way, undo is not necessary For more complex ones, this can be written :%s/regexp/&/g However, even though you know this doesn't change anything, Vim still things that the content has been modified, and sets the 'modified' flag on the file. Using the "n" flag

Re: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Tony Mechelynck
On 19/11/08 18:11, Tom Link wrote: >> (LISP(Lost (In) (Stupid) (Parentheses)) =) > > Come on folks. The elisp dialect is a pretty old one that AFAIK hasn't > undergone any major changes for years. Nevertheless it's suitable to > do all sorts of things and it is quite stable. > > elisp's weak spot

RE: How do I open :help in a new tab?

2008-11-19 Thread John Beckett
sergio acosta wrote: > I don't like that the :help command opens always in a split > window. I would like to be able to have it open in a new tab. Much to my surprise, I just tried the following and it did what you want: :tab h pattern John --~--~-~--~~~---~--~---

Re: How do I open :help in a new tab?

2008-11-19 Thread Tony Mechelynck
On 20/11/08 05:44, John Beckett wrote: > sergio acosta wrote: >> I don't like that the :help command opens always in a split >> window. I would like to be able to have it open in a new tab. > > Much to my surprise, I just tried the following and it did what you want: > > :tab h pattern > > John N

Better feedback mechanism for Vim plugin scripts?

2008-11-19 Thread Hari
I might reflect the feeling of some of the plugin authors here that it is hard to receive good feedback from the users. Feed-back here, I mean, something more tangible than the Karma rating. I was thinking that if there was a simpler way to leave feedback about the plugin scripts then users might l

Re: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Teemu Likonen
Tony Mechelynck (2008-11-20 05:15 +0100) wrote: > On 19/11/08 18:11, Tom Link wrote: >> parentheses rock. > parentheses suck. Parentheses make it easy to see code in hierarchically structured units, even the smallest parts. It's also easy to evaluate any such unit interactively. (function1

Re: How do I open :help in a new tab?

2008-11-19 Thread Sergio Acosta
> On 20/11/08 05:44, John Beckett wrote: >> sergio acosta wrote: >>> I don't like that the :help command opens always in a split >>> window. I would like to be able to have it open in a new tab. >> >> Much to my surprise, I just tried the following and it did what you >> want: >> >> :tab h patte