RE: extending VIM

2012-09-03 Thread Nilesh Parmar (niparmar)
Thanks a lot, Tim for the suggestion. Regards, Nilesh -Original Message- From: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] On Behalf Of Tim Chase Sent: Tuesday, September 04, 2012 12:29 AM To: vim_use@googlegroups.com Cc: Nilesh Parmar Subject: Re: extending VIM On 09/03

Re: set comments for C-style comment

2012-09-03 Thread Simon Ruderich
On Mon, Sep 03, 2012 at 02:11:59PM -0700, Monnand wrote: > Thank you, Simon. I think they are executed. here is the output > of :verbose set fo? comments?: > > formatoptions=croq > Last set from ~/.vim/bundle/vim-golang/indent/go.vim > comments=sO:* -,mO:* ,exO:*/,s1:/*,mb:*,ex:*/,://

Re: vim tutor in Chinese to update

2012-09-03 Thread Bram Moolenaar
Alick Zhao wrote: > Recently I find that the English version of vim tutor file has version > 1.7 while the Chinese version v1.5. I would like to help update the > Chinese translation. In particular I will try to update the Simplified > Chinese version. Should I use hg to clone the repo and then a

Re: set comments for C-style comment

2012-09-03 Thread Monnand
On Monday, September 3, 2012 10:36:39 AM UTC-4, Simon Ruderich wrote: > On Sun, Sep 02, 2012 at 04:49:00PM -0700, Monnand wrote: > > > Hi all, > > > > > > I am using a language whose comment is same as C's. So I copied > > > some lines from c.vim so that my vim could automatically insert > > >

Re: extending VIM

2012-09-03 Thread Tim Chase
On 09/03/12 09:46, Nilesh Parmar wrote: > Hello Experts, > > I would like to learn how to extend Vim. Are there any good books or > resources I could refer? The first place I'd start would be to look through the catalog of currently-available scripts[1] to see if there's something similar to the

extending VIM

2012-09-03 Thread Nilesh Parmar
Hello Experts, I would like to learn how to extend Vim. Are there any good books or resources I could refer? Thanks, Nilesh -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.

Re: Shelling out to cygwin bash from Windows vim

2012-09-03 Thread AndyHancock
On Sep 2, 1:40 am, Gary Johnson wrote: > On 2012-09-01, AndyHancock wrote: > >          let &shell='c:\cygwin\bin\bash.exe ' . > >             \ --rcfile c:/cygwin/home/' . $USERNAME . '/.bashrc -i' > > Windows has to understand the path to the shell executable, but the > argument to --rcfile is i

Re: Vim for iPad

2012-09-03 Thread Benjamin Klein
On Sep 3, 2012, at 12:23 PM, Andrew Long wrote: > OK, sorry I can't be any more help (not that it was much in the first place!) > Ayway, I have nothing more. Oops. Sorry -- I think I actually was probably the one who was off-topic (the original discussion was about the Vim for iOS app, rather

Re: Vim for iPad

2012-09-03 Thread Andrew Long
On 3 Sep 2012, at 17:22, Benjamin Klein wrote: > On Sep 3, 2012, at 8:06 AM, Andrew Long wrote: > >> I thought I'd saved the original posts about vim on the iPad, but can't find >> them any more :-( > > These don’t refer to the Vim for iOS app but do refer to using Vim on an iPad > (via iSS

Re: Vim for iPad

2012-09-03 Thread Benjamin Klein
On Sep 3, 2012, at 8:06 AM, Andrew Long wrote: > I thought I'd saved the original posts about vim on the iPad, but can't find > them any more :-( These don’t refer to the Vim for iOS app but do refer to using Vim on an iPad (via iSSH… on a remote server [Linode]): http://yieldthought.com/pos

Re: recovery wrongly deletes almost 300 lines from large files

2012-09-03 Thread Bo Milvang-Jensen
On Wed, Aug 10, 2011 at 10:38:42PM +0200, Bram Moolenaar wrote: > > Bo Milvang-Jensen wrote: > > > I have found a bug in vim's recovery. > > To reproduce: create a file "test" with 4 lines, with each line > > containing 78 minuses, a la > > > > 78a- > > yy > > 3p > > :wq > > > > Copy th

Re: set comments for C-style comment

2012-09-03 Thread Simon Ruderich
On Sun, Sep 02, 2012 at 04:49:00PM -0700, Monnand wrote: > Hi all, > > I am using a language whose comment is same as C's. So I copied > some lines from c.vim so that my vim could automatically insert > a comment after a newline in the middle of the comment. > > More precisely, I added the two foll

Re: Vim for iPad

2012-09-03 Thread Andrew Long
On 3 Sep 2012, at 13:45, Benjamin Klein wrote: > On Sep 2, 2012, at 2:54 PM, "tux." wrote: > >> Doesn't the iPad support bluetooth keyboards like a good tablet does? > > It does, but generally has trouble with the Ctrl and Esc keys (which also of > course aren’t even on the built-in software

Re: Vim for iPad

2012-09-03 Thread Benjamin Klein
On Sep 2, 2012, at 2:54 PM, "tux." wrote: > Doesn't the iPad support bluetooth keyboards like a good tablet does? It does, but generally has trouble with the Ctrl and Esc keys (which also of course aren’t even on the built-in software keyboard, although I suppose a dedicated app could add thos

Help me brush up my first Vim script.

2012-09-03 Thread Oivvio Polite
I've been using Vim for a couple of years now and I've just written my first Vim script that is bit more ambitious than just cutting and pasting stuff I've found googling. It's a way to use the CLI task manager Taskwarrior (http://taskwarrior.org) from Vim. I've got some basic stuff working the wa