patch: set() function

2006-10-25 Thread Hari Krishna Dara
Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I wanted this is the lack of support to use :let for modifying the dictionary elements. E.g., the below will be an error: :let get_dict().key = 'val' The

Re: escape() and '

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: '\V'.escape(substitute(regex, ', '', 'g'), '\') Uh, when did Vim's strings become objects? (Would be really nice if they were, mind you.) nikolai

Re: escape() and '

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: '\V'.escape(substitute(regex, ', '', 'g'), '\') Uh, when did Vim's strings become objects? (Would be really nice if they were, mind you.) Ahahaha, OK. Sorry. Goddam I hate the

Re: containedin can't include clusters

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax definition I'm writing, but it seems that one can't do it that way. Is there a reason for this, or is it

Re: containedin can't include clusters

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax

Re: patch: set() function

2006-10-25 Thread Hari Krishna Dara
On Wed, 25 Oct 2006 at 9:16am, Nikolai Weibull wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I wanted this is the lack of support

Re: patch: set() function

2006-10-25 Thread G. Sumner Hayes
Hari Krishna Dara [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. [SNIP] Wouldn't it be better to allow the

Re: question about vim buffer write to file

2006-10-25 Thread Bram Moolenaar
Ming Lei wrote: I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM handle the file

Re: patch: set() function

2006-10-25 Thread Bram Moolenaar
Hari Krishna Dara wrote: On Wed, 25 Oct 2006 at 9:16am, Nikolai Weibull wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I

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

2006-10-25 Thread Ilya Sher
A.J.Mechelynck wrote: Ilya Sher wrote: A.J.Mechelynck wrote: Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing Esc o to open a new line or Esc n to find the next match. A

Re: Bold font in OS X GUI?

2006-10-25 Thread A.J.Mechelynck
Peter Hodge wrote: Hello, I am having trouble with OS X GUI, none of the highlighting is in Bold. Is this a Bug, or does Bold font just not work in the OS X gui? regards, peter It may depend on your 'guifont'. Some font faces have no bold glyphs, others no italic, etc. Here, when I set

mapping of C-1

2006-10-25 Thread Roman Pořízka
Hello, I'm trying to map C-1 to some command (:tabn 1cr) and unfortunately it's not working :( I'm trying on linux (where this mapping for mrxvt works) and windows... Have you any clue why it's not working? With regards, Roman Porizka

Re: Bold font in OS X GUI?

2006-10-25 Thread Peter Hodge
--- A.J.Mechelynck [EMAIL PROTECTED] wrote: Peter Hodge wrote: Hello, I am having trouble with OS X GUI, none of the highlighting is in Bold. Is this a Bug, or does Bold font just not work in the OS X gui? regards, peter It may depend on your 'guifont'. Some font faces

Re: Bold font in OS X GUI?

2006-10-25 Thread panshizhu
Peter Hodge [EMAIL PROTECTED] 写于 2006-10-25 14:54:16: I can use guifont=*, and have tried many different fonts which have bold and italic glyphs. The problem is that no matter which font I choose, Vim refuses to show text in Bold (Unless I choose a font which has only a bold glyph). I get

inserting backticks

2006-10-25 Thread Alexander 'boesi' Bösecke
Hi When inserting a backtick (`) I normally type `space. But sometimes nothing happens... When I enter a 2. space, I get a space. I can enter as many spaces as I want, but I get no backtick. When I type a letter, eg. d, _than_ I get `d at the current cursor position. Wnen I type a 2. ` instead of

Re: mapping of C-1

2006-10-25 Thread A.J.Mechelynck
Roman Pořízka wrote: Hello, I'm trying to map C-1 to some command (:tabn 1cr) and unfortunately it's not working :( I'm trying on linux (where this mapping for mrxvt works) and windows... Have you any clue why it's not working? With regards, Roman Porizka It's not working because it's not

Re: inserting backticks

2006-10-25 Thread A.J.Mechelynck
Alexander 'boesi' Bösecke wrote: Hi When inserting a backtick (`) I normally type `space. But sometimes nothing happens... When I enter a 2. space, I get a space. I can enter as many spaces as I want, but I get no backtick. When I type a letter, eg. d, _than_ I get `d at the current cursor

understanding font setting in gvim for win32

2006-10-25 Thread o1792
I've been trying to change fonts in my win32 vim. I don't find a font directory in the vim tree, so I take it Win fonts are begin used. Right now in my _gvimrc, I have: set guifont=Lucida_Console:h10 Courier:h10 also works but other common fonts like Arial:h10 don't work. Is that because they are

Re: inserting backticks

2006-10-25 Thread Alexander 'boesi' Bösecke
Hi Am 25.10.2006 10:32:47 schrieb A.J.Mechelynck: Unless you have a mapping for something starting with a backtick, Well according to :verb imap ` I don't have one. it might be your OS (including the keyboard interface). Hmm in other applications, like my mail program or openoffice,

Re: understanding font setting in gvim for win32

2006-10-25 Thread Tim Chase
set guifont=Lucida_Console:h10 Courier:h10 also works but other common fonts like Arial:h10 don't work. Is that because they are not mono spaced? gVim's only happy with monospaced fonts. I've heard rumors of being able to coerce it to used other fonts, but the results are usually pretty

Re: understanding font setting in gvim for win32

2006-10-25 Thread Alexander 'boesi' Bösecke
Hi Am 25.10.2006 11:53:42 schrieb o1792: But then I need to work out the syntax for it in _gvimrc. How do I work it out? OK, a space in Windows is probably an underscore, but is there anything else I need look out for? You can select a font with :set guifont=*. I you want to know which

Re: understanding font setting in gvim for win32

2006-10-25 Thread o1792
Cool, many thanks boesi and tim for your answers! --- Tim Chase [EMAIL PROTECTED] wrote: set guifont=Lucida_Console:h10 Courier:h10 also works but other common fonts like Arial:h10 don't work. Is that because they are not mono spaced? gVim's only happy with monospaced fonts. I've

Re: understanding font setting in gvim for win32

2006-10-25 Thread A.J.Mechelynck
Tim Chase wrote: set guifont=Lucida_Console:h10 Courier:h10 also works but other common fonts like Arial:h10 don't work. Is that because they are not mono spaced? Courier_New (a fixed-width TrueType font) is usually better-looking (if not by much) than Courier (a bitmapped font). Also,

Cut'n'Paste via *p and different users

2006-10-25 Thread Meino Christian Cramer
Hi, I often edit some system related files as root while haveing cat-ed related (text-) material as user on another terminal. Trying to do the following under X and with mrxvt as termulator does not work: sux root password vim a system file (and as user at another termulator-window):

Re: Binary files, noeol, and other such things.

2006-10-25 Thread Yakov Lerner
On 10/25/06, Matthew Winn [EMAIL PROTECTED] wrote: On Tue, 24 Oct 2006 19:35:41 +0200, A.J.Mechelynck [EMAIL PROTECTED] wrote: In Algol, Pascal, and (IIUC) C, the semicolon is a statement separator. The last statement before an *end* or } doesn't need an ending semicolon; if there is one,

Re: Cut'n'Paste via *p and different users

2006-10-25 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I often edit some system related files as root while haveing cat-ed related (text-) material as user on another terminal. Trying to do the following under X and with mrxvt as termulator does not work: sux root password vim a system file (and as user

Re: Problems with Align.vim

2006-10-25 Thread Charles E Campbell Jr
Diwaker Gupta wrote: I'm using Vim 7.0.122 on Debian Unstable. I can send output of :version if needed. I've recently started having problems using Align.vim: Error detected while processing function AlignWrapperStart: line 28: E117: Unknown function: Align#AlignPush I've tried installing

Re: Cut'n'Paste via *p and different users

2006-10-25 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: Cut'n'Paste via *p and different users Date: Wed, 25 Oct 2006 14:28:23 +0200 Meino Christian Cramer wrote: Hi, I often edit some system related files as root while haveing cat-ed related (text-) material as user on another terminal.

Re: Problems with Align.vim

2006-10-25 Thread Benji Fisher
On Tue, Oct 24, 2006 at 03:29:25PM -0700, Diwaker Gupta wrote: I'm using Vim 7.0.122 on Debian Unstable. I can send output of :version if needed. I've recently started having problems using Align.vim: Error detected while processing function AlignWrapperStart: line 28: E117: Unknown

Re: jumplist/mark ' problem

2006-10-25 Thread Benji Fisher
On Tue, Oct 24, 2006 at 07:03:37PM -0700, Hari Krishna Dara wrote: I am facing a weird problem with the '' marker not getting set. Here is what I am doing, but this may be more generic than what I do, but this scenario is the most I use: - While on an identifier, use ^W^] to jump to the id

Re: Bold font in OS X GUI?

2006-10-25 Thread Benji Fisher
On Wed, Oct 25, 2006 at 03:58:36PM +1000, Peter Hodge wrote: Hello, I am having trouble with OS X GUI, none of the highlighting is in Bold. Is this a Bug, or does Bold font just not work in the OS X gui? regards, peter There are known problems with fonts in the OS X GUI, but it is

Re: inserting backticks

2006-10-25 Thread Benji Fisher
On Wed, Oct 25, 2006 at 12:02:51PM +0200, Alexander 'boesi' Bösecke wrote: Hi Am 25.10.2006 10:32:47 schrieb A.J.Mechelynck: Unless you have a mapping for something starting with a backtick, Well according to :verb imap ` I don't have one. Did you also try :verbose imap Space

Re: Cut'n'Paste via *p and different users

2006-10-25 Thread Tim Chase
I was wondering, whether the clipboard-problem is caused by some (possible wrong) settings of my system or a normal behaviour of X/mrxvt and whether there are tricks to make the clibboard working inter-user-al :) ... it is so cool to use *p !!! The following information is 100%

Re: Cut'n'Paste via *p and different users

2006-10-25 Thread Meino Christian Cramer
From: Tim Chase [EMAIL PROTECTED] Subject: Re: Cut'n'Paste via *p and different users Date: Wed, 25 Oct 2006 08:19:29 -0500 I was wondering, whether the clipboard-problem is caused by some (possible wrong) settings of my system or a normal behaviour of X/mrxvt and whether there are

Re: Cut'n'Paste via *p and different users

2006-10-25 Thread Tim Chase
XAUTHORITY=/home/user/.Xauthority gvim file1.txt The old-school way of doing this was to tinker with xhost to allow a whole host (rather than a particular user) to connect to the X server. The aim is to allow your alternate user (root in this case) permission to connect to the X server so

Re: Problems with Align.vim

2006-10-25 Thread Charles E Campbell Jr
Benji Fisher wrote: There are a few problems here. First, it is too easy to miss the warning BE SURE TO GET THE LATEST VIMBALL PLUGIN BEFORE ATTEMPTING TO USE SCRIPTS UPLOADED ON OR AFTER AUG 1, 2006 posted on http://mysite.verizon.net/astronaut/vim/index.html . Ideally,

Re: navigate in command line completion

2006-10-25 Thread Aaron
koxinga wrote: hello, I like to have a menu to navigate through the propositions available when I hit Tab so I love the option wildmenu. However, it would be even better if the navigation was two-dimensional, on several lines, like in zsh when the option zstyle ':completion:*' menu select is

saving and loading views

2006-10-25 Thread Samuel Wright
Hi Guys, I used to have this in .vimrc autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview to automatically save and load folds. I have recently added it again, but it does not seem to work in Vim 7 on Win XP. Have I missed anything obvious? Thanks Sam

file name from command mode

2006-10-25 Thread Naim Far
Hi Vim guys, Any body knows how to get the current file name in command mode?! Thanx...

Re: file name from command mode

2006-10-25 Thread Tim Chase
Any body knows how to get the current file name in command mode?! The common way is either to use expand('%') in an expression (there are modifiers if you need pieces such as the path, extension, etc, as detailed in :help expand() ) or control+R followed by a percent-sign

Re: saving and loading views

2006-10-25 Thread Charles E Campbell Jr
Samuel Wright wrote: Hi Guys, I used to have this in .vimrc autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview to automatically save and load folds. I have recently added it again, but it does not seem to work in Vim 7 on Win XP. Have I missed anything obvious? Well,

match real number

2006-10-25 Thread Peng Yu
Hi, I'm wondering if there is any built in regex to match real number? It could make some application easier. Thanks, Peng

Re: match real number

2006-10-25 Thread Tim Chase
I'm wondering if there is any built in regex to match real number? It could make some application easier. There aren't any builtin, and given that Vim doesn't have native support for floating-point math, it's not surprising. One can use something like

has('unix')

2006-10-25 Thread Martin Krischik
Hello, for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem: there is only has('unix') - but that's not good enough as Linux allows for anti alias fonts and Sun Solaris

Re: has('unix')

2006-10-25 Thread Tim Chase
for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem: there is only has('unix') - but that's not good enough as Linux allows for anti alias fonts and Sun Solaris does not.

Re: Anyway to sort scripts by last update date? (bad email address)

2006-10-25 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: The vim.sf.net has a script search feature which can sort by Rating,...snip Pan Shizhu: I got this from my attempt to email to you... This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more

Re: inserting backticks

2006-10-25 Thread Alexander 'boesi' Bösecke
Hi Am 25.10.2006 15:08:23 schrieb Benji Fisher: Did you also try :verbose imap Space no mapping for space :verbose iabbrev ` I didn't try it because today I've heard about abbreviation the first time. But I have no abbreviations. and so on? What else should I try? I suggest

Re: has('unix')

2006-10-25 Thread Mikolaj Machowski
On śro paź 25 2006, vim@vim.org wrote: Hello, for my font plug in I need to know which OS I am running on to choose an appropriate font. Now when Sun Solaris where added to the list of OS I use I run into a little problem: there is only has('unix') - but that's not good enough as Linux

Always bounces back

2006-10-25 Thread Billy Patton
test

Need to write a language

2006-10-25 Thread Billy Patton
I'm in the semiconductor industry. My job is to create data and to run regression tests on that data for the validation of physical layout rules. Skip to bottom for questions, if you don't want to read my ramblings. The current problem is tha the rules are not in a computer readable form.

Re: getchar() trick with recursive expr map

2006-10-25 Thread Mikolaj Machowski
On śro paź 25 2006, Mikolaj Machowski wrote: In Linux terminal and GTK2 versions cursor is stuck in command line and don't at its real position making inserting of text almost random. Getting stuck at command-line is normal, as it is always waiting on getchar(). I realize will not be

Re: Need to write a language

2006-10-25 Thread Karl Guertin
On 10/25/06, Billy Patton [EMAIL PROTECTED] wrote: I assume excel has a limit to the number of columns. I believe the max is 65000 but that may be increased by now. Is it possible, in vim/gvim to open a special version of vim so that the user can begin to type, spac , and it would complete

Re: Need to write a language

2006-10-25 Thread Peter Hodge
--- Billy Patton [EMAIL PROTECTED] wrote: I'm in the semiconductor industry. My job is to create data and to run regression tests on that data for the validation of physical layout rules. Skip to bottom for questions, if you don't want to read my ramblings. The current problem is tha

Re: inserting backticks

2006-10-25 Thread Benji Fisher
On Wed, Oct 25, 2006 at 09:29:45AM +0200, Alexander 'boesi' Bösecke wrote: Hi When inserting a backtick (`) I normally type `space. But sometimes nothing happens... When I enter a 2. space, I get a space. I can enter as many spaces as I want, but I get no backtick. When I type a letter, eg.

Re: Need to write a language

2006-10-25 Thread Benji Fisher
On Wed, Oct 25, 2006 at 06:42:15PM -0400, Karl Guertin wrote: On 10/25/06, Billy Patton [EMAIL PROTECTED] wrote: My questions. 1. Can vim be configured to automatically start in edit mode? Yes, but I forget what the setting is, you can just push it into insert mode when you enter a buffer

Re: getchar() trick with recursive expr map

2006-10-25 Thread Hari Krishna Dara
On Wed, 25 Oct 2006 at 11:33pm, Mikolaj Machowski wrote: On ¶ro pa¼ 25 2006, Mikolaj Machowski wrote: In Linux terminal and GTK2 versions cursor is stuck in command line and don't at its real position making inserting of text almost random. Getting stuck at command-line is normal, as it