RE: updated strtrans() patch for special keys

2006-05-15 Thread Zdenek Sekera
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 May 2006 21:45 To: Eric Arnold Cc: vim-dev@vim.org Subject: Re: updated strtrans() patch for special keys Eric Arnold wrote: The doc page really only talks about regular control chars, leaving

Re: situation in which n doesn't switch 'hls' on after 'h' in viminfo disabled 'hls'

2006-05-15 Thread Benji Fisher
On Mon, May 15, 2006 at 12:07:55AM +0300, Yakov Lerner wrote: On 5/14/06, Benji Fisher [EMAIL PROTECTED] wrote: I have not tried it inside a function, but :set hls seems to undo the effect of :nohls so perhaps a work-around is to add :if hls | set hls | endif either to

formatexpr, append() and undo

2006-05-15 Thread Jiří Černý
Hello, I have tried to write a function for formatting TeX files using the new 'formatexpr' function. Goal is (of course) to keep matching dollars on one line and not to use the insert mapping of space. I have more or less found a good solution. The only problem is that this solution interacts

Re: :cw messes with C-W_ C-W=

2006-05-15 Thread Yegappan Lakshmanan
Hi Benji, On 5/15/06, Benji Fisher [EMAIL PROTECTED] wrote: After opening the quickfix window and using C-W_ to make it larger, I find that C-W= no longer works until I close the quickfix window. This is because the quickfix window has the 'winfixheight' option set. So when you try to

C-W C-] to split vertically

2006-05-15 Thread Salman Khilji
I want to jump to a tag under the cursor using the C-W C-] shortcut, but would like to have the command split the window vertically. What do I do? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

VIM is starting very slow on IBM P660, AIX 4.3.3

2006-05-15 Thread mabe_arcor
Hello! I'm more ore less new with vim and I'm absolutely new to this list. So first let me say Hello to all. I'm having a problem with vim. Starting it on a server IBM P660 with AIX 4.3.3 takes more than one minute of time. With or without a named file doesn't care. I am connected from a

Re: sourcing vimrc files

2006-05-15 Thread Thor Andreassen
On Sun, May 14, 2006 at 07:49:11PM -0500, Jared wrote: I'd like to map a hotkey to re-source my vimrc files (system + user). I originally tried this simple approach: nmap buffer S-F9 :source $VIM\vimrcCR \ :source $VIM\_vimrcCR \ :source $HOME\_vimrcCR But that failed

Re: C-W C-] to split vertically

2006-05-15 Thread Eric Arnold
Maybe something like nnoremap c-wc-] :vsplcrc-] On 5/15/06, Salman Khilji [EMAIL PROTECTED] wrote: I want to jump to a tag under the cursor using the C-W C-] shortcut, but would like to have the command split the window vertically. What do I do?

Re: VIM is starting very slow on IBM P660, AIX 4.3.3

2006-05-15 Thread Eric Arnold
See :help -X maybe the X server is your problem. On 5/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello! I'm more ore less new with vim and I'm absolutely new to this list. So first let me say Hello to all. I'm having a problem with vim. Starting it on a server IBM P660 with AIX

Re: undo/redo mess with version 7.0 and utf-8 text

2006-05-15 Thread Andrei A. Voropaev
On Fri, May 12, 2006 at 07:20:03AM +0900, Yukihiro Nakadaira wrote: I cannot reproduce your problem but I probably had been having similar problem that breaks undo but I cannot remember it... Maybe it disappeared when something was upgraded. Now I can use scim (with other trouble related to

Re: triggering autoread

2006-05-15 Thread Eric Arnold
I guess I was hoping for tail -f behavior. I've got a process that's writing stuff I want in Vim, but if it fails then I want to know it. As it is, I can map a key, or use CursorHold, and keep hitting it when I want to see the output. It works, but the other would be nice.

Vertical splits

2006-05-15 Thread Salman Khilji
Regarding my previous post, I would like to change teh default behavior of VIM to prefer vertical splits instead of horizonal splits. I not only want to change C-W ] command, but all commands that have to split a window. Whats the quickest way to make this change? I am thinking along the lines

Re: C-W C-] to split vertically

2006-05-15 Thread Jürgen Krämer
Hi, Salman Khilji wrote: This does not work. Is it a bug that the following still splits horizontally instead of vertically? :vertical execute normal ^W] :nnoremap c-w] :vertical wincmd ]cr Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH

Re: Vertical splits

2006-05-15 Thread mzyzik
You can always do a :vertical before the command, and whenever there is a split inside the command, the split will be vertical. --Matt On Mon, May 15, 2006 at 05:27:29AM -0700, Salman Khilji wrote: Regarding my previous post, I would like to change teh default behavior of VIM to prefer

issues..compilation,

