Friday, November 30, 2012

Re: email plugin

Hi Chris!

On Fr, 30 Nov 2012, Chris Lott wrote:

> On Fri, Nov 30, 2012 at 1:22 AM, Christian Brabandt <cblists@256bit.org> wrote:
> >
> > I use several handwritten plugin for fixing wrongly encoded characters
> > (e.g. change Ä into Ä and several others),
> > Deleting quoted Signatures, adding my Signature, changing subject,
> > setting options (textwidth, expandtab, formatoptions), reformatting the
> > text, spellchecking (this plugin was made before spell checking was
> > available in Vim), inserting special text, as well as custom completion
> > for addresses and attaching files (this functionality is available in
> > my CheckAttach plugin for use with mutt).
>
> Any chance you would share any of these?

Let me first document this a little bit. Currently it is just a bunch of
files and a little bit messy to share. I'll update here when I have
written down this a little bit, so you can more easily select what you
need.

regards,
Christian
--

--
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.org/maillist.php

Re: email plugin

On Sat, Dec 01, 2012 at 03:22 AM, Suresh Govindachar <sgovindachar@yahoo.com> wrote:
> Consider The Mail Suite (TMS):
> http://www.vim.org/scripts/script.php?script_id=1052

Your last release was made on 2004-09-08. I thought it's an abandoned project,
a dead end. So I didn't take any 2nd look at it

--
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.org/maillist.php

Re: email plugin

> when you launch vim to edit a piece of mail (or any other text), it *is*
> "real" Vim.
[..]
> I don't understand what you want that these solutions don't give you.

For example you don't have access back to your to your inbox if you edit an
email from an external editor. Anyway it seems like my problems are solved:


> ERROR: Error installing vmail:
> ERROR: Failed to build gem native extension.

It seems like the only piece I was missing was:
sudo apt-get install ruby1.9.1-dev

BTW I'm evaluating vmail just for about 30 minutes but I'm impressed already!
Wow! It works almost exactly as I wanted

Bost

--
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.org/maillist.php

Re: email plugin

On 11/30/2012 5:34 PM, Rostislav Svoboda wrote:
> I'd sum up this thread:
>
> 1. Vmail:
>
> This seems to be the kind of thing I look for. But it depends on
> sqlite3, ruby, lynx and maybe some other packages so get:
>
> ERROR: Error installing vmail:
> ERROR: Failed to build gem native extension.
>
> 2. Vim as an external editor for email client X (including mutt and
> "Text Editor Anywhere"):
>
> This is exactly the opposite of what I'd like to achieve. I'd like to
> have _real_ vim plugin for emailing so I can take advantage of some
> other plugins, omni completion, scripting, folding... all that stuff
> where vim excels.
>
> You may oppose: "So you want vim to be like that Operating System
> lacking a decent editor?". Yes, sort of. I think there's a point
> having everything under one roof: The synergy effect.
>
> Thanks for your replies
>
> Bost
>


Consider The Mail Suite (TMS):
http://www.vim.org/scripts/script.php?script_id=1052

I used to use this for many years when I was on 32-bit Microsoft
Windows. Since I moved to 64 bit, I have not been able to find or to
build Vim with support for 64 bit perl, and so am not sure what tweaks
will need to be done to make it work under 64 bit Microsoft Windows and
64 bit perl. Also, when I had access to a linux system, I had verified
that TMS works there; no idea what tweaks will need to be done to make
TMS work under newer linux releases.

--Suresh


--
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.org/maillist.php

Re: email plugin

On Fri, Nov 30, 2012 at 4:34 PM, Rostislav Svoboda
<rostislav.svoboda@gmail.com> wrote:
>
> 2. Vim as an external editor for email client X (including mutt and
> "Text Editor Anywhere"):
>
> This is exactly the opposite of what I'd like to achieve. I'd like to
> have _real_ vim plugin for emailing so I can take advantage of some
> other plugins, omni completion, scripting, folding... all that stuff
> where vim excels.

This doesn't make sense to me...when you launch vim to edit a piece of
mail (or any other text), it *is* "real" Vim. I use Pentadactly and
gmail...when I am composing email I am in Vim with all the plugins,
completion, etc (I tend to compose plain text emails in Markdown, so I
use the appropriate filetypes and syntax files, etc.

I don't understand what you want that these solutions don't give you.

c
--
Chris Lott <chris@chrislott.org>

--
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.org/maillist.php

Re: email plugin

I'd sum up this thread:

1. Vmail:

This seems to be the kind of thing I look for. But it depends on
sqlite3, ruby, lynx and maybe some other packages so get:

ERROR: Error installing vmail:
ERROR: Failed to build gem native extension.

2. Vim as an external editor for email client X (including mutt and
"Text Editor Anywhere"):

This is exactly the opposite of what I'd like to achieve. I'd like to
have _real_ vim plugin for emailing so I can take advantage of some
other plugins, omni completion, scripting, folding... all that stuff
where vim excels.

You may oppose: "So you want vim to be like that Operating System
lacking a decent editor?". Yes, sort of. I think there's a point
having everything under one roof: The synergy effect.

Thanks for your replies

Bost

--
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.org/maillist.php

Re: Subdirectories for help files

2012-11-19 Charles Campbell:

Hi Charles

> There's a new patch out that allows subdirectories in help. Actually,
> its not a limitation of the help or tags, but rather of the :helptags
> command.

I'm sorry to get back so late on this. I just compiled my new vim
and it seems to work fine.

> Admittedly experimental.

I did a few tests and it seems to work.

> The patch is at http://www.drchip.org/astronaut/vim/index.html#HELPTAGS .

Thanks a lot for looking into this and taking the time to write a
patch that solves my issue.


Marco


--
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.org/maillist.php

Re: email plugin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQuSXcAAoJEFDgLr75E3sPMDYIALssHGOdp2TCDrv2ZfM/oAxE
utMg6eOK2TovrhHk45gfqycppQkU3YdMm5IoSajXxm7Dm8fK7FxTHFdT6VzVxn9f
eOOSznLiIuwGU5+9ABooNosDHgp5oUJHal4udqN0xHA9vmUfDee5hVORWirLrVQb
oRjtPjpxHvhqhUoGgIWsufkyG2KeFkjTwza9d4IWwH9An7LSfZJB2LCr68WC1Cay
usnWgijJ5MLixCn1tfywGAublg97V+JJfKjOK+dY4Osr4He8Yq0m669J4rLKr1s3
6Rg6Y0RxdTwVVgbnqvIAHTC9IToi9zAeUFB5G+W0OETMjEuxktfhlnwrVM9ygeE=
=6YT6
-----END PGP SIGNATURE-----
On 11/30/2012 06:22 PM, Reid Thompson wrote:
> On Fri, 2012-11-30 at 13:00 -0500, ping wrote:
>> thanks. I'll test it out.
>> ...
>>
>> but I seems unlucky -- I can't even get it installed (ubuntu 64bit
>> 12.04)
>>
>> ping@640g-laptop:~$ sudo gem install vmail
>> [sudo] password for ping:
>> Fetching: mime-types-1.19.gem (100%)
>> Successfully installed mime-types-1.19
>> Fetching: polyglot-0.3.3.gem (100%)
>> Successfully installed polyglot-0.3.3
>> Fetching: treetop-1.4.12.gem (100%)
>> Successfully installed treetop-1.4.12
>> Fetching: mail-2.5.2.gem (100%)
>> Successfully installed mail-2.5.2
>> Fetching: highline-1.6.15.gem (100%)
>> Successfully installed highline-1.6.15
>> Fetching: sequel-3.41.0.gem (100%)
>> Successfully installed sequel-3.41.0
>> Fetching: sqlite3-1.3.6.gem (100%)
>> Building native extensions. This could take a while...
>> ERROR: Error installing vmail:
>> ERROR: Failed to build gem native extension.
>>
>> /usr/bin/ruby1.8 extconf.rb
>> checking for sqlite3.h... no
>> sqlite3.h is missing. Try 'port install sqlite3 +universal'
>> or 'yum install sqlite-devel' and check your shared library search
>> path (the
>> location where your sqlite3 shared library is located).
>> *** extconf.rb failed ***
>> Could not create Makefile due to some reason, probably lack of
>> necessary libraries and/or headers. Check the mkmf.log file for more
>> details. You may need configuration options.
>>
>> Provided configuration options:
>> --with-opt-dir
>> --without-opt-dir
>> --with-opt-include
>> --without-opt-include=${opt-dir}/include
>> --with-opt-lib
>> --without-opt-lib=${opt-dir}/lib
>> --with-make-prog
>> --without-make-prog
>> --srcdir=.
>> --curdir
>> --ruby=/usr/bin/ruby1.8
>> --with-sqlite3-dir
>> --without-sqlite3-dir
>> --with-sqlite3-include
>> --without-sqlite3-include=${sqlite3-dir}/include
>> --with-sqlite3-lib
>> --without-sqlite3-lib=${sqlite3-dir}/lib
>> --enable-local
>> --disable-local
>>
>>
>> Gem files will remain installed
>> in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6 for inspection.
>> Results logged
>> to /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out
>> ping@640g-laptop:~$
>>
>> you have any issues when installing or knowning of any tricks to
>> resolve
>> that?
>>
>>
>>
>> On 11/30/2012 09:02 AM, Grahame Blackwood wrote:
>>> Hi Ping
>>>
>>> Not that I am aware of, but it is good for gmail and I'm using it
>>> right now for this email.
>>>
>>> Cheers

