Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Martin Stubenschrott
On Sun, Oct 22, 2006 at 01:31:09AM +0400, Alexey I. Froloff wrote: > > Vim should _support_ Meta-Sends-Escape mode which is A Must Have > > for non-ascii 8-bit locales > Patch attached. > > New option - 'eightbitmeta' ('em'), default on. If unset, two > things happen: I like the idea, but did no

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Alexey I. Froloff
* Alexey I. Froloff [061021 17:53]: > Vim should _support_ Meta-Sends-Escape mode which is A Must Have > for non-ascii 8-bit locales Patch attached. New option - 'eightbitmeta' ('em'), default on. If unset, two things happen: 1. "" is stored internaly as "x" sequence (was (x | 0x80)). 2. Alt+k

Re: Paste as HTML

2006-10-21 Thread Mathias Michaelis
>>> What is the added value of marking >>> it as HTML on the clipboard? >>> >> The added value is that you are able to paste the text into a word >> processing program like AbiWord, MS Word or StarWriter in a way that >> the HTML-Tags are not shown, but are interpreted by the word >> processing pr

Re: Paste as HTML

2006-10-21 Thread Igor Dvorkin
The end user copies colored formatted text, and when they paste the formatting is preserved. The end user is not aware that HTML was involved in the operation. A confusing point is clients of the HTML clipboard format (CF_HTML) consider this type to be text+formatting for display, not a transpor

Re: Paste as HTML

2006-10-21 Thread Mathias Michaelis
Hello Tony >> To achieve this know, I only see one way: Convert your text to HTML, >> then save it as HTML, open it with a web browser, copy it from here >> into the clipboard and paste it into a word processing program. >> > What about opening the HTML file directly as RTF in a word processor? >

Re: Paste as HTML

2006-10-21 Thread Bram Moolenaar
Mathias Michaelis wrote: > > What is the added value of marking > > it as HTML on the clipboard? > > > The added value is that you are able to paste the text into a word > processing program like AbiWord, MS Word or StarWriter in a way that > the HTML-Tags are not shown, but are interpreted by t

Re: Paste as HTML

2006-10-21 Thread A.J.Mechelynck
Mathias Michaelis wrote: Hello * What is the added value of marking it as HTML on the clipboard? The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word

Re: Paste as HTML

2006-10-21 Thread Mathias Michaelis
Hello * > What is the added value of marking > it as HTML on the clipboard? > The added value is that you are able to paste the text into a word processing program like AbiWord, MS Word or StarWriter in a way that the HTML-Tags are not shown, but are interpreted by the word processing program in

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Alexey I. Froloff
* A.J.Mechelynck [061021 16:52]: > As you told me recently, "you don't know what you're talking about". Most [..skip..] > the keyboard sends. There's no Meta+Key entries in termcap/terminfo database. See readline documentation for "convert-meta" and "input-meta" options and xterm(1) for "eightBi

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * A.J.Mechelynck [061021 08:01]: IMHO, the way to configure it is not by hacking Vim but (at least in console Vim) by having a properly-built termcap/terminfo which tells Vim which codes correspond to which keys. IIRC, only user can tell what will Meta+Key send and it

Re: Paste as HTML

2006-10-21 Thread Bram Moolenaar
Igor Dvorkin wrote: > Many windows apps support a clipboard pasting format of HTML. This is > how you can copy code in Visual Studio 2005 and paste it into outlook > and see syntax highlighting. > > I recommend something similar be done for VIM. Today, we have toHTML, > that's reasonable, but id

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Alexey I. Froloff
* A.J.Mechelynck [061021 08:01]: > IMHO, the way to configure it is not by hacking Vim but (at > least in console Vim) by having a properly-built > termcap/terminfo which tells Vim which codes correspond to > which keys. IIRC, only user can tell what will Meta+Key send and it has nothing to do wit

Re: bash syntax does not handle bitwise left shift

2006-10-21 Thread A.J.Mechelynck
Olaf Hering wrote: The shell syntax highlighting does not work for the bash 'left bitwise shifts'. I have uploaded the example script and screen show to http://www.aepfle.de/linux/vim/ The offending line is: (( of_disk_addr = ( (of_disk_scsi_chan<<16) | (of_disk_scsi_id<<8) | of_d

Re: Paste as HTML

2006-10-21 Thread Edward L. Fox
On 10/21/06, Ilya Bobir <[EMAIL PROTECTED]> wrote: Edward L. Fox wrote: > In my opinion, this kind of work shouldn't be done by hacking the > source code of VIM. You can use a vim script to call the synax > highlighting engine to convert the text into HTML code, and copy the > converted code into

bash syntax does not handle bitwise left shift

2006-10-21 Thread Olaf Hering
The shell syntax highlighting does not work for the bash 'left bitwise shifts'. I have uploaded the example script and screen show to http://www.aepfle.de/linux/vim/ The offending line is: (( of_disk_addr = ( (of_disk_scsi_chan<<16) | (of_disk_scsi_id<<8) | of_disk_scsi_lun ) )); #

Re: Paste as HTML

2006-10-21 Thread Ilya Bobir
Edward L. Fox wrote: In my opinion, this kind of work shouldn't be done by hacking the source code of VIM. You can use a vim script to call the synax highlighting engine to convert the text into HTML code, and copy the converted code into the clipboard with a DLL add-on (as we know, GVim supports