2006-05-15 Thread jagpreet
Hi There, I have recently installed vim 7.0 and also could never get a chance earlier to use the compiler options in vim. I went through the document and set all the values but also could not compile the c/c++ file in vim window. Is there a clear document exists which explains how to use the

Re: Vertical splits

2006-05-15 Thread Yakov Lerner
Salman, Try the following patch. --- ex_docmd.c.000 2006-05-15 16:04:10.0 + +++ ex_docmd.c 2006-05-15 16:03:36.0 + @@ -1709,6 +1709,7 @@ */ save_cmdmod = cmdmod; vim_memset(cmdmod, 0, sizeof(cmdmod)); +cmdmod.split |= WSP_VERT; /* * Repeat

Re: triggering autoread

2006-05-15 Thread Yakov Lerner
On 5/15/06, Eric Arnold [EMAIL PROTECTED] wrote: I guess I was hoping for tail -f behavior. I've got a process that's writing stuff I want in Vim, but if it fails then I want to know it. As it is, I can map a key, or use CursorHold, and keep hitting it when I want to see the output. It

Swapping keys

2006-05-15 Thread Robert MannI
Hi! I am using the DVORAK keyboard layout. I remapped some keys, to allow me to use the cursor keys in the home row (I use HTNS in DVORAK). Anyway, this is the keys that I need swapped: swap T with J swap N with K swap S with L Now my question, this is the current way I'm doing this:

Re: sourcing vimrc files

2006-05-15 Thread Benji Fisher
On Sun, May 14, 2006 at 06:41:39PM -0700, Gerald Lai wrote: Encase your function like this: if !exists(*Source_vimrc) function Source_vimrc() ... endfunction endif The reason you're getting the error is because you're sourcing the file (vimrc) that produced/will override the

Re: issues..compilation,

2006-05-15 Thread Benji Fisher
On Mon, May 15, 2006 at 06:26:36PM +0530, jagpreet wrote: Hi There, I have recently installed vim 7.0 and also could never get a chance earlier to use the compiler options in vim. I went through the document and set all the values but also could not compile the c/c++ file in vim window.

Re: Replace Insert: Filling in whitespaces till position 15

2006-05-15 Thread Benji Fisher
On Mon, May 15, 2006 at 03:19:46PM +0200, Popovic Dan wrote: Hello dear list-members, I have a question on replacing text. I have a simple text-file with a table of results like this: -- Mosbach - KSF 2 2 : 6

Re: issues..compilation,

2006-05-15 Thread A.J.Mechelynck
jagpreet wrote: Hi There, I have recently installed vim 7.0 and also could never get a chance earlier to use the compiler options in vim. I went through the document and set all the values but also could not compile the c/c++ file in vim window. Is there a clear document exists which

Re: Is there a way to move tabs around via the mouse?

2006-05-15 Thread Benji Fisher
On Sun, May 14, 2006 at 06:16:00PM -0600, Eric Arnold wrote: On 5/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Eric, I noticed you've made a few patches. I especially like the one where you introduced the GetChar event. This is a fantastic idea because the getchar() function itself is

Re: Replace Insert: Filling in whitespaces till position 15

2006-05-15 Thread Christoph Nodes
you could try something like :%s/^\s*\(\w\+\)\s*-\s*\(\w\+\)/\=submatch(1).strpart(' ', strlen(submatch(1))).' - '.submatch(2)/ (all in one line) :help sub-replace-special On 5/15/06, Popovic Dan [EMAIL PROTECTED] wrote: Hello dear list-members, I have a question on replacing

Re: Syntax Highlighting problem

2006-05-15 Thread Charles E Campbell Jr
Jerin Joy wrote: I use gvim as my default editor. My source files are in a non standard language whose syntax is similar to Verilog. When I open files from command line in independent gvim windows the syntax highlighting uses the verilog syntax which is what I want. The only thing is when I

Re: Replace Insert: Filling in whitespaces till position 15

2006-05-15 Thread Popovic Dan
Hello Benji, thank you for your suggestion. The script of Dr.C is seems to be a very powerful tool for various align-tasks. I tested it for half an hour and I'm really enlighted. For those who are interested, I'll give a short report on what I tried with my sample file (see below) It is

Re: Replace Insert: Filling in whitespaces till position 15

2006-05-15 Thread Popovic Dan
Hello Christoph, thanks for your idea, but I have to confess I still have to get into it. Till now, it's only cutting the white spaces betwenn the names and the seperator (-). But I'll try further on 8-) Best regards, Dan -Ursprüngliche Nachricht- Von: Christoph Nodes [EMAIL

Re: Replace Insert: Filling in whitespaces till position 15

2006-05-15 Thread Charles E Campbell Jr
On 5/15/06, Popovic Dan [EMAIL PROTECTED] wrote: I have a question on replacing text. I have a simple text-file with a table of results like this: -- Mosbach - KSF 2 2 : 6 Zimmer- Pfrommer 0 Mueller -

RE: issues..compilation,

2006-05-15 Thread jagpreet
Thanks Tony/Benji, Well I could not get the number to identify the script if at all any given. But on the script page it is mentioned as bufexplorer.zip : Easily switch between buffers without knowing their numbers Author : jeff lanzarotta Also, about installing vim 7.0 Will it be

Re: issues..compilation,

2006-05-15 Thread A.J.Mechelynck
jagpreet wrote: Thanks Tony/Benji, Well I could not get the number to identify the script if at all any given. But on the script page it is mentioned as bufexplorer.zip : Easily switch between buffers without knowing their numbers Author : jeff lanzarotta Also, about installing vim

How to auto-set font and size?

2006-05-15 Thread Donal
Now that my primary issue of getting Windows Explorer to use gvim to open .prg files has been fixed, I have 2 further issues. I will seperate them so they do not get confused... My eyes are not what they once were, and I use a high-res monitor. I don't want to decrease my screen res as I am

not opening correct syntax file for .prg files

2006-05-15 Thread Donal
Here is my second issue. Now that I have found my improved foxpro.vim file I can't seem to get vim to open the correct syntax file! It seems to be opening the one that came with vim, but I cannot figure out where it is getting it from! I put my foxpro.vim in vimfiles\syntax and, when that did

vim 7 recording not behaving as expected

2006-05-15 Thread Timothy Stone
Having upgraded to vim 7, my expectation of how recording (:help q) worked in vim 6.x has changed. I'm sure it's something I have set, either by default, or other 6.x incompatibility that has changed this. Now, instead for repeating a sequence of commands, it puts, literally, the sequence

Re: vim 7 recording not behaving as expected [CLOSED]

2006-05-15 Thread Timothy Stone
On May 15, 2006, at 1:24 PM, Timothy Stone wrote: I'm sure it's something I have set, either by default, or other 6.x incompatibility that has changed this. Now, instead for repeating a sequence of commands, it puts, literally, the sequence of characters I type in the recording mode,

Re: How to auto-set font and size?

2006-05-15 Thread Gerald Lai
On Mon, 15 May 2006, Donal wrote: Now that my primary issue of getting Windows Explorer to use gvim to open .prg files has been fixed, I have 2 further issues. I will seperate them so they do not get confused... My eyes are not what they once were, and I use a high-res monitor. I don't want

Re: How to auto-set font and size? (fwd)

2006-05-15 Thread Gerald Lai
[You're welcome :) I think you may have wanted to send this to the list.] -- Forwarded message -- Date: Mon, 15 May 2006 13:20:09 -0500 From: Donal [EMAIL PROTECTED] To: Gerald Lai [EMAIL PROTECTED] Subject: Re: How to auto-set font and size? At 01:11 PM 5/15/2006, Gerald wrote:

Highlighting in Vim 7

2006-05-15 Thread Antun Karlovac
I just upgraded from GVIM 6.3 to GVIM 7, and my highlight colors no longer work. I'm on Windows. In my _vimrc file I had the following settings: highlight Comment guifg=#5F5F5F highlight Constant guifg=#AA highlight Type gui=NONE guifg=#990011 highlight Search

Re: Shell support in Vim?

2006-05-15 Thread bsturk
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 good, solid handling of command line utilities would be

Moving windows horizontally from col to col

2006-05-15 Thread Marc Weber
I like the way you can move windows in wmii. 1 | 2 - 3 | 4 if your cursor is in window 1 and you move the window to the right you get | 1 3 ||2 | 4 So I've tried to implement this in vim.. It works (not for preview window) and is ugly.. Perhaps you want to try it out or have some

Re: Highlighting in Vim 7

2006-05-15 Thread Antun Karlovac
Hi Chip Thanks for the response. Is the vimfiles/after/plugin/... a special location? I'm on Windows, and I added the following file: c:\Vim\vimfiles\after\plugin\antuncolormod.vim I had to make both the after and plugins directories. However my file does not appear to be getting picked up.

Re: Moving windows horizontally from col to col

2006-05-15 Thread Gerald Lai
On Tue, 16 May 2006, Marc Weber wrote: I like the way you can move windows in wmii. 1 | 2 --+-- 3 | 4 if your cursor is in window 1 and you move the window to the right you get | 1 3 | 2 | 4 [improved illustrations] So I've tried to implement this in vim.. It works (not for preview

Tab autocommand inconsistencies?

2006-05-15 Thread Hari Krishna Dara
I am observing what might be inconsistency in the order in which vim fires autocommands. First, ovserving the order of buffer and window events, - Using :new: WinLeave WinEnter BufLeave BufEnter - Using :wincmd w BufLeave WinLeave WinEnter BufEnter When combined with tab operations, -

Re: Tab autocommand inconsistencies?

2006-05-15 Thread Hari Krishna Dara
Just wanted to send the script that I used, in case anyone is interested to repeat: let g:auCount = 0 aug TT au! au WinEnter * :call Au('WinEnter') au WinLeave * :call Au('WinLeave') au TabEnter * :call Au('TabEnter') au TabLeave * :call Au('TabLeave') au BufEnter * :call

Re: How to auto-set font and size?

2006-05-15 Thread A.J.Mechelynck
Gerald Lai wrote: On Mon, 15 May 2006, Donal wrote: Now that my primary issue of getting Windows Explorer to use gvim to open .prg files has been fixed, I have 2 further issues. I will seperate them so they do not get confused... My eyes are not what they once were, and I use a high-res

Re: Swapping keys

2006-05-15 Thread A.J.Mechelynck
Gerald Lai wrote: On Mon, 15 May 2006, Robert MannI wrote: [snip] Now my question, this is the current way I'm doing this: - Remap for DVORAK noremap t j noremap j t noremap n k noremap k n noremap s l noremap l s noremap T J noremap J T noremap N K noremap K N noremap

Re: vim vb syntax file

2006-05-15 Thread Tim Chase
Thomas Barthel wrote: I downloaded vim 7 last week and realized that there is a new syntax file for vb. Long time ago (2002 or 2003) I created an update myself. It is incomplete too, so I kept it on my computer. Maybe the two files can be merged. Thomas, I've merged your changes into the

ANN: dbext.vim 3.0 released

2006-05-15 Thread David Fishburn
What is it? --- dbext.vim : Provides database access to most databases. http://www.vim.org/scripts/script.php?script_id=356 This plugin contains functions/mappings/commands to enable Vim to access several databases. Currently Mysql, PostgreSQL, Ingres, Oracle, Sybase Adaptive Server

colorscheme conversion script?

2006-05-15 Thread cga2000
I'm pretty sure I saw a vim script that converts gui colorschemes to 256-color xterm versions but I can't seem to find it any more. Can anyone on the list confirm that I'm not making this up and possibly provide the name of this script? Thanks, cga

RE: colorscheme conversion script?

2006-05-15 Thread Suresh Govindachar
Are you thinking of Gautam's xterm16 http://www.vim.org/scripts/script.php?script_id=795 ? It comes with lots of files: cpalette.pl tags xterm16.ct xterm16.schema xterm16.vim xterm16.txt Gautam, is your colorscheme useful for vim under cmd.exe and

[OT] Swapping keys

2006-05-15 Thread Suresh Govindachar
A.J.Mechelynck wrote: Gerald Lai wrote: On Mon, 15 May 2006, Robert MannI wrote: [snip] Now my question, this is the current way I'm doing this: - Remap for DVORAK noremap t j noremap j t noremap n k noremap k n noremap s l

Re: issues..compilation,

2006-05-15 Thread Benji Fisher
On Mon, May 15, 2006 at 08:35:28PM +0530, jagpreet wrote: Thanks Tony/Benji, Also, about installing vim 7.0 Will it be possible to install it in my working directory instead of root as I won't be having the access to root. Yes, it can be done. Read the instructions in the comments of

Re: not opening correct syntax file for .prg files

2006-05-15 Thread Benji Fisher
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,*.cfc setf cf au! BufRead,BufNewFile

RE: not opening correct syntax file for .prg files

2006-05-15 Thread Suresh Govindachar
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,*.cfc setf cf au! BufRead,BufNewFile

Fwd: Question regarding omni completion and ruby

2006-05-15 Thread Robert MannI
Hello! I'm a very recent VIM convert, I love it. One question I have: is autocompletion for Ruby built in (in VIM 7), and how do I use it? I couldn't find any helpful documentation, maybe someone can give me some pointers. Thanks alot, Robert

Mappings fail in gvim...

2006-05-15 Thread Malhotra, Vijendra
I have the following mappings that work fine on vim but don't on gvim any idea why Window manipulation Ctrl left == Ctrl W l map ^[Oc ^Wl Ctrl left map ^[Od ^Wh Ctrl+Down == Ctrl-W + j map ^[Ob ^Wj Ctrl+Up == Ctrl-W + k map ^[Oa ^Wk Thanks Vijendra Malhotra

Re: Mappings fail in gvim...

2006-05-15 Thread Gerald Lai
On Tue, 16 May 2006, Malhotra, Vijendra wrote: I have the following mappings that work fine on vim but don't on gvim any idea why Window manipulation Ctrl left == Ctrl W l map ^[Oc ^Wl Ctrl left map ^[Od ^Wh Ctrl+Down == Ctrl-W + j map ^[Ob ^Wj Ctrl+Up == Ctrl-W + k map ^[Oa ^Wk You're