>
> apt-get install sqlite3 and sqlite3-devel, etc, etc
>

You may also find it worth your while looking at RVM - the Ruby Version
Manager <https://rvm.io/> if you're going to start using Ruby. Very
lively, happening community with great support & documentation.

Cheers,

Phil...


--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical, OS
X Snow Leopard & Ubuntu Precise & Quantal

Re: email plugin

On Fri, 2012-11-30 at 13:00 -0500, ping wrote:
> thanks. I'll test it out.
> ...
>
> but I seems unlucky -- I can't even get it installed (ubuntu 64bit
> 12.04)
>
> ping@640g-laptop:~$ sudo gem install vmail
> [sudo] password for ping:
> Fetching: mime-types-1.19.gem (100%)
> Successfully installed mime-types-1.19
> Fetching: polyglot-0.3.3.gem (100%)
> Successfully installed polyglot-0.3.3
> Fetching: treetop-1.4.12.gem (100%)
> Successfully installed treetop-1.4.12
> Fetching: mail-2.5.2.gem (100%)
> Successfully installed mail-2.5.2
> Fetching: highline-1.6.15.gem (100%)
> Successfully installed highline-1.6.15
> Fetching: sequel-3.41.0.gem (100%)
> Successfully installed sequel-3.41.0
> Fetching: sqlite3-1.3.6.gem (100%)
> Building native extensions. This could take a while...
> ERROR: Error installing vmail:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby1.8 extconf.rb
> checking for sqlite3.h... no
> sqlite3.h is missing. Try 'port install sqlite3 +universal'
> or 'yum install sqlite-devel' and check your shared library search
> path (the
> location where your sqlite3 shared library is located).
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
>
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby=/usr/bin/ruby1.8
> --with-sqlite3-dir
> --without-sqlite3-dir
> --with-sqlite3-include
> --without-sqlite3-include=${sqlite3-dir}/include
> --with-sqlite3-lib
> --without-sqlite3-lib=${sqlite3-dir}/lib
> --enable-local
> --disable-local
>
>
> Gem files will remain installed
> in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6 for inspection.
> Results logged
> to /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out
> ping@640g-laptop:~$
>
> you have any issues when installing or knowning of any tricks to
> resolve
> that?
>
>
>
> On 11/30/2012 09:02 AM, Grahame Blackwood wrote:
> > Hi Ping
> >
> > Not that I am aware of, but it is good for gmail and I'm using it
> > right now for this email.
> >
> > Cheers
>
>
>
>


apt-get install sqlite3 and sqlite3-devel, etc, etc

--
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.org/maillist.php

Re: email plugin




2012/11/30 Dan Wierenga <dwierenga@gmail.com>



On Fri, Nov 30, 2012 at 4:50 AM, Ping <songpingemail@gmail.com> wrote:
> I use text editor anywhere.
> With a shortcut my email (or email selection) is send to Vim.
how?


He should have written "Text Editor Anywhere" to properly differentiate a software application name from plain ol' English.  

wow~ wonderful!~

--
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.org/maillist.php



--
*******************************************************  Name    :   Anhong He  Tel     :   315-706-6805  Addr    :   939 Westcott St, Syracuse, NY, 13210  Email   :   anhonghe@gmail.com  *******************************************************

--
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.org/maillist.php

Re: email plugin

thanks. I'll test it out.
...

but I seems unlucky -- I can't even get it installed (ubuntu 64bit
12.04)

ping@640g-laptop:~$ sudo gem install vmail
[sudo] password for ping:
Fetching: mime-types-1.19.gem (100%)
Successfully installed mime-types-1.19
Fetching: polyglot-0.3.3.gem (100%)
Successfully installed polyglot-0.3.3
Fetching: treetop-1.4.12.gem (100%)
Successfully installed treetop-1.4.12
Fetching: mail-2.5.2.gem (100%)
Successfully installed mail-2.5.2
Fetching: highline-1.6.15.gem (100%)
Successfully installed highline-1.6.15
Fetching: sequel-3.41.0.gem (100%)
Successfully installed sequel-3.41.0
Fetching: sqlite3-1.3.6.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing vmail:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby1.8
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib
        --enable-local
        --disable-local


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out
ping@640g-laptop:~$

you have any issues when installing or knowning of any tricks to resolve
that?



On 11/30/2012 09:02 AM, Grahame Blackwood wrote:
> Hi Ping
>
> Not that I am aware of, but it is good for gmail and I'm using it
> right now for this email.
>
> Cheers



Re: email plugin


this works great. thanks for sharing.

now a even "nerd" request, (not related to this thread, but since a lot
of people here are both TB&VIM user ):
    with VIM we know how to generate beautiful HTML right (e.g :TOhtml),
    so is there a good way to insert the VIM generated HTML code into
    the email?

    I know there is a "Insert" "HTML..." dialog, but it's really not
    convenient...need to find that option out and do copy & paste..

    the goal is to make what VIM generated email in the fancy HTML
    format usable in TB...
    
    or any other plugins?

b.t.w this reply was composed from vim in TB :)



On 11/30/2012 11:01 AM, Reid Thompson wrote:
> go here http://globs.org/articles.php?lng=en&pg=2
> click on the download tab at the top
> select external editor
> download version 1.0.0
> install it using the tbird addons page
> restart
> go to the addons page and select the preferences button for external
> editor
> in the field, type
> gvim -f
> click ok
>
> click write to open an new composer window
> click on view/toolbars/customize
> drag the external editor button on to the toolbar
> click the 'Gvim' button
> compose
> :wq
> CTRL-E



Re: email plugin




On Fri, Nov 30, 2012 at 4:50 AM, Ping <songpingemail@gmail.com> wrote:
> I use text editor anywhere.
> With a shortcut my email (or email selection) is send to Vim.
how?


He should have written "Text Editor Anywhere" to properly differentiate a software application name from plain ol' English.  


--
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.org/maillist.php

Re: email plugin

On Fri, Nov 30, 2012 at 1:22 AM, Christian Brabandt <cblists@256bit.org> wrote:
>
> I use several handwritten plugin for fixing wrongly encoded characters
> (e.g. change Ä into Ä and several others),
> Deleting quoted Signatures, adding my Signature, changing subject,
> setting options (textwidth, expandtab, formatoptions), reformatting the
> text, spellchecking (this plugin was made before spell checking was
> available in Vim), inserting special text, as well as custom completion
> for addresses and attaching files (this functionality is available in
> my CheckAttach plugin for use with mutt).

