Re: right-to-left text selection

2006-05-16 Thread Gerald Lai
On Tue, 16 May 2006, Jared wrote: [snip] So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? [snip] The simplest work around is to hit "ol" (that's oh-el) to select that last character. Y

Re: gvim when x server is shut down

2006-05-16 Thread Gerald Lai
On Wed, 17 May 2006, Dennis Nezic wrote: when i exit my wm (e16), since it doesn't (and shouldn't) close any other programs, gvim is stuck without an x server, and doesn't handle this loss gracefully. effectively, it's as if it was kill -9'ed ... and thus leaves temporary files behind, which i l

right-to-left text selection

2006-05-16 Thread Jared
Ok, I have a really weird questions this time. I use the selection=exclusive option, because I don't like Vim to select the hidden "newline" character at the end of lines when I'm copying or deleting an entire line. However, this has one side effect that I have not been able to figure out. If I

gvim when x server is shut down

2006-05-16 Thread Dennis Nezic
when i exit my wm (e16), since it doesn't (and shouldn't) close any other programs, gvim is stuck without an x server, and doesn't handle this loss gracefully. effectively, it's as if it was kill -9'ed ... and thus leaves temporary files behind, which i later have to labouriously clean up. can it

Re: , maparg(), and UTF-8

2006-05-16 Thread Yakov Lerner
On 5/17/06, Luc Hermitte <[EMAIL PROTECTED]> wrote: Hello, I have a problem with an old hack that works fine in latin1, but starts to cause problems in UTF-8. The hack helps to replace activation key-sequences from i-mappings with their mapped value, which are actually calls to script-local fun

Re: Text -> commandline

