Re: Detect when a register has been modified

2009-09-06 Thread Christophe-Marie Duquesne
>> Are you using a Desktop Environment? I believe Klipper and the Gnome >> clipboard tool can be switched to keep X-Selection and X-Clipboard >> synchronous FYI, I think the perfect tool for doing that is autocutsel : http://www.nongnu.org/autocutsel/ "Autocutsel tracks changes in the server's c

Re: help optimizing typing (less arrow keys), and does Vim support electric brackets?

2009-09-06 Thread bill lam
On Sat, 05 Sep 2009, Schif Schaf wrote: > > On Sep 6, 2:02 am, bill lam wrote: > > On Sat, 05 Sep 2009, Schif Schaf wrote: > > > > > > May be yon can define imap such as > > :inoremap [ [] > > That works nicely! How can I put that into my .vimrc? > > Also, is there any special syntax to get it

Re: help optimizing typing (less arrow keys), and does Vim support electric brackets?

2009-09-06 Thread John Little
> Anyway, after typing that line, my cursor is left at the end of the > "abc". To finish the line and start the next one, I'm seem to be stuck > doing " A " all the time. Well, o is one less command, and two less key presses. HTH, regards, John --~--~-~--~~~---~--~

Re: Every line in a paragraph exept of one

2009-09-06 Thread meino . cramer
Tim Chase [09-09-05 23:55]: > > > is it possible and if 'yes' to do the following: > > > > In a text of paragraphs, there are paragraphs containing > > a certain keyword. > > I want to delete all lines of all paragraphs containing > > the keyword except the lines containing the keyword. > > An

Re: help optimizing typing (less arrow keys), and does Vim support electric brackets?

2009-09-06 Thread Christophe-Marie Duquesne
Just in case you discover you are annoyed by this mapping : You may want to check if there is text after the cursor before inserting the closing tocken, e.g. autoclosing a " (a double quote) can be annoying if you just wanted to comment something in you vimrc. I use this mapping to avoid this situ

Re: How to use vim tabs like other editors' tabs

2009-09-06 Thread Bastiaan Wakkie
Perhaps (as in gVim these tabs looks like tabs you will find in all other programs) the design of tabs or the naming should change. How about work: instead of tab: with a second tab layers with your buffers so that you have the feeling they act as a workspace. Are buffers always attached to one t

Re: vimdiff export to html

2009-09-06 Thread Christian Brabandt
Hi Ben! On Sa, 05 Sep 2009, Ben Fritz wrote: > What version of the patch are you looking at? I can't find the word > "runtime" at all in the latest patch submitted on the thread. Why are you looking for the word runtime? I have been talking about patching tohtml.vim (which you'll also find in

Re: vimdiff export to html

2009-09-06 Thread Steve Hall
On Sat, 2009-09-05 at 07:37 -0700, Ben Fritz wrote: > On Sep 5, 3:34 am, Markus Heidelberg wrote: > > > > > I've considered that. The only thing stopping me is that I'm > > > kind of hoping it will get into the official version. > > > > It is since about the 26th of July. > > > > Hey, neat! I'll

XML editing

2009-09-06 Thread Tuomas
Hello! When I am editing XML files, I would like to change the behavior of Xmledit () as follows. Having typed `Some text', I would like to have `' inserted when I type (in insert mode) `Some textSome text_' (`_' denotes the cursor position

Re: changing what counts as a paragraph

2009-09-06 Thread Chris Bannister
On Wed, Sep 02, 2009 at 12:20:20PM +0800, Wayne wrote: > Certainly, I should edit quoted part rather than directly bottom-post, but I > don't want to edit > other's post. Why not? Deleting irrelevant text (snipping) is necessary. As long as you don't alter the meaning of the OP then it makes the

Re: help optimizing typing (less arrow keys), and does Vim support electric brackets?

2009-09-06 Thread Ben Fritz
On Sep 5, 11:45 pm, Schif Schaf wrote: > I often need to type out a line that looks something like the > following: > >     foo(['abc']) > > To do so, I might literally type the following: > >   * foo >   * () >   * >   * [] >   * >   * '' >   * >   * abc > Take a look at our tip on this to

Re: vimdiff export to html

2009-09-06 Thread Ben Fritz
On Sep 6, 6:23 am, Christian Brabandt wrote: > Why are you looking for the word runtime? I have been talking about > patching tohtml.vim (which you'll also find in the patch). This file > exists in your VIMRUNTIME/plugin directory. But even if you do not > know where it is, you can always do: >

Re: help optimizing typing (less arrow keys), and does Vim support electric brackets?

2009-09-06 Thread Schif Schaf
On Sep 6, 4:06 am, John Little wrote: > > Anyway, after typing that line, my cursor is left at the end of the > > "abc". To finish the line and start the next one, I'm seem to be stuck > > doing " A " all the time. > > Well, o  is one less command, and two less key presses. Heh. Of course. :) T

Re: au_exists bug, was Re: Test Existence of Autocommand?

2009-09-06 Thread Bram Moolenaar
Bob Hiestand wrote: > On Thu, Sep 3, 2009 at 6:13 AM, Bram Moolenaar wrote: > > >> Here's a probably better patch, and a test case to show the behavior I > >> expect from exists() with respect to autocommands: > > > > Thanks for the patch and testcase script. Would you be able to turn the > >

Re: using Unix 'whoami' to build a temp file location

2009-09-06 Thread Robert H
Thanks to all for replying... --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: : NoDeadKeys under WinXP with gvim

2009-09-06 Thread Tony Mechelynck
On 28/08/09 17:55, Matt Wozniski wrote: [...] > No, you understood my advice. I'm not terribly well-schooled in > international keyboard layouts, but I would be surprised if there > wasn't a qwertz layout without dead keys... Composing keys are much > more convenient than dead keys when programm

Re: using Unix 'whoami' to build a temp file location

2009-09-06 Thread pansz
Robert Hicks 写道: > Is there a way to set a temp and backup location for users using a > global vimrc like: > you can use tempname() to obtain a unique name, and you can use it as the directory so that every user have a different temp directory. --~--~-~--~~~---~--~

Completing phrases

2009-09-06 Thread kellvyn
I have a question about completion. Here's some background: I'm writing text files that will contain the tags for my flac collection. Each one of these tag files contains the tags for several flac files; I have a script that uses metaflac to read off the tags for each flac file from the tag file.

Re: Completing phrases

2009-09-06 Thread Tim Chase
> I thought I could use whole line completion. So I tried making a file > containing: > COMPOSER=Ludwig van Beethoven > and then setting it as the value of 'complete,' erasing the default > value of 'complete'. But if I'm on a line containing > COMPOSER=L > and I type , it tells me "Pattern not f

alt-backspace?

2009-09-06 Thread meino . cramer
Hi, on the commandline (zsh) I often use Alt-backspace to delete the word before the cursor. Is there any way to map a vim command (-sequence) to Alt-backspace to do the same ? Have a nice week! Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absol

Re: Completing phrases

2009-09-06 Thread kellvyn
Tim Chase wrote (09/06/09 21:03): > I'm not sure what you changed 'complete' to, but by default, it > should be ".,w,b,u,t,i" (it takes flags, not a file-name). Sorry; wasn't explicit enough when I first described what I did. I read that 'complete' allows the k{dict} flag. From options.txt: k

$VIMRUNTIME/syntax/muttrc.vim - filetype incorrectly detected - Vim 7.1.

2009-09-06 Thread Patrick Gen-Paul
Taking a look at /usr/share/vim/vim71/syntax/muttrc.vim, I noticed that there was none of the usual syntax hightlighting. When I issued a ":set ft?", I found out that vim had set the file type to "mail" instead of "vim". On an older debian "etch" system with vim 7.0, this does not happen. I t

Tilde character - I'd like to get rid of the "~" character that signals lines beyond file end.

2009-09-06 Thread Patrick Gen-Paul
I had previously made these (to me) annoying ~'s invisible by specifying "ctermfg=Black ctermbg=Black" for the "NonText" highlight group, but there is a caveat, namely that the end-of-line "$" character that by default is used to visualize the end-of-line in "list" also became invisible. I co

Re: Vim Suggestion: adapting tw to displayed with (vs. termwidth) if numbering

2009-09-06 Thread Tony Mechelynck
On 31/08/09 01:44, Ken Bloom wrote: > Linda W wrote: >> >> >> Suggesting [programmatically, :-) ]: >> >> When (vimoption(number) == true)) { >> when ("one uses text autoformat" (aka 'gqap')) { >> setlocal tw=disp_width'(dflt==0)) /' - nuw'(vimdflt=4,compat=8) /' >> } >> } >> >> ? >> Lind

Re: alt-backspace?

2009-09-06 Thread John Little
On Sep 7, 2:29 pm, meino.cra...@gmx.de wrote: > on the commandline (zsh) I often use Alt-backspace to delete > the word before the cursor. > > Is there any way to map a vim command (-sequence) to Alt-backspace > to do the same ? This depends on OS, and gui or terminal emulator. On my kubuntu gv