Any chance you would share any of these?

c
--
Chris Lott <chris@chrislott.org>

--
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.org/maillist.php

Re: email plugin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQuOB1AAoJEFDgLr75E3sPsF8IAKSvYrRNZrHcRAPynnRB3+/Z
yrSWYT1e/aQPhgSaCqaHL4m2+xD698kZSf+KbSTmIJCvlmBf4zeGnUVcBmanG+9l
jj5X/rC6TA3SYEl4Vbxu3NlMrwtesn7Og6HP+8bXRPzx40nIpAK60g3A2VNzJ8Sw
ki38TBs+yiiMDyMJz/qdLKcBLpeUvrV5CPSGUEjf5NC7q1aKaPrX7HdZ1JX56v5V
ult2+nMify/1mJgLALK91Layqff9i8YOnamZ3u90iQxDRSooZi+Da+NQFyp4xukU
mKRQgSwObzSQ63d/WYTGYKHDaCg7Rts0NaKKRN4wYpJlCmttiTHV1mMI3uIalBY=
=1v0P
-----END PGP SIGNATURE-----
On 11/30/2012 04:01 PM, Reid Thompson wrote:

> On Fri, 2012-11-30 at 15:33 +0000, Phil Dobbin wrote:
>> On 11/30/2012 03:28 PM, Reid Thompson wrote:
>>
>>> On Fri, 2012-11-30 at 15:12 +0000, Phil Dobbin wrote:
>>>> On 11/30/2012 01:30 PM, Reid Thompson wrote:
>>>>
>>>>> On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
>>>>>> If you are looking for an email client
>>>>>> that can use vim as the editor,
>>>>>> I am happy with Sylpheed,
>>>>>> Simple and fast.
>>>>>>
>>>>>> Bill
>>>>>>
>>>>>
>>>>> you can configure evolution and thunderbird to use gvim as an external
>>>>> editor - I'm using gvim with evolution to compose this email.
>>>>
>>>> Is Thunderbird integration via a plugin as I can see nothing in
>>>> Thunderbird 16.0.2 on Linux to suggest it's natively integrated?
>>
>>> search addons for 'external editor'
>>
>> On Fedora 17 & TBird 16.0.2, all I get is 'Saved Passwords Editor' &
>> 'External Email Alert'.
>>
>> Cheers,
>>
>> Phil...
>>
>
> go here http://globs.org/articles.php?lng=en&pg=2
> click on the download tab at the top
> select external editor
> download version 1.0.0
> install it using the tbird addons page
> restart
> go to the addons page and select the preferences button for external
> editor
> in the field, type
> gvim -f
> click ok
>
> click write to open an new composer window
> click on view/toolbars/customize
> drag the external editor button on to the toolbar
> click the 'Gvim' button
> compose
> :wq
> CTRL-E

Excellent. Thanks very much.

Cheers,

Phil...

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical, OS
X Snow Leopard & Ubuntu Precise & Quantal

Re: email plugin

On Fri, 2012-11-30 at 15:33 +0000, Phil Dobbin wrote:
> On 11/30/2012 03:28 PM, Reid Thompson wrote:
>
> > On Fri, 2012-11-30 at 15:12 +0000, Phil Dobbin wrote:
> >> On 11/30/2012 01:30 PM, Reid Thompson wrote:
> >>
> >>> On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
> >>>> If you are looking for an email client
> >>>> that can use vim as the editor,
> >>>> I am happy with Sylpheed,
> >>>> Simple and fast.
> >>>>
> >>>> Bill
> >>>>
> >>>
> >>> you can configure evolution and thunderbird to use gvim as an external
> >>> editor - I'm using gvim with evolution to compose this email.
> >>
> >> Is Thunderbird integration via a plugin as I can see nothing in
> >> Thunderbird 16.0.2 on Linux to suggest it's natively integrated?
>
> > search addons for 'external editor'
>
> On Fedora 17 & TBird 16.0.2, all I get is 'Saved Passwords Editor' &
> 'External Email Alert'.
>
> Cheers,
>
> Phil...
>

go here http://globs.org/articles.php?lng=en&pg=2
click on the download tab at the top
select external editor
download version 1.0.0
install it using the tbird addons page
restart
go to the addons page and select the preferences button for external
editor
in the field, type
gvim -f
click ok

click write to open an new composer window
click on view/toolbars/customize
drag the external editor button on to the toolbar
click the 'Gvim' button
compose
:wq
CTRL-E



--
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.org/maillist.php

Re: email plugin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQuNG3AAoJEFDgLr75E3sPR0IH/jV/LZh+05N3rCIla1gxdUUh
Z2mSZxLf181y+C56XHBeUKkmPZtZRWzDVVY2pT1HTCUi0kUjpMGgaq460Gdu/L6o
aa9oavUOyl2+U8HwWI06ZQrvE4y4pr+24422drvz3kI3StRHYh5jhkNvq7SNzPGb
S8xXTBDCeSdheQrLuqHlv1L4KwH4eghcm0XGbb5pktpKO+pfsXJZtJfG0yJZlsS4
8BC3Jnr/BOsvxa5sKOAZjk3AzwdzOB39Pvx6mM9Z5y+o5VKNf19egGRNaN2S7pJq
FQE5px9WUKIrc+MSsExqFVlstVTbQM4ZbSra2F6fuVrfKoKs9nrP4uKx8FUE92g=
=bbXg
-----END PGP SIGNATURE-----
On 11/30/2012 03:28 PM, Reid Thompson wrote:

> On Fri, 2012-11-30 at 15:12 +0000, Phil Dobbin wrote:
>> On 11/30/2012 01:30 PM, Reid Thompson wrote:
>>
>>> On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
>>>> If you are looking for an email client
>>>> that can use vim as the editor,
>>>> I am happy with Sylpheed,
>>>> Simple and fast.
>>>>
>>>> Bill
>>>>
>>>
>>> you can configure evolution and thunderbird to use gvim as an external
>>> editor - I'm using gvim with evolution to compose this email.
>>
>> Is Thunderbird integration via a plugin as I can see nothing in
>> Thunderbird 16.0.2 on Linux to suggest it's natively integrated?

> search addons for 'external editor'

On Fedora 17 & TBird 16.0.2, all I get is 'Saved Passwords Editor' &
'External Email Alert'.

Cheers,

Phil...

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical, OS
X Snow Leopard & Ubuntu Precise & Quantal

Re: Indenting Based on Unbalanced Paranthesis


On Thu, Nov 29, 2012 at 6:24 PM, Danny Gratzer <danny.gratzer@gmail.com> wrote:
I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:

...

Not sure if you have looked into this plugin:

IndentAnything : Write indentations or enhance existing indentations without writing code 

It can make writing an indent file very easy, it really depends on your rules and how anal you might want to be.

Certainly worth a look.

HTH,
David
  

--
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.org/maillist.php

Re: email plugin

On Fri, 2012-11-30 at 15:12 +0000, Phil Dobbin wrote:
> On 11/30/2012 01:30 PM, Reid Thompson wrote:
>
> > On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
> >> If you are looking for an email client
> >> that can use vim as the editor,
> >> I am happy with Sylpheed,
> >> Simple and fast.
> >>
> >> Bill
> >>
> >
> > you can configure evolution and thunderbird to use gvim as an external
> > editor - I'm using gvim with evolution to compose this email.
>
> Is Thunderbird integration via a plugin as I can see nothing in
> Thunderbird 16.0.2 on Linux to suggest it's natively integrated?
>
> Cheers,
>
> Phil...
>

search addons for 'external editor'


--
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.org/maillist.php

Re: email plugin