2006-05-16 Thread Meino Christian Cramer
From: Thor Andreassen <[EMAIL PROTECTED]> Subject: Re: Text -> commandline Date: Tue, 16 May 2006 22:45:30 +0200 Hi, The yank-trick (first yank the stuff, then CTRL-R" in the commandline fits currently my needs best. Thanks a lot! mcc > On Tue, May 16, 2006 at 07:12:01PM +0200, A.J.Mechel

Re: sourcing vimrc files

2006-05-16 Thread Jared
On 5/14/2006 8:41 PM, Gerald Lai wrote: > Encase your function like this: > > if !exists("*Source_vimrc") > function Source_vimrc() > ... > endfunction > endif Thanks, Gerald. This worked perfectly. Also, thanks to everyone else for their suggestions. I appreciate the feedback and read u

Re: vim7: two issues with insert mode completion

2006-05-16 Thread Hari Krishna Dara
To add to this, I am surprised that ^C in macro recording is ignored. Since the first ^P was taking a long time scanning all buffers, I inserted a ^C after the first ^P to stop scanning (so the macro becomes, cw^P^C^P^[), and insert the word that comes before the space, but this got ignored while

vim7: two issues with insert mode completion

2006-05-16 Thread Hari Krishna Dara
Very often, I record changes that involves i_^P, and see an issue replaying them in Vim7. Say, you have text such as: aaa bbb ccc ddd eee fff so on Now, if I want to change all the 3rd columns to same as the first column, I usually do this by recording the cw^P^P^[ while on the 3rd column and re

Re: [vim7] a strange behavior of completeopt

2006-05-16 Thread mzyzik
On Tue, May 16, 2006 at 08:57:57AM -0400, Benji Fisher wrote: > On Tue, May 16, 2006 at 04:06:27PM +0800, Linsong wrote: > > Hi, all > >I encounter a strange problem when use vim7, the following steps > > will reproduce the problem: > >1. run vim with command: vim -u NONE -U NONE > >2.

Re: echon space ?

2006-05-16 Thread A.J.Mechelynck
Eric Arnold wrote: On 5/16/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Tue, 16 May 2006, Eric Arnold wrote: > Does anybody understand why trailing spaces in an "echon" string don't > actually show up? > > echon "\ngimme " > let inp = getchar() > echon nr2char(inp) I think echo/echon is doing

Re: echon space ?

2006-05-16 Thread Eric Arnold
On 5/16/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Tue, 16 May 2006, Eric Arnold wrote: > Does anybody understand why trailing spaces in an "echon" string don't > actually show up? > > echon "\ngimme " > let inp = getchar() > echon nr2char(inp) I think echo/echon is doing fine. It's getchar()

Re: Key Mapping for spellcheck.

2006-05-16 Thread Baha-Eddine MOKADEM
Thank you for your response, it you will save me much time looking a mapping that doesn't not exist as I expected. Thank you. Not sure Vim sees that key. In Insert mode, try hitting Ctrl-V (or Ctrl-Q if you use Ctrl-V to paste) followed by the key in question. If something is inserted in your bu

Re: marked text in visual mode is loaded to xclipboard

2006-05-16 Thread A.J.Mechelynck
Friedrich Strohmaier wrote: [...] So simple and so far away! I was searching, but had no luck to hit. [...] You might have tried ":helpgrep clipboard" after all else had failed. Best regards, Tony.

Re: Installation probs in windows

2006-05-16 Thread A.J.Mechelynck
Adam Young wrote: I am dying to use the new v of vim but, while using the exe installer, I get repeated errors while trying to install to the default directory: C:/Program Files/Vim/vim70. I am alerted repeatedly that the "path must end in Vim". Installing to the directory C:/Program Files/Vim ha

Re: echon space ?

2006-05-16 Thread Gerald Lai
On Tue, 16 May 2006, Eric Arnold wrote: Does anybody understand why trailing spaces in an "echon" string don't actually show up? echon "\ngimme " let inp = getchar() echon nr2char(inp) I think echo/echon is doing fine. It's getchar() that's eating up trailing spaces. Compare @a's for: :red

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Hari Krishna Dara
On Tue, 16 May 2006 at 2:43pm, Bob Hiestand wrote: > Hi all, > > I'm re-writing my cvscommand.vim plugin to handle both CVS and > Subversion version control systems. I'm currently implementing some > of the functionality through function references that define common > operations for each sour

Re: HTML editing with vim: where to start ?

2006-05-16 Thread Gerald Lai
On Tue, 16 May 2006, Ivan Vecerina wrote: Hi, I'm pretty new to Vim, but went through several tutorials, quick references, a number of help pages, and briefly through the Vim book. I also hear announcements about Vim7's enhanced built-in support for HTML editing. I even tried to play a bit with

, maparg(), and UTF-8

2006-05-16 Thread Luc Hermitte
Hello, I have a problem with an old hack that works fine in latin1, but starts to cause problems in UTF-8. The hack helps to replace activation key-sequences from i-mappings with their mapped value, which are actually calls to script-local functions. What is quite odd is that I have a workaround

echon space ?

2006-05-16 Thread Eric Arnold
Does anybody understand why trailing spaces in an "echon" string don't actually show up? echon "\ngimme " let inp = getchar() echon nr2char(inp)

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Eric Arnold
On 5/16/06, Eric Arnold <[EMAIL PROTECTED]> wrote: Have you thought about making it a dict function, and passing in and out via the self dict? function Mylen() dict let self['newkey'] = 'newvalue' return len(self.data) endfunction let mydict = {'data': [0, 1, 2, 3], 'len': func

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Bob Hiestand
On 5/16/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 5/16/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: > I'm re-writing my cvscommand.vim plugin to handle both CVS and > Subversion version control systems. I'm currently implementing some > of the functionality through function references that

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Eric Arnold
Have you thought about making it a dict function, and passing in and out via the self dict? On 5/16/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 5/16/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: > I'm re-writing my cvscommand.vim plugin to handle both CVS and > Subversion version control syste

Re: Text -> commandline

2006-05-16 Thread Thor Andreassen
On Tue, May 16, 2006 at 07:12:01PM +0200, A.J.Mechelynck wrote: > Meino Christian Cramer wrote: > > for what keyword I have to look in the online-help to find a hint > > how to copy any text from a buffer as any part of a command currently > > being edited in the commandline ? > > > If by "buffer"

Re: sql omni complete question

2006-05-16 Thread David . Fishburn
> to insert mode and type s, > where the is the ctrl-space. No, means while holding down the CTRL key press the letter "C", not Space. That would be . What OS are you running on? How are you connected to the box (Windows, SSH, Telnet,...). Try that and let us know what happens. You can downl

Re: Text -> commandline

2006-05-16 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Meino Christian Cramer wrote: Hi, for what keyword I have to look in the online-help to find a hint how to copy any text from a buffer as any part of a command currently being edited in the commandline ? kind regards, mcc If by "buffer" you mean what the Vim

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Yakov Lerner
On 5/16/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function references that define common operations for each source control system in

Re: marked text in visual mode is loaded to xclipboard

2006-05-16 Thread Friedrich Strohmaier
Hello Yegappan, *, Yegappan Lakshmanan schrieb am Dienstag, 16. Mai 2006 20:56: >Hello, > >On 5/16/06, Friedrich Strohmaier <[EMAIL PROTECTED]> wrote: [..] >> Try the following (in normal mode): >> 1. Take text from anywhere with the mouse >> 2. clear the target area and enter insert mode typin

Calling through a function reference with a variable argument list

2006-05-16 Thread Bob Hiestand
Hi all, I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function references that define common operations for each source control system in a dictionary specfic to that system. I hav

sql omni complete question

2006-05-16 Thread August de Vries
Recently I installed the vim 7. One of the new features is the omni complete. I wanted to try this and saw there is a tutorial for the sql omni complete. I do not have the dbext installed. So I expect only the static completion to function. I start a new file t.sql. I check that the omnicomplete f

Re: Installation probs in windows

2006-05-16 Thread Jared
Adam, I've created an windows-based installer for Vim for my own uses, but you're welcome to try it and see if it works for you. If you're interested, you can grab a copy from here: http://www.legroom.net/~jbreland/transfer/vim70.exe I'd recommend uninstalling any existing copies. I created thi

Installation probs in windows

2006-05-16 Thread Adam Young
I am dying to use the new v of vim but, while using the exe installer, I get repeated errors while trying to install to the default directory: C:/Program Files/Vim/vim70. I am alerted repeatedly that the "path must end in Vim". Installing to the directory C:/Program Files/Vim has caused a lot of

Re: not opening correct syntax file for .prg files

2006-05-16 Thread Benji Fisher
On Tue, May 16, 2006 at 11:22:00AM -0500, Donal wrote: > At 10:30 PM 5/15/2006, you wrote: > >On Mon, May 15, 2006 at 12:01:35PM -0500, Donal wrote: > >> > >> Here is my vim\myfiletypes.vim > >> > >> " myfiletypes.vim > >> augroup filetype > >> " FoxPro > >> au! BufRead,BufNewFile *.prg,*.mpr,*.spr

Re: marked text in visual mode is loaded to xclipboard

2006-05-16 Thread Yegappan Lakshmanan
Hello, On 5/16/06, Friedrich Strohmaier <[EMAIL PROTECTED]> wrote: Hi alltogether, I'm new to this list, but not new to vim, so let me say "hello" to everybody. I'm not that poweruser, but I hate unnecesary repeating things and vim allways gave me, what I needed :o)) Im working on ubuntu-linux

Vim 7 Spell-check option?

2006-05-16 Thread Krall, Ed-P27726
Is there any *easy* way to tell the Vim 7 spell-checker not to flag single letters as spelling errors? For example, lists such as a. Report(s) to be delivered blah blah b. asdfasdf asdf sadf fd c. sdfg dfg sdgf dfg will have "(s)", "b." and "c." flagged as misspellings. -- _

Re: Text -> commandline

2006-05-16 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, for what keyword I have to look in the online-help to find a hint how to copy any text from a buffer as any part of a command currently being edited in the commandline ? kind regards, mcc If by "buffer" you mean what the Vim docs call a "register", se

Re: Text -> commandline

2006-05-16 Thread Pete Johns
On Tue, 2006-05-16 at 18:45:52 +0200, Meino Christian Cramer sent: >Hi, > > for what keyword I have to look in the online-help to find a hint > how to copy any text from a buffer as any part of a command currently > being edited in the commandline ? > :help c_CTRL-R Hope this helps; --paj -- Pe

Text -> commandline

2006-05-16 Thread Meino Christian Cramer
Hi, for what keyword I have to look in the online-help to find a hint how to copy any text from a buffer as any part of a command currently being edited in the commandline ? kind regards, mcc

Re: not opening correct syntax file for .prg files

2006-05-16 Thread Charles E Campbell Jr
Donal wrote: And I have confirmed that clipper.vim IS the script being used. Here is a question... is myfiletypes.vim still being used, or has it been deprecated? I started using vim way back in 3.x... all I can find in the help files refers to filetypedetect and the ftdetect directory...

Re: HTML editing with vim: where to start ?

2006-05-16 Thread A.J.Mechelynck
Ivan Vecerina wrote: [...] For example, here are a few simple things I need to do all the time: [...] - get vim to automatically close/complete the innermost previously opened tag. [...] see the closeag.vim plugin, http://vim.sourceforge.net/scripts/script.php?script_id=13 Bst regards,

Re: not opening correct syntax file for .prg files

2006-05-16 Thread Donal
At 10:30 PM 5/15/2006, you wrote: On Mon, May 15, 2006 at 12:01:35PM -0500, Donal wrote: > > Here is my vim\myfiletypes.vim > > " myfiletypes.vim > augroup filetype > " FoxPro > au! BufRead,BufNewFile *.prg,*.mpr,*.sprset filetype=foxpro > " Cold Fusion > au BufNewFile,BufRead *.cfm,*.cfi

HTML editing with vim: where to start ?

2006-05-16 Thread Ivan Vecerina
Hi, I'm pretty new to Vim, but went through several tutorials, quick references, a number of help pages, and briefly through the Vim book. I also hear announcements about Vim7's enhanced built-in support for HTML editing. I even tried to play a bit with the auto-completion (got some 'completion

Re: [vim7] a strange behavior of completeopt

2006-05-16 Thread Eric Van Dewoestine
I reported this same issue to the mailing list a week or two ago. Bram wrote: I know about this: When you type the "." and there no complete match was inserted (showing the longest common text in this example), Vim assumes you are extending the text to reduce the list of matches. Thus the comple

Re: Encoding problem - Ubuntu 5.10 & Vim 7.0

2006-05-16 Thread victor NOAGBODJI
I don't know what file to edit to get ISO-8859-1 automatically. When editing a file, I would do :set fenc=latin1 or :set enc=latin1. Sometimes it does work, sometimes it doesn't. I want something that set my encoding at start, or better according to what characters I'm entering. Help me please.

Re: Key Mapping for spellcheck.

2006-05-16 Thread A.J.Mechelynck
Baha-Eddine MOKADEM wrote: Hi, I would like to map the right-clic-key (to make myself clear it's the one between Win flag and Ctrl key) so I can have the suggestion when I'm spellchecking a file. How is it named under vim ? Thank you for your help Eddine. Not sure Vim sees that key. In In

Re: [vim7] a strange behavior of completeopt

2006-05-16 Thread Benji Fisher
On Tue, May 16, 2006 at 04:06:27PM +0800, Linsong wrote: > Hi, all >I encounter a strange problem when use vim7, the following steps > will reproduce the problem: >1. run vim with command: vim -u NONE -U NONE >2. set the follwoing options: > :set nocompatible > :set com

Re: Key Mapping for spellcheck.

2006-05-16 Thread Eric Arnold
If you mean the right-shift key, I don't think shift/control/alt/meta are delivered by themselves to Vim. You'll have to pick shift-somekey. On 5/16/06, Baha-Eddine MOKADEM <[EMAIL PROTECTED]> wrote: Hi, I would like to map the right-clic-key (to make myself clear it's the one between Win fl

Key Mapping for spellcheck.

2006-05-16 Thread Baha-Eddine MOKADEM
Hi, I would like to map the right-clic-key (to make myself clear it's the one between Win flag and Ctrl key) so I can have the suggestion when I'm spellchecking a file. How is it named under vim ? Thank you for your help Eddine.

marked text in visual mode is loaded to xclipboard

2006-05-16 Thread Friedrich Strohmaier
Hi alltogether, I'm new to this list, but not new to vim, so let me say "hello" to everybody. I'm not that poweruser, but I hate unnecesary repeating things and vim allways gave me, what I needed :o)) Im working on ubuntu-linux 5.10 with the boxed vim Version 6.3.78 I subscribed this list to get

Re: Associating files with Vim 7

2006-05-16 Thread Eric Arnold
First make a backup copy of your registry with File/Export. I'm not an expert with the registry, but it usually works to delete entries for obsolete packages. If you change the entries from one string to another, you can still end up with duplicates. Re-install Vim7 afterwards if it isn't alrea

Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
On 16 May 2006, Pete Johns wrote: > On Tue, 2006-05-16 at 09:52:29 +0100, Anthony Campbell sent: > >Thanks for the clarification. These commands work fine, which is > >what I was looking for. But ":h spell" produces information only > >about vimspell and vimspell commands. It does not give the > >i

Re: Associating files with Vim 7

2006-05-16 Thread James Eibisch
I wrote: > In Windows 2000 I'm having problems associating file extensions > with Vim 7. - Eric replied: > Search your registry (with regedit or something better) for any > conflicting entries for Vim6 and Vim7. --

Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Pete Johns
On Tue, 2006-05-16 at 09:52:29 +0100, Anthony Campbell sent: >Thanks for the clarification. These commands work fine, which is >what I was looking for. But ":h spell" produces information only >about vimspell and vimspell commands. It does not give the >information you supplied. I still don't see h

Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
On 16 May 2006, Georg Dahn wrote: > Hi! > > --- Anthony Campbell <[EMAIL PROTECTED]> wrote: > > The commmand :SpellCheck gives "Not an editor command" and \ss does > > nothing. I do have ispell in place. > > Obviously, there is no editor command "SpellCheck" and you don't need > ispell, since Vim

Re: Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Georg Dahn
Hi! --- Anthony Campbell <[EMAIL PROTECTED]> wrote: > The commmand :SpellCheck gives "Not an editor command" and \ss does > nothing. I do have ispell in place. Obviously, there is no editor command "SpellCheck" and you don't need ispell, since Vim has an internal spell checker. Just do :h spell

Re: $HOME\_vimrc isn't read when file is opened over context menu

2006-05-16 Thread Alexander Skwar
Benji Fisher wrote: > On Fri, May 12, 2006 at 07:21:06PM +0200, Alexander Skwar wrote: >> >> So, if the documentation is correct, then I wonder, why >> $HOME/_vimrc isn't used. On MS-DOS and Win32, it should >> be used before $VIM/_vimrc is used. > > I would like to see the results of these

[vim7] a strange behavior of completeopt

2006-05-16 Thread Linsong
Hi, all I encounter a strange problem when use vim7, the following steps will reproduce the problem: 1. run vim with command: vim -u NONE -U NONE 2. set the follwoing options: :set nocompatible :set completeopt+=longest 3. input some text into the buffer like this:

Spellcheck in vim 7.0 doesn't seem to work

2006-05-16 Thread Anthony Campbell
I'm just trying out vim 7.0 but I must be misunderstanding vimspell. The commmand :SpellCheck gives "Not an editor command" and \ss does nothing. I do have ispell in place. I'm sure I'm missing something important in the help file but if someone can point me to the right place I'd be grateful. A

Re: Shell support in Vim?

2006-05-16 Thread Eric Arnold
On 5/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I haven't seen much discussion of the intermediate solution: have a > command shell that *isn't* a terminal emulator. > > There have been several attempts at this, with varying degrees of > success. A command shell window which does goo

Re: Highlighting in Vim 7

2006-05-16 Thread Eric Arnold
Did you try putting these at the bottom of your vimrc? If so, then it might be a plugin or script you are using which is causing them to reset. Try --noplugin. On 5/15/06, Antun Karlovac <[EMAIL PROTECTED]> wrote: I just upgraded from GVIM 6.3 to GVIM 7, and my highlight colors no longer work.

Re: Associating files with Vim 7

2006-05-16 Thread Eric Arnold
Search your registry (with regedit or something better) for any conflicting entries for Vim6 and Vim7. On 5/16/06, James Eibisch <[EMAIL PROTECTED]> wrote: In Windows 2000 I'm having problems associating file extensions with Vim 7. I've been using Vim 6.2 (GUI version) for a while, and had asso

Re: Tab autocommand inconsistencies?

2006-05-16 Thread Eric Arnold
I'm not sure I fully get what's going on, but I think is has to do with the window that is automatically cloned to start the tab, which is then converted to an empty buffer window. On 5/15/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: Just wanted to send the script that I used, in case any

Re: Moving windows horizontally from col to col

2006-05-16 Thread Eric Arnold
Have a look at WinWalker.vim. It does this sort of thing. On 5/16/06, Marc Weber <[EMAIL PROTECTED]> wrote: On Mon, May 15, 2006 at 03:43:40PM -0700, Gerald Lai wrote: > On Tue, 16 May 2006, Marc Weber wrote: > > >I like the way you can move windows in wmii. > > > >1 | 2 > >--+-- > >3 | 4 > >