Friday, December 31, 2010

Re: Substitute within a highlight group.

$TTL 86400
test.zone.net. IN SOA ns.zone.net. mail.test.zone.net. (
2007031901 ; serial
21600 ; refresh (6 hours)
7200 ; retry (2 hours)
1209600 ; expire (14 days)
86400 ; minimum (1 day)
)
NS ns.zone.net.
NS ns.secondary.zone.net.
A 192.168.5.9
MX 10 ns.zone.net.
TXT "v=spf1 mx ~all"
$ORIGIN test.zone.net.
$TTL 86400
www A 192.168.5.9
misc A 192.168.5.9
www.misc A 192.168.5.9
home A 192.168.15.19
MX 20 home
On 12/31/2010 05:32 PM, David Fishburn wrote:
> Can you provide the text of the file you are editing.

Forgot to say, I'm using vim 7.3.35 from debian sid.

--
sergio.

--
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: How to get a nice vertical list of open buffers (ordered by mru) that I can easily navigate to by typing drill down?

On Sun, Dec 26, 2010 at 7:34 PM, Rick R <rickcr@gmail.com> wrote:
> I'm having trouble finding what I use in my Java IDEs all the time:
>
> - A quick popup of my open buffers listed by most recently used and can be
> cut back by me just starting to type the name of the file, or I can navigate
> by arrows to the file I want
>
> How do I get this behavior in vim? The closest I've come is wildMenu but
> that's really lame when you have a ton of buffers open - since it lists them
> horizontally and most will just say "unamed" until you tab to them.
>
> I use Command-T all the time which I love but that's for all files in my
> project whether the file is an open buffer or not. Sometimes I like to view
> and switch easily between only my current buffers.
>
> The regular most recently used plugin "mru" is nice but that ends up
> including global files used from any vim session (which isn't what I want in
> this case when working on a project.)
>
> Do I need to try the bufmru or lustyExplorer plugins?

I like FuzzyFinder (FufBuffer of FufMruFile is about what you want).
Has a nice fuzzy interface (auto-regex or not to user taste), can find
lots of things besides buffers (files, tags, etc.) with
uniform-as-possible interface and you can easily write callbacks to
find whatever you want. Super nice.

Britton

--
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: macro for an affine cipher

HAPPY NEW YEAR everybody!

I've made some progress for my quest to secure my files. Having seen that vim can interact with perl using :perl and :.perldo , I've dropped the affine cipher in favor of just using perl's existing crypto modules available at www.cpan.org .

So I've built a perl script that takes four arguments:
1) a 'steering' value "en" or "de"
2) the key
3) name of input file
4) name of output file

and works great when executed from within the Command Window i.e.

perl mycoolscript.pl en DontWorryBeHappy plaintext.txt secure.txt

Now I'd like to modify it to be runnable from within a vim session and execute against the whole file (buffer?) at once.

For example, you have a textfile containing all your passwords.
You want this file to remain encrypted on the hard drive.
You wish to open the file in vim, execute something like:
:.perldo mycoolscript.pl de DontWorryBeHappy
and =PRESTO= the file is decrypted
You make a few changes then
:.perldo mycoolscript.pl en DontWorryBeHappy
and =PRESTO= the file is encrypted again. You
:wq
and are done.