On Thu, Nov 29, 2012 at 6:05 PM, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:
Is there any good email plugin you can recommend me guys? It seems
like there isn't any star plugin for handling emails in vim, in fact
google search doesn't return many useful links to this topic. So, I'd
like to hear your tips & comments before I plunge in an evaluation of
the existing plugins. Thanx in advance

You didn't mention your platform, so I might as well:

<plug>
If you are on Windows and using Microsoft Outlook:

OutlookVim : Use Vim to edit the body of an email from Microsoft Outlook 

This gets the email into Vim, from there, the filetype is set to "mail" and I have a variety of Vim scripts which make my life easier.
  
</plug>

HTH,
David

--
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.org/maillist.php

Re: email plugin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQuMzSAAoJEFDgLr75E3sPFqUIAJibm7mVdnmpwjc/uqzl4iLV
ocGhdvBpJhPoDyeVlvd/PkhZu7w6alEljoLhqKfoAF9lRVRR9/wpv8u5f5FZUQa9
ynzf9iAFi4tZegX6zV3YdqqJBlp2amWAnvWPhEgZc7+4HAEpGgASQHxu5fhJKKEQ
ozu5W4RLQMzZtbr4hA3C0zQg+C7YiKY/fvk6cVF3LnYxbUIq9cUBICLsW46tc5/Q
SFg56CUcAt7j1YjFOF4vNpHA/FE/8U5N9bRlKVOhcGMrTaTCGENB4hxGGFhPmbNx
GR42Lec9B+xVYjPpTyAcyO+OHY2SbM8A6ItQklUmyIdUr7uYXU7w9/xNVzr+n/M=
=evG4
-----END PGP SIGNATURE-----
On 11/30/2012 01:30 PM, Reid Thompson wrote:

> On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
>> If you are looking for an email client
>> that can use vim as the editor,
>> I am happy with Sylpheed,
>> Simple and fast.
>>
>> Bill
>>
>
> you can configure evolution and thunderbird to use gvim as an external
> editor - I'm using gvim with evolution to compose this email.

Is Thunderbird integration via a plugin as I can see nothing in
Thunderbird 16.0.2 on Linux to suggest it's natively integrated?

Cheers,

Phil...

--
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical, OS
X Snow Leopard & Ubuntu Precise & Quantal

Re: email plugin

On Fri, Nov 30, 2012 at 12:56 PM, Ping <songpingemail@gmail.com> wrote:

> from: Ping <songpingemail@gmail.com>
> date: Fri, Nov 30 07:56 AM -05:00 2012
> to: "vim_use@googlegroups.com" <vim_use@googlegroups.com>
> cc: "vim_use@googlegroups.com" <vim_use@googlegroups.com>
> reply-to: vim_use@googlegroups.com
> subject: Re: email plugin
>
> Does it also work for other non-gmail email?
>
> Sent from my iPhone
>
> On Nov 30, 2012, at 6:14 AM, Grahame Blackwood <grahameblackwood@gmail.com> wrote:
>
>> Perhaps you might find vmail by Daniel Choi useful.
>>
>> http://danielchoi.com/software/vmail.html
>>
>> Cheers
>
> --
> 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.org/maillist.php

Hi Ping

Not that I am aware of, but it is good for gmail and I'm using it
right now for this email.

Cheers

G

--
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.org/maillist.php

Re: email plugin

On Thu, 2012-11-29 at 17:07 -0800, Bee wrote:
> If you are looking for an email client
> that can use vim as the editor,
> I am happy with Sylpheed,
> Simple and fast.
>
> Bill
>

you can configure evolution and thunderbird to use gvim as an external
editor - I'm using gvim with evolution to compose this email.

reid


--
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.org/maillist.php

Re: email plugin

Does it also work for other non-gmail email?

Sent from my iPhone

On Nov 30, 2012, at 6:14 AM, Grahame Blackwood <grahameblackwood@gmail.com> wrote:

> Perhaps you might find vmail by Daniel Choi useful.
>
> http://danielchoi.com/software/vmail.html
>
> Cheers

--
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.org/maillist.php

Re: email plugin

What are these fancy plugins that u like(and tested to be good)?

On Nov 30, 2012, at 5:22 AM, "Christian Brabandt" <cblists@256bit.org> wrote:

> use several handwritten plugin for fixing wrongly encoded characters
> (e.g. change Ä into Ä and several others),
> Deleting quoted Signatures, adding my Signature, changing subject,
> setting options (textwidth, expandtab, formatoptions), reformatting the
> text, spellchecking (this plugin was made before spell checking was
> available in Vim), inserting special text, as well as custom completion
> for addresses and attaching files (this functionality is available in
> my CheckAttach plugin for use with mutt).
>
> regards,
> Christian

--
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.org/maillist.php

Re: email plugin

On Nov 30, 2012, at 2:49 AM, rameo <raiwil@gmail.com> wrote:

> On Friday, November 30, 2012 12:05:41 AM UTC+1, Bost wrote:
>> Is there any good email plugin you can recommend me guys? It seems
>>
>> like there isn't any star plugin for handling emails in vim, in fact
>>
>> google search doesn't return many useful links to this topic. So, I'd
>>
>> like to hear your tips & comments before I plunge in an evaluation of
>>
>> the existing plugins. Thanx in advance
>>
>>
>>
>> Bost
>
> I use text editor anywhere.
> With a shortcut my email (or email selection) is send to Vim.
how?
> Then I write my email, save it and close Vim.
> Then I go back to my email client and my email has been updated.
>
How?
> --
> 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.org/maillist.php

--
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.org/maillist.php

Re: email plugin

Hi Bost

Perhaps you might find vmail by Daniel Choi useful.

http://danielchoi.com/software/vmail.html

Cheers

G

On Thu, Nov 29, 2012 at 11:05 PM, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:

> from: Rostislav Svoboda <rostislav.svoboda@gmail.com>
> date: Fri, Nov 30 12:05 AM +01:00 2012
> to: vim_use@googlegroups.com
> reply-to: vim_use@googlegroups.com
> subject: email plugin
>
> Is there any good email plugin you can recommend me guys? It seems
> like there isn't any star plugin for handling emails in vim, in fact
> google search doesn't return many useful links to this topic. So, I'd
> like to hear your tips & comments before I plunge in an evaluation of
> the existing plugins. Thanx in advance
>
> Bost
>
> --
> 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.org/maillist.php

--
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.org/maillist.php

Re: Vim + tmux with mouse support questions

i don't have a solution for you - I saw this same thing with tmux and
found :res / :vertical resize or C-W -/+, </>, =/| actually worked
faster anyway. more fluid too. so, if anyone has a solution, i'll
probably use it just to be able to show off vim coolness with the
mouse again, but it won't do anything for my productivity :)

this is not (necessarily) an issue with putty as i use rxvt+u and
screen-256color terminal

also, this is with mouse=all with vim 7.3

i'm guessing this is a tmux issue where it is stealing whatever mouse
terminal command or signal (i don't really know how mice interact with
the terminal) vim would use to respond the way you want. if this is
the case, and you get no working response, there's a tmux user list as
well with a decent community you might look to. (though something like
this should go in vim's faq somewhere)


On Thu, Nov 29, 2012 at 6:51 PM, xiebo212 <xiebo212@gmail.com> wrote:
> Hi,
>
> I am pretty new for vim and tmux, and exploring right now. I have vim set up
> on terminal (using putty) with mouse support, but when I moved to tmux.
> Found a couple of problems.
>
> (1) I like quickfix window, use :ccopen to open quickfix window in vim, and
> I can resize the quickfix window with mouse without any problem. But in tmux
> + vim, mouse doesn't seem to work in resizing quickfix window (using mouse
> to click into quickfix window is fine). Note that I was able to use mouse to
> select/resize pan in tmux by the following settings.
> set-option -g mode-mouse on
> set-option -g mouse-select-pane on
> set-option -g mouse-select-window on
> set-option -g mouse-resize-pane on
>
> The problem here seems to be, how to enable mouse to resize a
> window(quickfix window, NOT tmux window) inside one tmux pane.
>
> (2) I installed and enabled ctags and taglist in my vim setup. I can use
> mouse to resize taglist window. But when I moved to tmux, taglist window can
> still be opened and entered, but the window resize using mouse seems
> disabled. This is similiar situation in quickfix window.
>
> Does anybody has an idea about how to fix these problems? I wish I can
> entirely move to tmux using vim+mouse to improve productivity.
>
> Thanks a lot,
> Bo
>
>
>
> --
> View this message in context: http://vim.1045645.n5.nabble.com/Vim-tmux-with-mouse-support-questions-tp5712363.html
> Sent from the Vim - General mailing list archive at Nabble.com.
>
> --
> 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.org/maillist.php

