Wednesday, September 28, 2011

Vim as default email (thunderbird) editor

I really want to find a way to use vim as my default email editor. I
have been using thunderbird for a reasonable amount of time now, and I
stumbled through this "external editor" thunderbird plubin. However,
it seems not to be working with recent versions of thunderbird.

So, I was pondering, "well, many vim users certainly use vim to write
emails." If so, do you have any tips regarding this subject. What I
have done so far is to write the email in vim, and then paste the
message back into the email client. There must be a better, clever, or
nicer way of doing this.

I simply cannot stand any other editor anymore. There is no life after
vim.

Any thoughts and ideas are welcome.

--
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: Status line in gvim: lost my input help (command mode input)

Hi,

marco wrote:
>
> I somehow lost an important feature in the status line: when in
> Command mode, and I want to put the content of buffer "x" 431 times, I
> just type
>
> 431"xp
>
> This 431 and "x are shown normally in the status line, which is really
> helpful. Somehow I lost that in gvim, but it is there in vim
> (terminal), and :help statusline doesn't mention that (or I just
> haven't found it). Any hint for what keywords I would have to search?
>
> Thanks, really thanks for any hint!

:help 'showcmd'

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

--
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: Folding recursively/levels

On Wed, 28 Sep 2011, philipx wrote:

> Hi.
>
> I'm having troubles understanding folding, in particular the recursive
> folding.
>
> I expect that if I fold a multi-level document (e.g. XML) with "zC" -
> "Close all folds under the cursor recursively", and then I execute
> "zo" on the fold, it would "Open one fold under the cursor", meaning
> that it keeps lower levels folded.
>
> Say you have this xml document (fdm=syntax,
> g:xml_syntax_folding=1,foldlevelstart=99).
> A
> B
> C
> C
> B
> C...
> B
> C...
>
> Execute zC on the A node:
> --- xx lines: <A>------
> Now executing zo on that line, I would expect to see the following:
> A
> -- xx lines: <B>-----
> -- xx lines: <B>-----
> -- xx lines: <B>-----
>
> Instead the whole tree opens up, which is what I would expect to
> happen if I used zO not zo.
>
> Are my expectations wrong? Is there a way to achieve this incremental
> unfolding I am looking for?

Your expectations match what I observe.

Maybe there is a mapping that prevents zo from only opening one fold?
If so:

:map zo

will show you.

--
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: function to get word under cursor

> Is there any standard function to get the word under cursor (
> as */# search commands do ) or I should write it by myself
> using getline('.')?

Use <cword> or <cWORD>. Some examples:
http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches
http://vim.wikia.com/wiki/Search_all_files_in_project_quickly
http://vim.wikia.com/wiki/Search_for_current_word_in_new_window

John

--
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

function to get word under cursor

Hello to everyone!

Is there any standard function to get the word under cursor ( as */# search commands do ) or I should write it by myself using getline('.')?

P.S. Also I'd like to ask whether you know some good vim scripting cheatsheet or advanced guide (cause I don't want to flood this group
up with questions about basic functions a lot )?

--
Best regards
Golubev Mikhail

--
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

Status line in gvim: lost my input help (command mode input)

Hi,

I somehow lost an important feature in the status line: when in
Command mode, and I want to put the content of buffer "x" 431 times, I
just type

431"xp

This 431 and "x are shown normally in the status line, which is really
helpful. Somehow I lost that in gvim, but it is there in vim
(terminal), and :help statusline doesn't mention that (or I just
haven't found it). Any hint for what keywords I would have to search?

Thanks, really thanks for any hint!

My gvim under Ubuntu / Awesome
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 24 2011 07:07:34)
Inklusive der Korrekturen: 1-35
Verändert von pkg-vim-maintainers@lists.alioth.debian.org
Übersetzt von buildd@
Riesige Version mit GTK2-GNOME GUI. Ein- (+) oder ausschließlich (-)
der Eigenschaften:

--
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

Folding recursively/levels

Hi.

I'm having troubles understanding folding, in particular the recursive
folding.
I expect that if I fold a multi-level document (e.g. XML) with "zC" -
"Close all folds under the cursor recursively", and then I execute
"zo" on the fold, it would "Open one fold under the cursor", meaning
that it keeps lower levels folded.
Say you have this xml document (fdm=syntax,
g:xml_syntax_folding=1,foldlevelstart=99).
A
B
C
C
B
C...
B
C...

Execute zC on the A node:
--- xx lines: <A>------
Now executing zo on that line, I would expect to see the following:
A
-- xx lines: <B>-----
-- xx lines: <B>-----
-- xx lines: <B>-----

Instead the whole tree opens up, which is what I would expect to
happen if I used zO not zo.

Are my expectations wrong? Is there a way to achieve this incremental
unfolding I am looking for?

Thanks.

--
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