(you'd have to perform an initial encryption, of course)

The benefit here is the file exists in decrypted form only in memory.

So there you have it. How can I achieve this?

TIA and HNY!,

Still-learning Stuart

--
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: Using browse command

On Dec 28, 10:19 pm, vicky b <vickyb2...@gmail.com> wrote:
> Hi all,
>
>    I want to use browse command when i use in GVim when i hit :browse e it
> opens up the filw browser box what is equivalent in console vim or can it
> open in a tab list of files in current directory.
>

Use the netrw file browser plugin distributed with the official Vim
runtime.

Explore in the current window with the :Explore command
Explore in a new split window with the :Sexplore command
Explore in a new tab with the :Texplore command

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

How to use a filetype filter(s) with browse

Using vim 7.2 on ubuntu 10.04. Huge version compiled for gtk.

I have automated a series of menu items that activates `browse' for
different directories.
The process is governed by a menu selection that allows me to set a
series of variables called g:ModelFolder, g:ControllerFolder etc...
Upon another menu selection, the variables are selectively
concatenated to a string that resolves to something like

browse confirm e /home/tim/prj/cgi/baker/akmls

Now, it would be great to add a filetype filter so that
I would have something like

browse confirm e /home/tim/prj/cgi/baker/akmls *.py

Better yet, to have multiple filetypes.. but setting
let g:browsefilter="*.py" doesn't have the expected effect,
I.E. after executing, I still see all directory files in the dialogue.

How can I make this happen?
thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.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: Improve your Vim skills on http://vimgolf.com/


Enjoy http://vimgolf.com/ on holidays :)

Is there no way to register or sign in without a twitter account?

--
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: Improve your Vim skills on http://vimgolf.com/

On 12/31/2010 03:10 AM, Pavel Zinovkin wrote:
> Just one quote from twitter:
> @jamesconroyfinn I want to see solutions to VimGolf challenges. I
> don't care about winning. I just want to learn!
>
> Enjoy http://vimgolf.com/ on holidays :)

Gaaaaa!!!!!!

I had productive things to do this weekend...thanks for sucking
all my time out through vimgolfing! ;-)

(managed to ace one of them though[1])

-tim


[1]
http://vimgolf.com/challenges/4d1bfa8fb2c3e06468000127


--
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 homepage - improvements I'd like to implement. Comment please

I think the ability to delete a script (or, at least, its listing/
publishing) would be quite desirable. Unless there is a technical or
theoretical (design) reason for it not being there now?

Comments would be great, but without moderation and maintenance of any
sort, it may quickly become messy and ugly.

On Dec 31 2010, 3:44 pm, Marc Weber <marco-owe...@gmx.de> wrote:
> Bram was so kind adding me to the list of contributors to the Vim project which
> means that I can propose Vim web page changes by sending Bram patches.
> If you have any urgent feature requests its the time to start talking about them.
>
> I'd like to implement:
>
>   A:a way to change the script type afterwards (because Bram had to do this manually using SQL)
>
>   B:a "repository" field. This way you can register a
>     git/mercurial/whatsoever repository along with your plugin.
>
>   C:an opt-in collaboration feature: You can add other users as collaborators to
>     your scripts which means that they can change the description and upload new
>     versions as well (This is similar to what can be done on github)
>
>     I'm not sure whether a collaborator should be able to add/drop other
>     collaborators.
>
>     There was a request on the mailinglist for transfering
>     maintainership to someone else. If this should be possible a
>     collaborator should be able to add drop collaborators?
>
>     I think yes because you have to trust collaborators anyway.
>
>   D:change the voting system this way:
>
>     1) votings should be tight to a specific versions. If a plugin fixed bugs
>        there is no reason why bad ratings of version 0.0 should still affect the
>       latest version ( which might be 10.0 )
>
>       Because you can delete specific version archives later there may be votings
>       for versions which can longe be downloaded
>
>       I'm not sure which voting to show by default. Maybe the current figures
>       should be kept but an optional "detailed" few should be added?
>
>     2) force users to give a reason if they vote something down. This will be
>        kind of dialog and it'll help devs to understand user requirements
>
>     3) create a new page returning a list of all scripts and achives as JSON format
>       which can be used by tools like vim-addon-manager or similar.
>
> FUTURE (?)
>   PHP docs contain a feature: You can add comments below each documentation page.
>   Someone (Bram) already added link to a per script id wiki page. However I feel
>   that showing user comments in the same page could be a nice idea (?)
>   Do you have a strong opinion on this?
>   We should add a note that comments "are not maintained" by script authors.
>   We don't want to put an additional burden on them.
>
>   Maybe there should a way for users to subscribe to comment changes (?)
>
>   This is not a top priority for me so only comment about this if you
>   feel strong about it and if you think I should change something here.
>
> Provide feedback about these ideas, please
>
> 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: Vim homepage - improvements I'd like to implement. Comment please

I think the ability to delete a script (or, at least, its listing/
publishing) would be quite desirable. Unless there is a technical or
theoretical (design) reason for it not being there now?

Comments would be great, but without moderation and maintenance of any
sort, it may quickly become messy and ugly.

On Dec 31 2010, 3:44 pm, Marc Weber <marco-owe...@gmx.de> wrote:
> Bram was so kind adding me to the list of contributors to the Vim project which
> means that I can propose Vim web page changes by sending Bram patches.
> If you have any urgent feature requests its the time to start talking about them.
>
> I'd like to implement:
>
>   A:a way to change the script type afterwards (because Bram had to do this manually using SQL)
>
>   B:a "repository" field. This way you can register a
>     git/mercurial/whatsoever repository along with your plugin.
>
>   C:an opt-in collaboration feature: You can add other users as collaborators to
>     your scripts which means that they can change the description and upload new
>     versions as well (This is similar to what can be done on github)
>
>     I'm not sure whether a collaborator should be able to add/drop other
>     collaborators.
>
>     There was a request on the mailinglist for transfering
>     maintainership to someone else. If this should be possible a
>     collaborator should be able to add drop collaborators?
>
>     I think yes because you have to trust collaborators anyway.
>
>   D:change the voting system this way:
>
>     1) votings should be tight to a specific versions. If a plugin fixed bugs
>        there is no reason why bad ratings of version 0.0 should still affect the
>       latest version ( which might be 10.0 )
>
>       Because you can delete specific version archives later there may be votings
>       for versions which can longe be downloaded
>
>       I'm not sure which voting to show by default. Maybe the current figures
>       should be kept but an optional "detailed" few should be added?
>
>     2) force users to give a reason if they vote something down. This will be
>        kind of dialog and it'll help devs to understand user requirements
>
>     3) create a new page returning a list of all scripts and achives as JSON format
>       which can be used by tools like vim-addon-manager or similar.
>
> FUTURE (?)
>   PHP docs contain a feature: You can add comments below each documentation page.
>   Someone (Bram) already added link to a per script id wiki page. However I feel
>   that showing user comments in the same page could be a nice idea (?)
>   Do you have a strong opinion on this?
>   We should add a note that comments "are not maintained" by script authors.
>   We don't want to put an additional burden on them.
>
>   Maybe there should a way for users to subscribe to comment changes (?)
>
>   This is not a top priority for me so only comment about this if you
>   feel strong about it and if you think I should change something here.
>
> Provide feedback about these ideas, please
>
> 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: Vim homepage - improvements I'd like to implement. Comment please

> C:an opt-in collaboration feature: You can add other users as collaborators to
> your scripts which means that they can change the description and upload new
> versions as well (This is similar to what can be done on github)
>
> I'm not sure whether a collaborator should be able to add/drop other
> collaborators.

I think it is better to have two kinds of collaborators. One kind has
the ability to do so while the other kind doesn't have the privilege.
Although one should trust his/her collaborators, there might still
exist some accident, such as one loses his password. In this way, we
could reduce the possibility of such things.

> 2) force users to give a reason if they vote something down. This will be
> kind of dialog and it'll help devs to understand user requirements

Is this reason only visible to devs?


Thanks for your hard-working.

Hong Xu
2011/1/1

--
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: How Could I modify the Vim Script Type

On 2010/12/27 17:58, Marc Weber wrote:
> Excerpts from H Xu's message of Sun Dec 26 13:51:22 +0100 2010:
>> Hello Marc Weber,
>>
>> Github is able to help solve conflicts if any happens. But vim online
>> can't (unless
>> you make it). For example, after one uploads a new version, the collaborator
>> may not see the new version and uploads the new version again.(It always
>> requires a refresh after a modification of a page on vim.org to see the modified
>> page, is this a bug or something else?)
>
> So what? Then you can document the workflow that way:
> commit to master first, push to github, then use github to create a
> snapshot and upload this to www.vim.org
>
> Then no conflicts can happen.
> If you don't trust committers (and that they are able to workaround the
> issues you mention) - then you can't trust the plugin either.
>
> You can't make this fool proof. If fools maintain a package there is
> nothing what could help you. If you "own" a plugin its you adding
> collaborators. So its "opt-in" always.
>
> So I don't think we can (want) to protect against each kind of
> (upstream?) failure.
>
> We want to enhance the likelihood that plugins keep being maintained in
> the future. reducing overall noise.
>
> A maintainer switch (or adding maintainers) is always better than having
> many packages you don't know which one to use.
>
> Does this make sense to you?
>
> if packages are maintained errors can be reported and any kind of issues
> (such as upstream merge issues) can be resolved quickly.
>
> If there are two maintainers its more likely that fixes happen faster.
>
> Yours
> Marc Weber
>

Hello,

OK, I've changed my mind now. It is better to be able to add
collaborator for plugins.

Regards,
Hong Xu
2011/1/1

--
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: How to paste?

On 12/31/2010 11:30 AM, AK wrote:
> After more than 10 years of using vim I realized I don't know how to
> paste text..
>
> The insert mode mapping I have is: x<bs><esc>"+]p
>
> I'm getting really weird results with a snippet I'm pasting from a web
> page, using GVim 7.3 (this is the snippet before paste):
>
>
> def moneyfmt(value, places=2, curr='', sep=',', dp='.',
> pos='', neg='-', trailneg=''):
> """Convert Decimal to a money formatted string.
>
> places: required number of places after the decimal point
> curr: optional currency symbol before the sign (may be blank)
> sep: optional grouping separator (comma, period, space, or blank)
> dp: decimal point indicator (comma or period)
> only specify as blank when places is zero
> pos: optional sign for positive numbers: '+', space or blank
> neg: optional sign for negative numbers: '-', '(', space or blank
> trailneg:optional trailing minus indicator: '-', ')', space or blank
>
> >>> d = Decimal('-1234567.8901')
> >>> moneyfmt(d, curr='$')
> '-$1,234,567.89'
> >>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
> '1.234.568-'
> >>> moneyfmt(d, curr='$', neg='(', trailneg=')')
> '($1,234,567.89)'
> >>> moneyfmt(Decimal(123456789), sep=' ')
> '123 456 789.00'
> >>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
> '<0.02>'
>
> """
> q = Decimal(10) ** -places # 2 places --> '0.01'
> sign, digits, exp = value.quantize(q).as_tuple()
> result = []
> digits = map(str, digits)
> build, next = result.append, digits.pop
> if sign:
> build(trailneg)
> for i in range(places):
> build(next() if digits else '0')
> build(dp)
> if not digits:
> build('0')
> i = 0
> while digits:
> build(next())
> i += 1
> if i == 3 and digits:
> i = 0
> build(sep)
> build(curr)
> build(neg if sign else pos)
> return ''.join(reversed(result))
>
>
>
> when I'm pasting at an existing indent of 4 spaces, I get:
>
>
>
> def moneyfmt(value, places=2, curr='', sep=',', dp='.',
> pos='', neg='-', trailneg=''):
> """Convert Decimal to a money formatted string.
>
> places: required number of places after the decimal point
> curr: optional currency symbol before the sign (may be blank)
> sep: optional grouping separator (comma, period, space, or blank)
> dp: decimal point indicator (comma or period)
> only specify as blank when places is zero
> pos: optional sign for positive numbers: '+', space or blank
> neg: optional sign for negative numbers: '-', '(', space or blank
> trailneg:optional trailing minus indicator: '-', ')', space or blank
>
> >>> d = Decimal('-1234567.8901')
> >>> moneyfmt(d, curr='$')
> '-$1,234,567.89'
> >>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
> '1.234.568-'
> >>> moneyfmt(d, curr='$', neg='(', trailneg=')')
> '($1,234,567.89)'
> >>> moneyfmt(Decimal(123456789), sep=' ')
> '123 456 789.00'
> >>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
> '<0.02>'
>
> """
> q = Decimal(10) ** -places # 2 places --> '0.01'
> sign, digits, exp = value.quantize(q).as_tuple()
> result = []
> digits = map(str, digits)
> build, next = result.append, digits.pop
> if sign:
> build(trailneg)
> for i in range(places):
> build(next() if digits else '0')
> build(dp)
> if not digits:
> build('0')
> i = 0
> while digits:
> build(next())
> i += 1
> if i == 3 and digits:
> i = 0
> build(sep)
> build(curr)
> build(neg if sign else pos)
> return ''.join(reversed(result))
>
>
>
> Why is one indented block preserved near the end while all others are
> flattened? If I paste at 0 indent, all indent is flattened.
>
> Seems like 'paste' option doesn't make a difference in gvim except
> that it stops my alt-key shortcut from working in insert mode.
>
> How can I do a normal, proper paste at an existing indent with a
> keyboard shortcut (i.e. same as what you get with middle mouse button,
> so that every line is at an indent I begin with plus whatever indent
> is in the copied text)?:
>
>
>
>
> def moneyfmt(value, places=2, curr='', sep=',', dp='.',
> pos='', neg='-', trailneg=''):
> """Convert Decimal to a money formatted string.
>
> places: required number of places after the decimal point
> curr: optional currency symbol before the sign (may be blank)
> sep: optional grouping separator (comma, period, space, or blank)
> dp: decimal point indicator (comma or period)
> only specify as blank when places is zero
> pos: optional sign for positive numbers: '+', space or blank
> neg: optional sign for negative numbers: '-', '(', space or blank
> trailneg:optional trailing minus indicator: '-', ')', space or blank
>
> >>> d = Decimal('-1234567.8901')
> >>> moneyfmt(d, curr='$')
> '-$1,234,567.89'
> >>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
> '1.234.568-'
> >>> moneyfmt(d, curr='$', neg='(', trailneg=')')
> '($1,234,567.89)'
> >>> moneyfmt(Decimal(123456789), sep=' ')
> '123 456 789.00'
> >>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
> '<0.02>'
>
> """
> q = Decimal(10) ** -places # 2 places --> '0.01'
> sign, digits, exp = value.quantize(q).as_tuple()
> result = []
> digits = map(str, digits)
> build, next = result.append, digits.pop
> if sign:
> build(trailneg)
> for i in range(places):
> build(next() if digits else '0')
> build(dp)
> if not digits:
> build('0')
> i = 0
> while digits:
> build(next())
> i += 1
> if i == 3 and digits:
> i = 0
> build(sep)
> build(curr)
> build(neg if sign else pos)
> return ''.join(reversed(result))


Sorry, the last one should be:

def moneyfmt(value, places=2, curr='', sep=',', dp='.',
pos='', neg='-', trailneg=''):
"""Convert Decimal to a money formatted string.

places: required number of places after the decimal point
curr: optional currency symbol before the sign (may be blank)
sep: optional grouping separator (comma, period, space, or
blank)
dp: decimal point indicator (comma or period)
only specify as blank when places is zero
pos: optional sign for positive numbers: '+', space or blank
neg: optional sign for negative numbers: '-', '(', space or
blank
trailneg:optional trailing minus indicator: '-', ')', space or
blank

>>> d = Decimal('-1234567.8901')
>>> moneyfmt(d, curr='$')
'-$1,234,567.89'
>>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
'1.234.568-'
>>> moneyfmt(d, curr='$', neg='(', trailneg=')')
'($1,234,567.89)'
>>> moneyfmt(Decimal(123456789), sep=' ')
'123 456 789.00'
>>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
'<0.02>'

"""
q = Decimal(10) ** -places # 2 places --> '0.01'
sign, digits, exp = value.quantize(q).as_tuple()
result = []
digits = map(str, digits)
build, next = result.append, digits.pop
if sign:
build(trailneg)
for i in range(places):
build(next() if digits else '0')
build(dp)
if not digits:
build('0')
i = 0
while digits:
build(next())
i += 1
if i == 3 and digits:
i = 0
build(sep)
build(curr)
build(neg if sign else pos)
return ''.join(reversed(result))

--
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 homepage - improvements I'd like to implement. Comment please

On Fri, Dec 31, 2010 at 08:44:02AM +0100, Marc Weber wrote:
> I'd like to implement:
> ...
> C:an opt-in collaboration feature: You can add other users as collaborators to
> your scripts which means that they can change the description and upload new
> versions as well (This is similar to what can be done on github)
>
> I'm not sure whether a collaborator should be able to add/drop other
> collaborators.
>
> There was a request on the mailinglist for transfering
> maintainership to someone else. If this should be possible a
> collaborator should be able to add drop collaborators?
>
> I think yes because you have to trust collaborators anyway.

I agree with that. I suggest that not only the owner, but a "Vim site
manager" (one of a few people) should be able to add collaborators, to
enable script adoption even if the original maintainer can't be reached.

> D:change the voting system this way:
>
> 1) votings should be tight to a specific versions. If a plugin fixed bugs
> there is no reason why bad ratings of version 0.0 should still affect the
> latest version ( which might be 10.0 )

Keep also download count.

> 2) force users to give a reason if they vote something down. This will be
> kind of dialog and it'll help devs to understand user requirements

Yes, make it hard to be a troll.

> FUTURE (?)
> PHP docs contain a feature: You can add comments below each documentation page.
> Someone (Bram) already added link to a per script id wiki page. However I feel
> that showing user comments in the same page could be a nice idea (?)
> Do you have a strong opinion on this?
> We should add a note that comments "are not maintained" by script authors.
> We don't want to put an additional burden on them.
>
> Maybe there should a way for users to subscribe to comment changes (?)
>

At first I thought: "hey, comments would be great", but then I thought
that a comment system will become a rather unstructured area for user
support for that script, and that kind of needs should be fulfilled
providing decent documentation for the script.

IMHO, the ideal contact channel is a bug tracking system for each
script. But I do know that implementing that is: 1) a huge burden 2)
reinventing the wheel.

Maybe an optional "bugtracker" field to be filled by the author, which
is the URL of the bugtracking system the author uses, if any.

--
Javier Rojas

GPG Key ID: 0x24E00D68

How to paste?

After more than 10 years of using vim I realized I don't know how to
paste text..

The insert mode mapping I have is: x<bs><esc>"+]p

I'm getting really weird results with a snippet I'm pasting from a web
page, using GVim 7.3 (this is the snippet before paste):


def moneyfmt(value, places=2, curr='', sep=',', dp='.',
pos='', neg='-', trailneg=''):
"""Convert Decimal to a money formatted string.

places: required number of places after the decimal point
curr: optional currency symbol before the sign (may be blank)
sep: optional grouping separator (comma, period, space, or blank)
dp: decimal point indicator (comma or period)
only specify as blank when places is zero
pos: optional sign for positive numbers: '+', space or blank
neg: optional sign for negative numbers: '-', '(', space or blank
trailneg:optional trailing minus indicator: '-', ')', space or blank

>>> d = Decimal('-1234567.8901')
>>> moneyfmt(d, curr='$')
'-$1,234,567.89'
>>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
'1.234.568-'
>>> moneyfmt(d, curr='$', neg='(', trailneg=')')
'($1,234,567.89)'
>>> moneyfmt(Decimal(123456789), sep=' ')
'123 456 789.00'
>>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
'<0.02>'

"""
q = Decimal(10) ** -places # 2 places --> '0.01'
sign, digits, exp = value.quantize(q).as_tuple()
result = []
digits = map(str, digits)
build, next = result.append, digits.pop
if sign:
build(trailneg)
for i in range(places):
build(next() if digits else '0')
build(dp)
if not digits:
build('0')
i = 0
while digits:
build(next())
i += 1
if i == 3 and digits:
i = 0
build(sep)
build(curr)
build(neg if sign else pos)
return ''.join(reversed(result))

when I'm pasting at an existing indent of 4 spaces, I get:

def moneyfmt(value, places=2, curr='', sep=',', dp='.',
pos='', neg='-', trailneg=''):
"""Convert Decimal to a money formatted string.

places: required number of places after the decimal point
curr: optional currency symbol before the sign (may be blank)
sep: optional grouping separator (comma, period, space, or blank)
dp: decimal point indicator (comma or period)
only specify as blank when places is zero
pos: optional sign for positive numbers: '+', space or blank
neg: optional sign for negative numbers: '-', '(', space or blank
trailneg:optional trailing minus indicator: '-', ')', space or blank

>>> d = Decimal('-1234567.8901')
>>> moneyfmt(d, curr='$')
'-$1,234,567.89'
>>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
'1.234.568-'
>>> moneyfmt(d, curr='$', neg='(', trailneg=')')
'($1,234,567.89)'
>>> moneyfmt(Decimal(123456789), sep=' ')
'123 456 789.00'
>>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
'<0.02>'

"""
q = Decimal(10) ** -places # 2 places --> '0.01'
sign, digits, exp = value.quantize(q).as_tuple()
result = []
digits = map(str, digits)
build, next = result.append, digits.pop
if sign:
build(trailneg)
for i in range(places):
build(next() if digits else '0')
build(dp)
if not digits:
build('0')
i = 0
while digits:
build(next())
i += 1
if i == 3 and digits:
i = 0
build(sep)
build(curr)
build(neg if sign else pos)
return ''.join(reversed(result))

Why is one indented block preserved near the end while all others are
flattened? If I paste at 0 indent, all indent is flattened.

Seems like 'paste' option doesn't make a difference in gvim except
that it stops my alt-key shortcut from working in insert mode.

How can I do a normal, proper paste at an existing indent with a
keyboard shortcut (i.e. same as what you get with middle mouse button,
so that every line is at an indent I begin with plus whatever indent
is in the copied text)?:


def moneyfmt(value, places=2, curr='', sep=',', dp='.',
pos='', neg='-', trailneg=''):
"""Convert Decimal to a money formatted string.

places: required number of places after the decimal point
curr: optional currency symbol before the sign (may be blank)
sep: optional grouping separator (comma, period, space, or blank)
dp: decimal point indicator (comma or period)
only specify as blank when places is zero
pos: optional sign for positive numbers: '+', space or blank
neg: optional sign for negative numbers: '-', '(', space or blank
trailneg:optional trailing minus indicator: '-', ')', space or blank

>>> d = Decimal('-1234567.8901')
>>> moneyfmt(d, curr='$')
'-$1,234,567.89'
>>> moneyfmt(d, places=0, sep='.', dp='', neg='', trailneg='-')
'1.234.568-'
>>> moneyfmt(d, curr='$', neg='(', trailneg=')')
'($1,234,567.89)'
>>> moneyfmt(Decimal(123456789), sep=' ')
'123 456 789.00'
>>> moneyfmt(Decimal('-0.02'), neg='<', trailneg='>')
'<0.02>'

"""
q = Decimal(10) ** -places # 2 places --> '0.01'
sign, digits, exp = value.quantize(q).as_tuple()
result = []
digits = map(str, digits)
build, next = result.append, digits.pop
if sign:
build(trailneg)
for i in range(places):
build(next() if digits else '0')
build(dp)
if not digits:
build('0')
i = 0
while digits:
build(next())
i += 1
if i == 3 and digits:
i = 0
build(sep)
build(curr)
build(neg if sign else pos)
return ''.join(reversed(result))

--
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: Substitute within a highlight group.

Can you provide the text of the file you are editing.

--
David Fishburn


On Dec 30, 2010, at 10:41 PM, sergio <mailbox@sergio.spb.ru> wrote:

> On 12/31/2010 06:13 AM, David Fishburn wrote:
>
>> As Chip mentioned, I definitely want to know of any bugs.
>
> 1)
> I've not understand how to select highlight group from script.
> (For example I need to select zoneSerial group)
>
> 2)
> % vim bindzone
> :source incoming/srhg/plugin/SrchRplcHiGrp.vim
> <GOTO zone serial>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 97 Name: zoneSerial
> :SRHiGrp '\(.*\)','__\1__'
> .* also includes comment, that exists on this line: so I get:
> __2007031901 ; serial__
> instead of:
> __2007031901__ ; serial
>
> 3)
> <GOTO ip address>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 94 Name: zoneIPAddr
> :SRSearch
> goes to the next octet of selected ip address, not to the next ip address.
>
> <GOTO zoneDirective>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 89 Name: zoneDirective
> :SRSearch
> first SRSearch (from neutral space) goes to '$' of next directive,
> second --- to the first letter after $ of the same directive.
>
>
> --
> sergio.
>
> --
> 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: Fortran Keywords Auto Capitalize

Thank you!
I think I can learn your experience.

于 2010/12/31 17:14, Francesc Salvat-Pujol 写道:
> On Fri, Dec 31 2010, at 00:04 +0800, PcX wrote:
>> Hi All,
>>
>> I want to use autocmd to auto capitalize the fortran keywords.
>> For example,
>> I used:
>> autocmd FileType fortran abbr write WRITE
>>
>> but there is a question here, if the keyword write is in one string,
>> it's also capitalized.
>> That is, write(*,*) "write" -> WRITE(*,*) "WRITE"
>>
>> But I only want to change it to the WRITE(*,*) "write".
>> Is there any solution for this?
>>
>> Thanks.
>>
>> --
>> Regards
>> PcX
>>
>> --
>> 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
> I have been using FORTRANcase.vim for a while. It basically capitalizes
> everything except strings. Check it out for inspiration (or use it
> directly):
>
> http://na-wiki.csc.kth.se/mediawiki/index.php/FORTRANcase.vim
>
> Regards,
>
> Cesc
>

--
Regards
PcX

--
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: Substitute within a highlight group.

Hi sergio!

On Fr, 31 Dez 2010, sergio wrote:

> 2)
> % vim bindzone
> :source incoming/srhg/plugin/SrchRplcHiGrp.vim
> <GOTO zone serial>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 97 Name: zoneSerial
> :SRHiGrp '\(.*\)','__\1__'
> .* also includes comment, that exists on this line: so I get:
> __2007031901 ; serial__
> instead of:
> __2007031901__ ; serial

Without having used the mentioned script, I would probably use something
like this:
:%s/\<\d\+\>/\=synIDattr(synID(line('.'),col('.'),1),'name')=~'zoneSerial?'__'.submatch(1).'__':submatch(1)/g
(one line)

As you can see, I made the regex more strict, since .* will probably
always match a whole line and could obviously be part of several
different syntax items.

If you need this more often, this can probably be scripted or put into
functions for easier use.

> 3)
> <GOTO ip address>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 94 Name: zoneIPAddr
> :SRSearch
> goes to the next octet of selected ip address, not to the next ip address.
>
> <GOTO zoneDirective>
> :SRChooseHiGrp
> SRHiGrp - Group ID: 89 Name: zoneDirective
> :SRSearch
> first SRSearch (from neutral space) goes to '$' of next directive,
> second --- to the first letter after $ of the same directive.

Don't understand, what you are trying to do here.

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: Fortran Keywords Auto Capitalize

On Fri, Dec 31 2010, at 00:04 +0800, PcX wrote:
>
> Hi All,
>
> I want to use autocmd to auto capitalize the fortran keywords.
> For example,
> I used:
> autocmd FileType fortran abbr write WRITE
>
> but there is a question here, if the keyword write is in one string,
> it's also capitalized.
> That is, write(*,*) "write" -> WRITE(*,*) "WRITE"
>
> But I only want to change it to the WRITE(*,*) "write".
> Is there any solution for this?
>
> Thanks.
>
> --
> Regards
> PcX
>
> --
> 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

I have been using FORTRANcase.vim for a while. It basically capitalizes
everything except strings. Check it out for inspiration (or use it
directly):

http://na-wiki.csc.kth.se/mediawiki/index.php/FORTRANcase.vim

Regards,

Cesc

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

Improve your Vim skills on http://vimgolf.com/

Just one quote from twitter:
@jamesconroyfinn I want to see solutions to VimGolf challenges. I
don't care about winning. I just want to learn!

Enjoy http://vimgolf.com/ on holidays :)

--
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, December 30, 2010

Vim homepage - improvements I'd like to implement. Comment please

Bram was so kind adding me to the list of contributors to the Vim project which
means that I can propose Vim web page changes by sending Bram patches.
If you have any urgent feature requests its the time to start talking about them.

I'd like to implement:

A:a way to change the script type afterwards (because Bram had to do this manually using SQL)


B:a "repository" field. This way you can register a
git/mercurial/whatsoever repository along with your plugin.


C:an opt-in collaboration feature: You can add other users as collaborators to
your scripts which means that they can change the description and upload new
versions as well (This is similar to what can be done on github)

I'm not sure whether a collaborator should be able to add/drop other
collaborators.

There was a request on the mailinglist for transfering
maintainership to someone else. If this should be possible a
collaborator should be able to add drop collaborators?

I think yes because you have to trust collaborators anyway.


D:change the voting system this way:

1) votings should be tight to a specific versions. If a plugin fixed bugs
there is no reason why bad ratings of version 0.0 should still affect the
latest version ( which might be 10.0 )

Because you can delete specific version archives later there may be votings
for versions which can longe be downloaded

I'm not sure which voting to show by default. Maybe the current figures
should be kept but an optional "detailed" few should be added?

2) force users to give a reason if they vote something down. This will be
kind of dialog and it'll help devs to understand user requirements

3) create a new page returning a list of all scripts and achives as JSON format
which can be used by tools like vim-addon-manager or similar.

FUTURE (?)
PHP docs contain a feature: You can add comments below each documentation page.
Someone (Bram) already added link to a per script id wiki page. However I feel
that showing user comments in the same page could be a nice idea (?)
Do you have a strong opinion on this?
We should add a note that comments "are not maintained" by script authors.
We don't want to put an additional burden on them.

Maybe there should a way for users to subscribe to comment changes (?)


This is not a top priority for me so only comment about this if you
feel strong about it and if you think I should change something here.

Provide feedback about these ideas, please

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: Fortran Keywords Auto Capitalize

>    Is there any solution for this?

Earlier there was some discussion regarding Fortran and
capitalization. See if it helps :
http://vim.1045645.n5.nabble.com/caps-lock-invert-in-insert-mode-Fortran-77-editing-td3275238.html

--
Anurag Priyam,
3rd Year Undergraduate,
Department of Mechanical Engineering,
IIT Kharagpur.
+91-9775550642

--
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: Substitute within a highlight group.

On 12/31/2010 06:13 AM, David Fishburn wrote:

> As Chip mentioned, I definitely want to know of any bugs.

1)
I've not understand how to select highlight group from script.
(For example I need to select zoneSerial group)

2)
% vim bindzone
:source incoming/srhg/plugin/SrchRplcHiGrp.vim
<GOTO zone serial>
:SRChooseHiGrp
SRHiGrp - Group ID: 97 Name: zoneSerial
:SRHiGrp '\(.*\)','__\1__'
.* also includes comment, that exists on this line: so I get:
__2007031901 ; serial__
instead of:
__2007031901__ ; serial

3)
<GOTO ip address>
:SRChooseHiGrp
SRHiGrp - Group ID: 94 Name: zoneIPAddr
:SRSearch
goes to the next octet of selected ip address, not to the next ip address.

<GOTO zoneDirective>
:SRChooseHiGrp
SRHiGrp - Group ID: 89 Name: zoneDirective
:SRSearch
first SRSearch (from neutral space) goes to '$' of next directive,
second --- to the first letter after $ of the same directive.


--
sergio.

--
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: Substitute within a highlight group.

On Dec 30, 2010, at 7:04 PM, Charles E Campbell Jr <drchip@campbellfamily.biz> wrote:

> sergio wrote:
>> On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote:
>>
>>> See if David Fishburn's SrchRplcHiGrp plugin does what you want:
>>> http://www.vim.org/script.php?script_id=848
>>
>> Yes, it does. But it's buggy and old.
>>
>> Can vim do this without plugins?
>>
> No. If you find a bug, send a note to David Fishburn. His email address is contained in the header portion of the plugin.
>
>

Old does not make a plugin useless.

No changes have been made to it since it has so far done what I and others have needed.

As Chip mentioned, I definitely want to know of any bugs. Please provide explicit instructions so that I can reproduce this issue and include your Vim version.

--
David Fishburn

--
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: Substitute within a highlight group.

sergio wrote:
> On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote:
>
>> See if David Fishburn's SrchRplcHiGrp plugin does what you want:
>> http://www.vim.org/script.php?script_id=848
>
> Yes, it does. But it's buggy and old.
>
> Can vim do this without plugins?
>
No. If you find a bug, send a note to David Fishburn. His email
address is contained in the header portion of the plugin.

Chip

--
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: Line-based jumplist?

On 12/30/2010 08:54 AM, Douglas A. Augusto wrote:
> Hi,
>
> Is there a way to return to a previous position (character) on the current line
> after a jump to any other position on the *same* line? Suppose the cursor is at
> some position on the line:
>
> The quick brown fox jumps over the lazy dog
> ^
> (cursor)
>
> Then $ is pressed, putting the cursor at the EOL:
>
> The quick brown fox jumps over the lazy dog
> ^
> (cursor)
>
> Now, how do I return, i.e. jump back, to the previous location (character 'r')
> on the line?
>
> If I had made changes at 'r' I could use 'g;' to return to it, but I'm asking
> about the more general case where no changes were made at the original position.
>
> Thank you.
>


Not sure about jumping to exact spot but I made a plugin
that jumps to 25%, 50% and 75% of text of current line (i.e.
it discards leading & trailing whitespace). I can share if
anyone's interested. I find it's usually close enough
that I can use w/b or W/B keys or f/F to get where I need.
-ak

--
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: SQL Syntax Colors for Filename Extension Other Than ".sql"

> Yes that will work.
>
> A better way to do that is to edit your:
> .vim/filetype.vim
> Or
> Vimfiles\filetype.vim
>
> And clone an entry that does the same thing as Taylor mentioned in his autocmd. You will see other similar entries.
>
> HTH
> --
> David Fishburn
>
> On Dec 30, 2010, at 1:39 PM, Taylor Hedberg <tmhedberg@gmail.com> wrote:
>
> > You could use an autocommand in your .vimrc to set the filetype
> > automatically based on the file extension, e.g.:
> >
> > au BufNewFile,BufRead *.prc setl ft=sql
> >

Thanks Taylor and David. That's exactly what I had been searching for. Life is good again.  :-)   Smile
Roy

Re: SQL Syntax Colors for Filename Extension Other Than ".sql"

Yes that will work.

A better way to do that is to edit your:
.vim/filetype.vim
Or
Vimfiles\filetype.vim

And clone an entry that does the same thing as Taylor mentioned in his autocmd. You will see other similar entries.

HTH
--
David Fishburn


On Dec 30, 2010, at 1:39 PM, Taylor Hedberg <tmhedberg@gmail.com> wrote:

> You could use an autocommand in your .vimrc to set the filetype
> automatically based on the file extension, e.g.:
>
> au BufNewFile,BufRead *.prc setl ft=sql
>
> --
> 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: Substitute within a highlight group.

On 12/30/2010 05:13 AM, Charles E Campbell Jr wrote:

> See if David Fishburn's SrchRplcHiGrp plugin does what you want:
> http://www.vim.org/script.php?script_id=848

Yes, it does. But it's buggy and old.

Can vim do this without plugins?

--
sergio.

--
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: SQL Syntax Colors for Filename Extension Other Than ".sql"

You could use an autocommand in your .vimrc to set the filetype
automatically based on the file extension, e.g.:

au BufNewFile,BufRead *.prc setl ft=sql

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

SQL Syntax Colors for Filename Extension Other Than ".sql"

I am trying to get SQL syntax coloring when editing SQL files with filename extension of '.prc', but am getting nowhere fast. Is there a way to do this without having to copy and rename the SQL syntax file?
 
Thanks,
Roy

Re: how to info vim the ruby/lua intepreter path under windows

> but there's currently no way that I can add the path to my system
> it's pretty locked up.

Let's blindly assume you're using windows. You should always be able
to set per use environment variables. Or you could create a bat script
that sets the environment variables and runs vim.

HTH

--
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: how to info vim the ruby/lua intepreter path under windows

thanks for the info
but there's currently no way that I can add the path to my system
it's pretty locked up. I tried to use set path in vim, but it doesn't
do the job

some suggestions?

On Dec 29, 10:30 pm, Arun <cod...@codito.in> wrote:
> On Wed, Dec 29, 2010 at 06:57:00AM -0800, Isaac wrote:
> > Hi there, I have a question about how to use lua or ruby support in
> > vim 73
>
> > - I can download the compiled verison with lua/ruby support
> > - but my workstation is locked down that I can not install anything
> > into the system, is there a way that I can direct the lua/ruby
> > intepreter folder to vim so that it knows?
>
> Vim (compiled with +ruby/dyn) should be able to pick up the
> correct ruby lib from PATH.
>
> Please see :help ruby-dynamic
>
> In win32, I think you need to just unzip the ruby package to a
> directory you have permission and add <Dir>\Ruby191\bin to path.
>
> Regards,
> Arun

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

Fortran Keywords Auto Capitalize

Hi All,

I want to use autocmd to auto capitalize the fortran keywords.
For example,
I used:
autocmd FileType fortran abbr write WRITE

but there is a question here, if the keyword write is in one
string, it's also capitalized.
That is, write(*,*) "write" -> WRITE(*,*) "WRITE"

But I only want to change it to the WRITE(*,*) "write".
Is there any solution for this?

Thanks.

--
Regards
PcX

--
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: 1st attempt at an autocmd - name:line, name:line:col

* Christian Brabandt wrote:
> Hi Dr.!

Hi Christian,
Thanks for your response.

> On Mi, 29 Dez 2010, Dr. David Alan Gilbert wrote:
>
> > Below is my first attempt at writing an autocmd (and for that
> > matter a vim script) and I'd appreciate any feedback (e.g.
> > 'no you fool, don't do it like that, do it like this....', or
> > I wouldn't be surprised to be told someone has already done it).
>
> I haven't looked at your script, but I'd like to let you know, that
> there already exists the file:line plugin:
> http://www.vim.org/scripts/script.php?script_id=2184
>
> which seems to do, what you want.

That plugin is interesting; it only does file:line while mine does
file:line:col and also allows a trailing : , however it does
clean a few things up - I can see from the history the author has
found a few things that need to be fixed that I also didn't think
of.
Victor also uses matchlist which looks like a much saner way of doing things
than the multiple substitute() calls that I use to slice up the
filename.

Thanks!

Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ gro.gilbert @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.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

Line-based jumplist?

Hi,

Is there a way to return to a previous position (character) on the current line
after a jump to any other position on the *same* line? Suppose the cursor is at
some position on the line:

The quick brown fox jumps over the lazy dog
^
(cursor)

Then $ is pressed, putting the cursor at the EOL:

The quick brown fox jumps over the lazy dog
^
(cursor)

Now, how do I return, i.e. jump back, to the previous location (character 'r')
on the line?

If I had made changes at 'r' I could use 'g;' to return to it, but I'm asking
about the more general case where no changes were made at the original position.

Thank you.

--
Douglas A. Augusto

--
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: 1st attempt at an autocmd - name:line, name:line:col

Hi Dr.!

On Mi, 29 Dez 2010, Dr. David Alan Gilbert wrote:

> Below is my first attempt at writing an autocmd (and for that
> matter a vim script) and I'd appreciate any feedback (e.g.
> 'no you fool, don't do it like that, do it like this....', or
> I wouldn't be surprised to be told someone has already done it).

I haven't looked at your script, but I'd like to let you know, that
there already exists the file:line plugin:
http://www.vim.org/scripts/script.php?script_id=2184

which seems to do, what you want.

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: (g)vim stop work suddenly on Win7

Hi Dennis Benzinger:

Thanks for your reply, and I just checked, vim 7.3.75 does not have this problem. And actually this problem was introduced by a shortcut which linked to the the gvim.exe located inside vim 7.2's directory. I tried to install a later version (e.g. 7.3.75) of vim without noticed that it has changed to another directory.

Thanks again for your help
BR
Wang, Mengjia

2010/12/30 Dennis Benzinger <Dennis.Benzinger@gmx.net>
Hello!

Am 30.12.2010 04:34, schrieb Forest Wang:
Hi All,

Recently, I noticed that (g)vim stop work on my Win7 X64 system, may be it
is caused by certain windows updated patch. So if there is debug enabled
version for windows, I can have a try to get a trace with gdb.

[...]

  Application Version:    7.2.269.0
[...]

This is quite old. The current version is 7.3.89. Could you please try if the problem exists in the newest version too?

You can get almost up to date precompiled binaries for Windows from <http://cream.sourceforge.net/download.html>. If you don't want the Cream customizations simply pick the link at the bottom of the list.


HTH,
Dennis Benzinger

--
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: (g)vim stop work suddenly on Win7

Hello!

Am 30.12.2010 04:34, schrieb Forest Wang:
> Hi All,
>
> Recently, I noticed that (g)vim stop work on my Win7 X64 system, may be it
> is caused by certain windows updated patch. So if there is debug enabled
> version for windows, I can have a try to get a trace with gdb.
>
> [...]
> Application Version: 7.2.269.0
>[...]

This is quite old. The current version is 7.3.89. Could you please try
if the problem exists in the newest version too?

You can get almost up to date precompiled binaries for Windows from
<http://cream.sourceforge.net/download.html>. If you don't want the
Cream customizations simply pick the link at the bottom of the list.


HTH,
Dennis Benzinger

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

Wednesday, December 29, 2010

Re: VIM and gpg decryption , also pinentry

hi, Aaron,
on terminal "CRTL+D" is hotkey use for suspend program, maybe use need to map other key for this feature 

best regards  

2010/12/22 Aaron Lewis <the.warl0ck.1989@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
       I'm experiencing a problem with GPG decryption , encryption works fine.

inside vimrc:

       map <C-G> :1,$!gpg -as 2>/dev/null<CR>
       map <C-Y> :1,$!gpg -ae --clearsign 2>/dev/null<CR>
       map <C-D> :1,$!gpg -ad 2>/dev/null<CR>
       map <C-E> :1,$!gpg -ae 2>/dev/null<CR>

When i press "CRTL+D" , pinentry popuped and it works when Xorg is
running , but when i was on terminal (pure tty) , it won't work , just
hangs.

Is there any solution that can work it out ?

Thanks !

- --
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNEbR2AAoJECSSp9Df5sKedhoP/jKoFKB/L0D408tSrmm9a6e9
VAya9D36v/bjdHDAdV0O23f8pah5kMtDDgCHIdcomDf1gy8QVb5RpfCnNv0jOmJr
6nq0AT8UFgFB6VxltMvxCGKq18MPLxYDJbKeIWqEZ7tuHEKYQ8BLG3L8vPe+BNu5
D1yi1apz3ABlnoXUjgG9ihoMVfuxFdklJhjA9Sdys9w6COzuUY92U5LeHH+M+h3u
26OhhTn+dp4ksR2rNgLogyA64QgM18ifH7QHAC1MIcfi2/0MJM94Wr4s+85vTFHS
gzdFzPFRVshWkbP2ZQghNmnUDJNErpvvDFCD9XVpPjqnmLeqf/4NJmrxu5cby4C6
wpwpIiucgbNIFkELSz3mTovr9yfv4MLB1LW+8GbDVnJ8q2JKwwidLE2OHeuOTfgb
JSQsuB9G1eY5IWcOEPMpMhhv48Edjw086amdCB1+27hr5XDXzJ9OH2XclI0wbnh5
BF1ioCmalWSLn9JT5qwXKCPD8LFAsLFaygd0doJgcrwC5U8kNXBREbPUir+7oYqW
13Nri6zDTlarRdObBeQRbxgpfjvLyKf0KUuaOZ7BLO4Mckp5Ci8xv4kO50Wviw0i
LOJc7X8lC99cukHRJWMDHaHPFoTHhT6H+hKNMIpPfSiDYKZk9mHYdjUACF4U/Jwb
SzkQgJKosNBwf6JIoo/j
=9dNe
-----END PGP SIGNATURE-----

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

(g)vim stop work suddenly on Win7

Hi All,

Recently, I noticed that (g)vim stop work on my Win7 X64 system, may be it is caused by certain windows updated patch. So if there is debug enabled version for windows, I can have a try to get a trace with gdb.

C:\code\qt\2009.03\mingw\bin>gdb "C:\Program Files (x86)\Vim\vim72\gvim.exe"
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(no debugging symbols found)
(gdb) r
Starting program: C:\Program Files (x86)\Vim\vim72\gvim.exe
[New thread 5168.0x147c]
(no debugging symbols found)
Error: dll starting at 0x77500000 not found.
Error: dll starting at 0x76bd0000 not found.
Error: dll starting at 0x77500000 not found.
Error: dll starting at 0x77620000 not found.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
warning: Lowest section in C:\Windows\syswow64\normaliz.dll is .text at 00401000
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New thread 5168.0x1b98]
[New thread 5168.0x93c]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New thread 5168.0x1588]
[New thread 5168.0x1b14]

Program received signal SIGSEGV, Segmentation fault.
0x004b97e0 in ?? ()
(gdb) bt
#0  0x004b97e0 in ?? ()
#1  0x00000001 in ?? ()
#2  0x00000001 in ?? ()
#3  0x7efde000 in ?? ()
#4  0x505c3a43 in ?? ()
#5  0x72676f72 in ?? ()
#6  0x46206d61 in ?? ()
#7  0x73656c69 in ?? ()
#8  0x38782820 in ?? ()
#9  0x565c2936 in ?? ()
#10 0x765c6d69 in SHStartNetConnectionDialogW () from C:\Windows\syswow64\shell32.dll
#11 0x0051d3af in ?? ()
#12 0x00000001 in ?? ()
#13 0x02042c08 in ?? ()
#14 0x00400000 in ?? ()
#15 0x00000000 in ?? ()
(gdb)

//=======================
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    vim.exe
  Application Version:    7.2.269.0
  Application Timestamp:    489dc87f
  Fault Module Name:    vim.exe
  Fault Module Version:    7.2.269.0
  Fault Module Timestamp:    489dc87f
  Exception Code:    c0000005
  Exception Offset:    000b56c0
  OS Version:    6.1.7600.2.0.0.256.1
  Locale ID:    2052
  Additional Information 1:    9cb9
  Additional Information 2:    9cb9820c32275b53ae5ee5881074bd48
  Additional Information 3:    8098
  Additional Information 4:    8098a46eebc21f636aea767293c3dbcd

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

--
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: how to info vim the ruby/lua intepreter path under windows

On Wed, Dec 29, 2010 at 06:57:00AM -0800, Isaac wrote:
> Hi there, I have a question about how to use lua or ruby support in
> vim 73
>
> - I can download the compiled verison with lua/ruby support
> - but my workstation is locked down that I can not install anything
> into the system, is there a way that I can direct the lua/ruby
> intepreter folder to vim so that it knows?
Vim (compiled with +ruby/dyn) should be able to pick up the
correct ruby lib from PATH.

Please see :help ruby-dynamic

In win32, I think you need to just unzip the ruby package to a
directory you have permission and add <Dir>\Ruby191\bin to path.

Regards,
Arun

--
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: showmarks incorrectly highlights all my source lines

I found the same problem, so I deleted this plugin  ~ In fact seldom use this feature . :-)

2010/12/30 Steven Woody <narkewoody@gmail.com>
Hi,

When I installed the showmarks pluglin (the latest 2.2 version), I
found all the source lines were incorrectly highlighted with my
highlight/search color.  Attached is screen shot.  What wrong with it?

I am using gvim 7.3 on Windows.

Thanks in advance!

--
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody@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

--
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: Substitute within a highlight group.

sergio wrote:
> Hello.
>
> Is there a way to substitute within a highlight group?
>
> I have file, with detected filetype and applied syntax. Syntax gives
> the group. And I want to make a substitution, for that text, that
> matches this group. (Really this is a bindzone file, and I want to
> adjust serial value)
>
See if David Fishburn's SrchRplcHiGrp plugin does what you want:

http://www.vim.org/script.php?script_id=848

Regards,
Chip Campbell

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

showmarks incorrectly highlights all my source lines

Hi,

When I installed the showmarks pluglin (the latest 2.2 version), I
found all the source lines were incorrectly highlighted with my
highlight/search color. Attached is screen shot. What wrong with it?

I am using gvim 7.3 on Windows.

Thanks in advance!

--
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody@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: Taglist error: Error detected while processing function 29_Tlist_Refresh_Folds

Hey! That works! Thank you!


On 30 December 2010 06:21, Jan Larres <lists@majutsushi.net> wrote:
> Hi Steven,
>
>> It seems this is a issue existing over long time.  I met the same
>> problem when I switch to a tab that has a TagList window opened.  Does
>> anyone know how to overcome it?
>
> try the attached patch, it should fix the problem.
>
> Cheers,
>        Jan
>
> --
> -[ OpenPGP key ID: 00A0FD5F ]-
> Patriotism is the willingness to kill and be killed for trivial reasons.
>                -- Bertrand Russell
>
> --
> 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
>

--
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody@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: Taglist error: Error detected while processing function 29_Tlist_Refresh_Folds

diff --git a/vim/.vim/bundle/taglist/plugin/taglist.vim b/vim/.vim/bundle/taglist/plugin/taglist.vim
index 59901f6..74487a1 100644
--- a/vim/.vim/bundle/taglist/plugin/taglist.vim
+++ b/vim/.vim/bundle/taglist/plugin/taglist.vim
@@ -4097,6 +4097,11 @@ endfunction
" window. Used after entering a tab. If this is not done, then the folds
" are not properly created for taglist windows displayed in multiple tabs.
function! s:Tlist_Refresh_Folds()
+
+ if g:Tlist_Show_One_File
+ return
+ endif
+
let winnum = bufwinnr(g:TagList_title)
if winnum == -1
return
Hi Steven,

> It seems this is a issue existing over long time. I met the same
> problem when I switch to a tab that has a TagList window opened. Does
> anyone know how to overcome it?

try the attached patch, it should fix the problem.

Cheers,
Jan

--
-[ OpenPGP key ID: 00A0FD5F ]-
Patriotism is the willingness to kill and be killed for trivial reasons.
-- Bertrand Russell

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

1st attempt at an autocmd - name:line, name:line:col

Hi,
Below is my first attempt at writing an autocmd (and for that
matter a vim script) and I'd appreciate any feedback (e.g.
'no you fool, don't do it like that, do it like this....', or
I wouldn't be surprised to be told someone has already done it).

This lets you do:

vi file:20

and it will load 'file' and jump to line 20, or

vi file:20:30

and it will load 'file' and jump to line 20, column 30
It will also accept a : at the end, e.g.

vi file:20:30:

Really, it's for where you have the output of a compiler or the like
(sparse in my case) but for one reason or another want to open it in
a separate vim.

Dave

{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}

function s:FileandLinenumber(rawname)
" Allow a : at the end, as from sparse
if a:rawname =~ ':$'
let tmpname=substitute(a:rawname, ':$', "", "")
else
let tmpname=a:rawname
endif

" Note the match in the autocmd is glob so can have junk after the number
if tmpname =~ '.*:[0-9][0-9]*$'
let filename=substitute(tmpname, ':[0-9][0-9]*$', "", "")
let lastnum=substitute(tmpname, '.*:', "", "")

" We allow name:line:col, so filename might actually still be name:line
" at this point
if filename =~ '.*:[0-9][0-9]*$'
" OK so this is name:line:col
let colnum=lastnum
let linenum=substitute(filename, '.*:', "", "")
let filename=substitute(filename, ':[0-9][0-9]*$', "", "")
else
let colnum=-1
let linenum=lastnum
endif
exe "e ".fnameescape(filename)
exe linenum
if (colnum != -1)
exe "normal " . colnum . "|"
endif
endif
endfunction

augroup davesfileandnumber
autocmd davesfileandnumber BufNewFile *:* nested call s:FileandLinenumber( expand("<afile>") )

{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}{<>}

--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ gro.gilbert @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.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: AX: change letters on the fly

Reply to message «Re: AX: change letters on the fly»,
sent 11:35:23 29 December 2010, Wednesday
by rameo:

Looks like just another reason not to use google groups (others are «editing»
messages (it is not possible on mailing list), autowrap, unicode->ascii
translations, e-mail stripping, interface inconveniences).

By the way, if you will ever use Gentoo bugzilla, note that it also has this
«feature».

Original message:
> On Dec 28, 6:49 pm, ZyX <zyx....@gmail.com> wrote:
> > By the way, why do I get lots of copies of all your messages? I heard
> > that it can be because you edit your messages in Google groups, but I do
> > not see any differencies between this message and its copy.
>
> Yes I noted it also.
> Maybe because after sending a message in google groups, I keep the
> page in my browser to see the reactions.
> When I refresh of the page it add a message at the bottom of the
> thread.

how to info vim the ruby/lua intepreter path under windows

Hi there, I have a question about how to use lua or ruby support in
vim 73

- I can download the compiled verison with lua/ruby support
- but my workstation is locked down that I can not install anything
into the system, is there a way that I can direct the lua/ruby
intepreter folder to vim so that it knows?

thanks

Isaac

--
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: AX: change letters on the fly

On Dec 28, 6:49 pm, ZyX <zyx....@gmail.com> wrote:
> By the way, why do I get lots of copies of all your messages? I heard that it
> can be because you edit your messages in Google groups, but I do not see any
> differencies between this message and its copy.
>


Yes I noted it also.
Maybe because after sending a message in google groups, I keep the
page in my browser to see the reactions.
When I refresh of the page it add a message at the bottom of the
thread.

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

Tuesday, December 28, 2010

Using browse command

Hi all,

   I want to use browse command when i use in GVim when i hit :browse e it opens up the filw browser box what is equivalent in console vim or can it open in a tab list of files in current directory.

--
Thanks & Regards
 Vickyb



--
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: Wanted: vimrc file that sources modules

Larry Alkoff schrob am 29.12.2010 03:40:

> It explained the use of various modules to organize and set options like
> colors and other settings. When vim started, the modules would be sourced.

Some discussion about that:
http://www.mail-archive.com/vim_use@googlegroups.com/msg04360.html

As a general rule, anything you :source in your .vimrc file will be
sourced on Vim startup. I use that to separate my Vim settings from my
Vim plug-in settings:

https://github.com/dertuxmalwieder/My-Vim-configuration/blob/master/.vimrc

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

Wanted: vimrc file that sources modules

About a year ago I read a very interesting article about the
organization of .vimrc.

It explained the use of various modules to organize and set options like
colors and other settings. When vim started, the modules would be sourced.

This left a very nice organizational structure that was easy to view and
edit.

This article was either in Linux Magazine, Linux Journal or the British
Linux Pro Magazine, or possibly just something I ran across on the web
and can no longer find.

Any pointers to this article would be greatly appreciated.

Larry Alkoff

--
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: How to recall what bookmarks I defined?

On 29 December 2010 04:00, Tom Link <micathom@gmail.com> wrote:
>> Thanks Tom!  I found quickfixsigns does not correct refresh its status
>> bar, showmarks does not work at all, and workmarks does not do global
>> marks.
>
> Could you please describe how it doesn't correctly refresh the signs?
> I know that an earlier version had problems with global marks. I
> uploaded the current version to vim.org.
>
> Anyway, I too wondered if tags could be of help for you.
>


The version I tried when I was writing the email is 0.11. In that
version, I can see the indication bar on the left. It can list some
marked I defined before, but when I created some new marks with 'ma',
'mb', 'mX', etc, I saw nothing changed on the bar. Sometimes, when I
scroll the screen with PGDN or PGUP, one or two of these newly defined
marks got displayed on the bar. Anyway the behavior is strange and I
don't know why.

Now I installed the lastest version 0.12, and it even worse and got an
error when I started vim:
Error detected while processing function QuickfixsignsSelect:
line 5:
E121: Undefined variable: g:quickfixsigns_class_breakpoints
E15: Invalid expression: g:quickfixsigns_class_{what}

Best Regards,
narke

--
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody@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: How to recall what bookmarks I defined?

> Thanks Tom!  I found quickfixsigns does not correct refresh its status
> bar, showmarks does not work at all, and workmarks does not do global
> marks.

Could you please describe how it doesn't correctly refresh the signs?
I know that an earlier version had problems with global marks. I
uploaded the current version to vim.org.

Anyway, I too wondered if tags could be of help for you.

--
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: How to recall what bookmarks I defined?

I am no programming expert, I use Vim mainly for writing, but you
sound as if you are interested in something more semi-permanent than a
mere mark. Have you ever tried ctags?

http://ctags.sourceforge.net/

This could enable you to keep all the "marks" you want and also call
them by any name you please.

Just a suggestions.

RD

On Dec 28, 11:10 am, Steven Woody <narkewo...@gmail.com> wrote:
> On 28 December 2010 04:33, Tom Link <micat...@gmail.com> wrote:
>
>
>
> >> 1. It's hard to recall what marks I defined -- local marks and global
> >> marks.
>
> > Are you looking for the :marks command?
>
> > There are a few plugins that display marks as signs on the left-hand
> > side. One of them is (my own) quickfixsigns. But there are others on
> > vim.org that may better fit your needs. It seems that over on vim.org
> > there are at least two plugins called showmarks that achieve something
> > similar. I personally also find that plugins like wokmarks and (my
> > own :-) tmarks make it easier to deal with marks. YMMV and, again,
> > maybe other plugins suit your editing habits better.
>
> > HTH
> > Tom
>
> Thanks Tom!  I found quickfixsigns does not correct refresh its status
> bar, showmarks does not work at all, and workmarks does not do global
> marks.  So the only one left is your tmarks.  The 'TMarks' list better
> information than the build-in 'marks' command.  Thanks for your work.
> So the issue remained open to me is that how to prevent me from
> accidently overwrite an previously defined mark.  If one of above
> bookmark visualization tools works, it would be resolved.
>
> Thanks.
>
> -
> narke
>
> --
> Life is the only flaw in an otherwise perfect nonexistence
>     -- Schopenhauer
>
> narke
> public key athttp://subkeys.pgp.net:11371(narkewo...@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: AX: change letters on the fly

Reply to message «Re: AX: change letters on the fly»,
sent 12:58:18 28 December 2010, Tuesday
by rameo:

> I have a russian keyb on my pc.
> I use phonetic russian.
> I started reading the translit3.txt document.
> Most features are for transliteration in russian isn't it?

Yes, the reason is explained in the first paragraph of intro located in
translit3.rux (I was to lazy to add this additional information to .txt because
there already were lots of information that cannot be omitted): I wrote it
because I do not want to learn touch-typing on two different keymaps: dvp and
ru. There is additional use-case: I use it to type math in LaTeX with russian
transliteration disabled.

By the way, why do I get lots of copies of all your messages? I heard that it
can be because you edit your messages in Google groups, but I do not see any
differencies between this message and its copy.