--
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.org/maillist.php

Re: email plugin

On Fri, November 30, 2012 00:05, Rostislav Svoboda wrote:
> Is there any good email plugin you can recommend me guys? It seems
> like there isn't any star plugin for handling emails in vim, in fact
> google search doesn't return many useful links to this topic. So, I'd
> like to hear your tips & comments before I plunge in an evaluation of
> the existing plugins. Thanx in advance
>

I use several handwritten plugin for fixing wrongly encoded characters
(e.g. change Ä into Ä and several others),
Deleting quoted Signatures, adding my Signature, changing subject,
setting options (textwidth, expandtab, formatoptions), reformatting the
text, spellchecking (this plugin was made before spell checking was
available in Vim), inserting special text, as well as custom completion
for addresses and attaching files (this functionality is available in
my CheckAttach plugin for use with mutt).

regards,
Christian

--
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.org/maillist.php

Re: Interpretation of extension fields in tags file

On Wed, 28 Nov 2012 17:04:49 +0100
Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:

> On 28/11/12 16:20, Johannes Deutsch wrote:
> > Hello list,
> >
> > related to the generation of a tags file via ctags one finds almost
> > always the following options switched on (googling for "vim ctags
> > field"):
> >
> > ctags --fields=+iaS \
> > --extra=+q [other_options] [files/dirs]
> >
> > With respect to the three additional fields, added to the tags file
> > by the switch '--fields=+iaS', vim's help (:h tag-old-static) tells
> > me
> >
> > There is one field that doesn't have a ':'. This is the
> > kind of the tag. It is handled like it was preceded with "kind:".
> > See the documentation of ctags for the kinds it produces.
> >
> > The only other field currently recognized by Vim is "file:"
> > (with an empty value). It is used for a static tag.
> >
> > I can't find anything about the fields that contains the signature
> > of routine (S), access of class members (a) and inheritance
> > information (i).
> >
> > In the light of vim's help I wonder why i find so many
> > sites that evokes --fields=+iaS?
> >
> > Is vim able to use the extension fields out of the box? Or maybe
> > there is another explanation why extension fields are so popular!?
> >
> > Thanks a lot for your time and best regards
> >
> > Johannes
> >
>
> The taglist() function returns a List of Dictionaries (one Dictionary
> per matching tag) which (IIUC) gives you access to this info.
>
> see :help taglist()
>

Thank you for your answer.

Do you know any vim scripts that make the key:value pairs returned by
taglist() easy accessible to the user? In particular i think about
adding information to the drop down completion menu. Currently it only
shows the value of name, kind and cmd. Can the user change the entries
that are shown?


>
> Best regards,
> Tony.

--
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.org/maillist.php

Thursday, November 29, 2012

Re: email plugin

On Friday, November 30, 2012 12:05:41 AM UTC+1, Bost wrote:
> Is there any good email plugin you can recommend me guys? It seems
>
> like there isn't any star plugin for handling emails in vim, in fact
>
> google search doesn't return many useful links to this topic. So, I'd
>
> like to hear your tips & comments before I plunge in an evaluation of
>
> the existing plugins. Thanx in advance
>
>
>
> Bost

I use text editor anywhere.
With a shortcut my email (or email selection) is send to Vim.
Then I write my email, save it and close Vim.
Then I go back to my email client and my email has been updated.

--
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.org/maillist.php

Re: email plugin

On 29.11.12 18:48, ping wrote:
> like most open-source projects, very nice idea plus great
> apps, but never good docs/tuturials..(except vim)

The mutt documentation is available on the <F1> key, and is very
detailed and informative. The capabilities of mutt are significant, so
acquiring not just knowledge, but understanding, involves effort. That
is commonly the price paid for FOSS. The mutt-users mailing list is a
good place to ask why what you have tried is not working as expected.

> I wanted to start a project to move to mutt after I enjoyed the power
> of vim. but after hesitate of hesitate I still is hesitating.

Buy something from M$, then?

> initially you want to save your time by using some fancy tools, then
> you have to spend the rest of your life to learn (mostly guess, test,
> error and retry, little by little) that tiny little thing , just in
> order to "save your time". Sometime I'm thinking whether this worth
> or not...
> as of vim, my enthusiasm was mostly "retained" because of the
> enthusiasm of peoples (like you guys here) who is always willing to
> share/help...

The more you learn, over the decades, the harder it is to retain it all¹.
My personal software survival notes now amount to several hundred pages.
They avoid the need to learn stuff several times over - the effort of
doing it once is enough.

It is worth remembering that little understanding is needed in order to
get started, and all the handy customisations can be configured over
years, as the need becomes evident, and a method is learnt. (The '?'
command help is also useful in the beginning)

Put these lines in your ~/.muttrc

set editor=vim
set tilde # Show End of Text, like in vim.

Now vim is a "plug-in" for mutt, and you have leveraged your vim
knowledge.

Erik

¹ Soft errors in the aging wetware RAM don't help either.

--
Telephone books are like dictionaries -- if you know the answer before
you look it up, you can eventually reaffirm what you thought you knew
but weren't sure. But if you're searching for something you don't
already know, your fingers could walk themselves to death.
- Erma Bombeck

--
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.org/maillist.php

Re: email plugin

mutt, notmutch, sup all can use vim as editor (and maybe some more)

I don't know what you expect vim to be.

Marc Weber

--
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.org/maillist.php

Re: email plugin

Gmail + Pentadactyl (or Vimperator) works like a charm for me.

c
--
Chris Lott <chris@chrislott.org>

--
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.org/maillist.php

Re: email plugin

If you are looking for an email client
that can use vim as the editor,
I am happy with Sylpheed,
Simple and fast.

Bill

--
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.org/maillist.php

Re: Indenting Based on Unbalanced Paranthesis

Apologizes for the top posting,

No indenting exists for this previously, it's a language (currently unnamed) I'm writing as an experiment in functional programming and to learn to parse.


I can't think of any other markers really, the syntax for the language is pretty minimalistic, here's a quicksort implementation that has 95% of the language in it:

quicksort (ls) := 
    if (= (length ls) 1) 
        ls
        (let
            pivot = car ls,
            less  = filter (lambda(x) -> < x pivot) (cdr ls),
            more  = filter (lambda(x) -> >= x pivot) (cdr ls),
            in:
                append (quicksort less) (cons pivot (quicksort more)));

main := quicksort [1 2 3 5 18 4 1 4 1 4]

Since () are used to group function applications their extremely common. I was originally thinking a syntax similar to Scheme's or Common Lisp's might do it, but I'm confused how they manage it based on their indent files, I'm still pretty newbie-ish at this sort of vim stuff.
 


On Thu, Nov 29, 2012 at 6:08 PM, Benjamin R. Haskell <vim@benizi.com> wrote:
[Reversed the top-posting, per list preference]


On Thu, Nov 29, 2012 at 5:24 PM, Danny Gratzer wrote:

I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:

1. A comment has goes from a // until a newline, anything in a comment should be ignored.

2. If the line above contains a semi-colon, the indentation should be 0.

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to 4 spaces if all paranthesis are balanced.

The last rule is kinda stumping me, does anyone have any advice?

Don't write the indent file if you don't have to. What language are you trying to indent?

Indenting gets slow if you have to scan the whole file.  Unless you're never dealing with at-all long files.  Is there anything other than semi-colons and parenthesis (im)balance that can be used for resetting indentation?



On Thu, Nov 29, 2012 at 5:27 PM, Danny Gratzer wrote:

Oh actually 1 more rule

4. If the line above matches "let:$", or "in:$" where $ is the end of
line, indent by 1 more than this line.

On Thu, 29 Nov 2012, Danny Gratzer wrote:

Excuse me, rule 3. should read:

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to the
same level as the last line if all parenthesis are balanced and no other
rules apply.

It'd be helpful to see some samples of what you're trying to indent. Especially to see whether the scan all the way to the start of the file can be avoided.

--
Best,
Ben

--
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.org/maillist.php



--
Danny Gratzer

--
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.org/maillist.php

Re: Indenting Based on Unbalanced Paranthesis

On Thursday, November 29, 2012 5:24:53 PM UTC-6, Danny Gratzer wrote:
> I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:
>
>
> 1. A comment has goes from a // until a newline, anything in a comment should be ignored.
>
>
>
> 2. If the line above contains a semi-colon, the indentation should be 0.
>
>
> 3. Otherwise, indent to 1 more than the most recent unbalanced ( and to 4 spaces if all paranthesis are balanced.
>
>
>
> The last rule is kinda stumping me, does anyone have any advice?
>
>

I'd try using the searchpair() or searchpairpos() functions for an exact solution which works in all cases.

Or a simpler solution might just check the previous line for an opening (, but this will be hard to get right for nested parentheses groups.

--
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.org/maillist.php

Re: Indenting Based on Unbalanced Paranthesis

[Reversed the top-posting, per list preference]

On Thu, Nov 29, 2012 at 5:24 PM, Danny Gratzer wrote:

> I am writing an indentation script for a simple language. The language
> is has very simple constructs and the indentation really only has 3
> rules:
>
> 1. A comment has goes from a // until a newline, anything in a comment
> should be ignored.
>
> 2. If the line above contains a semi-colon, the indentation should be 0.
>
> 3. Otherwise, indent to 1 more than the most recent unbalanced ( and
> to 4 spaces if all paranthesis are balanced.
>
> The last rule is kinda stumping me, does anyone have any advice?

Don't write the indent file if you don't have to. What language are
you trying to indent?

Indenting gets slow if you have to scan the whole file. Unless you're
never dealing with at-all long files. Is there anything other than
semi-colons and parenthesis (im)balance that can be used for resetting
indentation?


On Thu, Nov 29, 2012 at 5:27 PM, Danny Gratzer wrote:

> Oh actually 1 more rule
>
> 4. If the line above matches "let:$", or "in:$" where $ is the end of
> line, indent by 1 more than this line.

On Thu, 29 Nov 2012, Danny Gratzer wrote:

> Excuse me, rule 3. should read:
>
> 3. Otherwise, indent to 1 more than the most recent unbalanced ( and to the
> same level as the last line if all parenthesis are balanced and no other
> rules apply.

It'd be helpful to see some samples of what you're trying to indent.
Especially to see whether the scan all the way to the start of the file
can be avoided.

--
Best,
Ben

--
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.org/maillist.php

Re: email plugin

On Thu, 29 Nov 2012, ping wrote:

>
> On 11/29/2012 06:20 PM, Michael Hernandez wrote:
>> On Nov 29, 2012, at 6:05 PM, Rostislav Svoboda
>> <rostislav.svoboda@gmail.com> wrote:
>>
>>> Is there any good email plugin you can recommend me guys? It seems
>>> like there isn't any star plugin for handling emails in vim, in fact
>>> google search doesn't return many useful links to this topic. So, I'd
>>> like to hear your tips & comments before I plunge in an evaluation of
>>> the existing plugins. Thanx in advance
>>>
>>> Bost
>>>
>> There's a little plugin called Mutt you might try ;)
>>
>> --Mike H
>>
> that sucks, like most open-source projects, very nice idea plus great apps,
> but never good docs/tuturials..(except vim)
> I wanted to start a project to move to mutt after I enjoyed the power of vim.
> but after hesitate of hesitate I still is hesitating.
> initially you want to save your time by using some fancy tools, then you have
> to spend the rest of your life to learn (mostly guess, test, error and retry,
> little by little) that tiny little thing , just in order to "save your
> time". Sometime I'm thinking whether this worth or not...
> as of vim, my enthusiasm was mostly "retained" because of the enthusiasm of
> peoples (like you guys here) who is always willing to share/help...
>
> regards
> ping

I agree with what you're saying. I tried Mutt (which took me about a week to
set up), then tried Cone (which had problems sending) and i switched to Alpine
and haven't looked back.

Some things in alpine i think are a bit old fashioned BUT all well tried and
tested... and a friendly bunch of maillist folk to help in the unlikely event
of getting stuck with the very helpful documentation. Each new release and all
i do is copy across my pinerc file to /home. Vim is popular as the editor
although pico is fine for emails.

james

--
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.org/maillist.php

Re: Get current executing cmmand in autocmd

On Thursday, November 29, 2012 5:08:30 PM UTC-6, Techlive Zheng wrote:
> If an autocmd is triggered by executing an ex command, is there any way to know which command it is?

As far as I know, no. Except for the QuickFixCmdPre and QuickFixCmdPost autocmds, which match their pattern against the command being run.

--
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.org/maillist.php

Vim + tmux with mouse support questions

Hi,

I am pretty new for vim and tmux, and exploring right now. I have vim set up
on terminal (using putty) with mouse support, but when I moved to tmux.
Found a couple of problems.

(1) I like quickfix window, use :ccopen to open quickfix window in vim, and
I can resize the quickfix window with mouse without any problem. But in tmux
+ vim, mouse doesn't seem to work in resizing quickfix window (using mouse
to click into quickfix window is fine). Note that I was able to use mouse to
select/resize pan in tmux by the following settings.
set-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on

The problem here seems to be, how to enable mouse to resize a
window(quickfix window, NOT tmux window) inside one tmux pane.

(2) I installed and enabled ctags and taglist in my vim setup. I can use
mouse to resize taglist window. But when I moved to tmux, taglist window can
still be opened and entered, but the window resize using mouse seems
disabled. This is similiar situation in quickfix window.

Does anybody has an idea about how to fix these problems? I wish I can
entirely move to tmux using vim+mouse to improve productivity.

Thanks a lot,
Bo



--
View this message in context: http://vim.1045645.n5.nabble.com/Vim-tmux-with-mouse-support-questions-tp5712363.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
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.org/maillist.php

Re: email plugin

On 11/29/2012 06:20 PM, Michael Hernandez wrote:
> On Nov 29, 2012, at 6:05 PM, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:
>
>> Is there any good email plugin you can recommend me guys? It seems
>> like there isn't any star plugin for handling emails in vim, in fact
>> google search doesn't return many useful links to this topic. So, I'd
>> like to hear your tips & comments before I plunge in an evaluation of
>> the existing plugins. Thanx in advance
>>
>> Bost
>>
> There's a little plugin called Mutt you might try ;)
>
> --Mike H
>
that sucks, like most open-source projects, very nice idea plus great
apps, but never good docs/tuturials..(except vim)
I wanted to start a project to move to mutt after I enjoyed the power of
vim. but after hesitate of hesitate I still is hesitating.
initially you want to save your time by using some fancy tools, then you
have to spend the rest of your life to learn (mostly guess, test, error
and retry, little by little) that tiny little thing , just in order to
"save your time". Sometime I'm thinking whether this worth or not...
as of vim, my enthusiasm was mostly "retained" because of the enthusiasm
of peoples (like you guys here) who is always willing to share/help...

regards
ping

--
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.org/maillist.php

Re: email plugin

On Thu, Nov 29, 2012 at 06:20:00PM -0500, Michael Hernandez wrote:
> On Nov 29, 2012, at 6:05 PM, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:

> > Is there any good email plugin you can recommend me guys? It seems
> > like there isn't any star plugin for handling emails in vim, in fact
> > google search doesn't return many useful links to this topic. So, I'd
> > like to hear your tips & comments before I plunge in an evaluation of
> > the existing plugins. Thanx in advance
> >
> > Bost
> >

> There's a little plugin called Mutt you might try ;)

exactly -- get mutt and configure to use vim as your editor -- get
postfix and his fetchmail and you won't need much else

sc

--
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.org/maillist.php

Re: Indenting Based on Unbalanced Paranthesis

Excuse me, rule 3. should read:

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to the same level as the last line if all parenthesis are balanced and no other rules apply.




On Thu, Nov 29, 2012 at 5:27 PM, Danny Gratzer <danny.gratzer@gmail.com> wrote:
Oh actually 1 more rule

4. If the line above matches "let:$", or "in:$" where $ is the end of line, indent by 1 more than this line.


On Thu, Nov 29, 2012 at 5:24 PM, Danny Gratzer <danny.gratzer@gmail.com> wrote:
I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:

1. A comment has goes from a // until a newline, anything in a comment should be ignored.

2. If the line above contains a semi-colon, the indentation should be 0.

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to 4 spaces if all paranthesis are balanced.

The last rule is kinda stumping me, does anyone have any advice?

--
Danny Gratzer



--
Danny Gratzer



--
Danny Gratzer

--
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.org/maillist.php

Re: Indenting Based on Unbalanced Paranthesis

Oh actually 1 more rule

4. If the line above matches "let:$", or "in:$" where $ is the end of line, indent by 1 more than this line.


On Thu, Nov 29, 2012 at 5:24 PM, Danny Gratzer <danny.gratzer@gmail.com> wrote:
I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:

1. A comment has goes from a // until a newline, anything in a comment should be ignored.

2. If the line above contains a semi-colon, the indentation should be 0.

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to 4 spaces if all paranthesis are balanced.

The last rule is kinda stumping me, does anyone have any advice?

--
Danny Gratzer



--
Danny Gratzer

--
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.org/maillist.php

Indenting Based on Unbalanced Paranthesis

I am writing an indentation script for a simple language. The language is has very simple constructs and the indentation really only has 3 rules:

1. A comment has goes from a // until a newline, anything in a comment should be ignored.

2. If the line above contains a semi-colon, the indentation should be 0.

3. Otherwise, indent to 1 more than the most recent unbalanced ( and to 4 spaces if all paranthesis are balanced.

The last rule is kinda stumping me, does anyone have any advice?

--
Danny Gratzer

--
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.org/maillist.php

Re: email plugin

On Nov 29, 2012, at 6:05 PM, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:

> Is there any good email plugin you can recommend me guys? It seems
> like there isn't any star plugin for handling emails in vim, in fact
> google search doesn't return many useful links to this topic. So, I'd
> like to hear your tips & comments before I plunge in an evaluation of
> the existing plugins. Thanx in advance
>
> Bost
>

There's a little plugin called Mutt you might try ;)

--Mike H

--
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.org/maillist.php

Get current executing cmmand in autocmd

If an autocmd is triggered by executing an ex command, is there any way to know which command it is?

--
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.org/maillist.php

email plugin

Is there any good email plugin you can recommend me guys? It seems
like there isn't any star plugin for handling emails in vim, in fact
google search doesn't return many useful links to this topic. So, I'd
like to hear your tips & comments before I plunge in an evaluation of
the existing plugins. Thanx in advance

Bost

--
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.org/maillist.php

Re: VIM v7 and v7.3.46: End of Life and End of Support Dates needed

On 29/11/12 23:14, Tony Mechelynck wrote:
> On 29/11/12 16:55, Ben Fritz wrote:
>> On Wednesday, November 28, 2012 10:11:52 PM UTC-6, Gary Johnson wrote:
>>> On 2012-11-28, rams wrote:
>>>
>>>> Hello,
>>>
>>>>
>>>
>>>> I am looking for End of Life and End of Support dates for:
>>>
>>>> VIM 7
>>>
>>>> VIM 7.3.46
>>>
>>>>
>>>
>>>> Can you please share the info for this?
>>>
>>>
>>>
>>> I am not an official spokesman for Vim. The following is just my
>>>
>>> perspective.
>>>
>>>
>>>
>>> I don't know what those terms mean in the context of an open source
>>>
>>> project such as Vim. What do those terms mean to you?
>>>
>>
>> Some open-source projects (like Python, for example) have a
>> cutting-edge version but also release security updates, etc. for older
>> versions. So you can still download Python 2.7 for example even though
>> they're pushing Python 3.
>>
>> It would be like having a Vim 7.2 branch that we would back-port crash
>> fixes and data loss issues and the like from the default branch (7.3).
>> But Vim doesn't work this way, and as far as I know, it hasn't ever
>> worked this way. With Vim it seems there is only ever one active line
>> of development.
>>
>
> From time to time, but not at this precise moment, development has
> happened on some "future code branch" of Vim, which was then labeled as
> either "alpha" or "beta". Important security-and-stability bug fixes
> have been, at such times, backported from the "future" release to the
> "current stable" release. Nowadays, however, the only code branch
> visibly under development is the current stable branch, namely Vim
> 7.3.x, and all previous branches are at EOL AFAICT. This means that, as
> Gary said, currently each new patchlevel obsoletes all previous ones:
> the current version is 7.3.744 released some three hours ago as I'm
> typing this message. Like Ben said, any bug found in some earlier
----------------------------^^^ sorry, "like Gary said".
> release will still be investigated and, if some already published
> patchlevel did not fix it, a fix will be attempted, and, if found and
> accepted by Bram, published as a new patchlevel, etc.
>
> Someday an alpha or beta pre-release of 7.4 or 8.0 will probably appear,
> and then we will again be in the other, "transition" case described at
> the beginning of the previous paragraph, until a new "stable" 7.4 or 8.0
> release obsoletes the 7.3.x branch.
>
> Best regards,
> Tony.
--
The meta-Turing test counts a thing as intelligent if it seeks to
devise and apply Turing tests to objects of its own creation.
-- Lew Mammel, Jr.

--
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.org/maillist.php

Re: Automatically change encoding when opening file

On Thursday, November 29, 2012 3:16:33 PM UTC-6, coot_. wrote:
>
> <feff> is the BOM character for UTF-16 encoding. UTF-16 uses 2 bytes to
>
> encode a character, but the order of them might differ. This BOM
>
> character tells which byte comes first.
>

feff is the BOM character for UTF-8 as well, where it does not have any meaning in terms of byte ordering, but can be used to identify a file as UTF-8.

In UTF-8, the feff character is represented as efbbbf (three bytes) due to the way UTF-8 encodes multi-byte values in varying length.

The interesting thing about UTF-8 is that often even if an editor misidentifies a UTF-8 file as Latin1, or as windows-1252, for example, most of the file will remain readable, because UTF-8 has the same byte representation for many characters as Latin1 does.

--
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.org/maillist.php

Re: VIM v7 and v7.3.46: End of Life and End of Support Dates needed

On 29/11/12 16:55, Ben Fritz wrote:
> On Wednesday, November 28, 2012 10:11:52 PM UTC-6, Gary Johnson wrote:
>> On 2012-11-28, rams wrote:
>>
>>> Hello,
>>
>>>
>>
>>> I am looking for End of Life and End of Support dates for:
>>
>>> VIM 7
>>
>>> VIM 7.3.46
>>
>>>
>>
>>> Can you please share the info for this?
>>
>>
>>
>> I am not an official spokesman for Vim. The following is just my
>>
>> perspective.
>>
>>
>>
>> I don't know what those terms mean in the context of an open source
>>
>> project such as Vim. What do those terms mean to you?
>>
>
> Some open-source projects (like Python, for example) have a cutting-edge version but also release security updates, etc. for older versions. So you can still download Python 2.7 for example even though they're pushing Python 3.
>
> It would be like having a Vim 7.2 branch that we would back-port crash fixes and data loss issues and the like from the default branch (7.3). But Vim doesn't work this way, and as far as I know, it hasn't ever worked this way. With Vim it seems there is only ever one active line of development.
>

From time to time, but not at this precise moment, development has
happened on some "future code branch" of Vim, which was then labeled as
either "alpha" or "beta". Important security-and-stability bug fixes
have been, at such times, backported from the "future" release to the
"current stable" release. Nowadays, however, the only code branch
visibly under development is the current stable branch, namely Vim
7.3.x, and all previous branches are at EOL AFAICT. This means that, as
Gary said, currently each new patchlevel obsoletes all previous ones:
the current version is 7.3.744 released some three hours ago as I'm
typing this message. Like Ben said, any bug found in some earlier
release will still be investigated and, if some already published
patchlevel did not fix it, a fix will be attempted, and, if found and
accepted by Bram, published as a new patchlevel, etc.

Someday an alpha or beta pre-release of 7.4 or 8.0 will probably appear,
and then we will again be in the other, "transition" case described at
the beginning of the previous paragraph, until a new "stable" 7.4 or 8.0
release obsoletes the 7.3.x branch.

Best regards,
Tony.
--
The penalty for laughing in a courtroom is six months in jail; if it
were not for this penalty, the jury would never hear the evidence.
-- H. L. Mencken

--
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.org/maillist.php

Re: Automatically change encoding when opening file

On 15:41 Thu 29 Nov , Ven Tadipatri wrote:
> On Thu, Nov 15, 2012 at 8:31 AM, Tony Mechelynck
> <antoine.mechelynck@gmail.com> wrote:
>
> >
> > If a file in UTF-16le has a BOM (the codepoint U+FEFF at the very beginning
> > of the file, which for UTF-16le means the bytes 0xFF 0xFE), then if you have
> > set Vim to use UTF-8 'encoding' in your vimrc that file will usually be
> > opened correctly (because the default 'fileencodings' -plural- starts with
> > "ucs-bom"). See http://vim.wikia.com/wiki/Working_with_Unicode about how to
> > set Vim up like that.
> >
>
> Hi Antoine,
>
> I'm not really that familiar with the different encoding types (UTF-8,
> UTF-16, etc), but when I came across a strange <feff> character which
> I think is related to what you're describing.
> I open up two files in gedit and they seem to contain the same exact
> line. But in vim, there's a strange character at the beginning
> "<feff>". It's not a string, because if I go to the beginning of the
> line and hit 'x', it deletes the entire <feff>, indicating it's some
> sort of special hidden character.
> What is this strange character? In Vi's hex mode (%!xxd), I can see
> there is a sequence of bits "efbbbf", and the rest of the file seems
> to somehow be offset
>
> Thanks,
> Ven
>
>
>
> >
> > Best regards,
> > Tony.
> > --
>
> --
> 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.org/maillist.php

Hi,

This is the bom (byte order mark) character:
http://en.wikipedia.org/wiki/Byte_order_mark

<feff> is the BOM character for UTF-16 encoding. UTF-16 uses 2 bytes to
encode a character, but the order of them might differ. This BOM
character tells which byte comes first.

Best,
Marcin

Best,
Marcin

--
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.org/maillist.php

Re: Automatically change encoding when opening file

On Thursday, November 29, 2012 2:41:16 PM UTC-6, vtadipatri wrote:
>
> I'm not really that familiar with the different encoding types (UTF-8,
>
> UTF-16, etc), but when I came across a strange <feff> character which
>
> I think is related to what you're describing.
>
> I open up two files in gedit and they seem to contain the same exact
>
> line. But in vim, there's a strange character at the beginning
>
> "<feff>". It's not a string, because if I go to the beginning of the
>
> line and hit 'x', it deletes the entire <feff>, indicating it's some
>
> sort of special hidden character.
>
> What is this strange character? In Vi's hex mode (%!xxd), I can see
>
> there is a sequence of bits "efbbbf", and the rest of the file seems
>
> to somehow be offset
>

This strange character is the byte-order-mark ( http://en.wikipedia.org/wiki/Byte_order_mark ). The exact byte sequence you see indicates the file is in utf-8. Vim probably did not detect the file as utf-8.

Check that:
1. your Vim is compiled with multibyte support
2. your 'encoding' option is set AT THE VERY BEGINNING OF YOUR .VIMRC to utf-8
3. your 'fileencodings' option contains ucs-bom or utf-8 or both, before any 8-bit encodings.

If these are all the case your Vim should automatically detect the utf-8 fileencoding and the presence of a BOM, and set 'fenc' and 'bomb' appropriately.

See the http://vim.wikia.com/wiki/Working_with_Unicode linked by Tony.

--
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.org/maillist.php

Re: Automatically change encoding when opening file

On Thu, Nov 15, 2012 at 8:31 AM, Tony Mechelynck
<antoine.mechelynck@gmail.com> wrote:

>
> If a file in UTF-16le has a BOM (the codepoint U+FEFF at the very beginning
> of the file, which for UTF-16le means the bytes 0xFF 0xFE), then if you have
> set Vim to use UTF-8 'encoding' in your vimrc that file will usually be
> opened correctly (because the default 'fileencodings' -plural- starts with
> "ucs-bom"). See http://vim.wikia.com/wiki/Working_with_Unicode about how to
> set Vim up like that.
>

Hi Antoine,

I'm not really that familiar with the different encoding types (UTF-8,
UTF-16, etc), but when I came across a strange <feff> character which
I think is related to what you're describing.
I open up two files in gedit and they seem to contain the same exact
line. But in vim, there's a strange character at the beginning
"<feff>". It's not a string, because if I go to the beginning of the
line and hit 'x', it deletes the entire <feff>, indicating it's some
sort of special hidden character.
What is this strange character? In Vi's hex mode (%!xxd), I can see
there is a sequence of bits "efbbbf", and the rest of the file seems
to somehow be offset

Thanks,
Ven



>
> Best regards,
> Tony.
> --

--
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.org/maillist.php

Re: VIM v7 and v7.3.46: End of Life and End of Support Dates needed

On Wednesday, November 28, 2012 10:11:52 PM UTC-6, Gary Johnson wrote:
> On 2012-11-28, rams wrote:
>
> > Hello,
>
> >
>
> > I am looking for End of Life and End of Support dates for:
>
> > VIM 7
>
> > VIM 7.3.46
>
> >
>
> > Can you please share the info for this?
>
>
>
> I am not an official spokesman for Vim. The following is just my
>
> perspective.
>
>
>
> I don't know what those terms mean in the context of an open source
>
> project such as Vim. What do those terms mean to you?
>

Some open-source projects (like Python, for example) have a cutting-edge version but also release security updates, etc. for older versions. So you can still download Python 2.7 for example even though they're pushing Python 3.

It would be like having a Vim 7.2 branch that we would back-port crash fixes and data loss issues and the like from the default branch (7.3). But Vim doesn't work this way, and as far as I know, it hasn't ever worked this way. With Vim it seems there is only ever one active line of development.

--
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.org/maillist.php

Re: Modifying filename before open

Excellent, thanks very much Christian!

Cheers,
Marc

On 29/11/12 10:31 AM, Christian Brabandt wrote:
> On Thu, November 29, 2012 16:26, Marc Jessome wrote:
>> I often "grep -rn" and want to easily use the "filename:line:" output as
>> a filename to vim. Is there any way that I can have vim see
>>
>> "main.c:595" and "main.c:595:" as an equivalent to "main.c +595" ?
>
> I think, this plugin should do what you want:
> http://www.vim.org/scripts/script.php?script_id=2184
>
> regards,
> Christian
>

--
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.org/maillist.php