Re: Cygwin+Windows 7+gvim woes

2011-01-06 Thread yosi izaq
S. Cowles: i have found this problem with almost every project i build from source in win7 under cygwin. the fix is rather straightforward, and is a cygwin issue, not a vim issue: it is necessary to rebase all applications, libraries, and dll's in cygwin. the simple cookbook is: 1.

Re: Vimsplain - explain vim command sequences

2011-01-06 Thread Robert S Ciaccio
On Sat, Jan 1, 2011 at 6:03 AM, Stefan Parviainen pa...@iki.fi wrote: Hi all, I hacked together a little program that attempts to explain sequences of vim commands. It's not nearly fully featured (lots of stuff I haven't bothered to implement yet, such as ranges). It parses the vim

Re: search for ~

2011-01-06 Thread Renato
On Wed, 5 Jan 2011 13:40:34 +0100 Heinz W. Pahlke hawepe...@gmx.de wrote: Hello, Am Wed, 05 Jan 2011, Renato schrieb :s%/search/~replace/g :%s/search/\~replace/g Heinz thanks :) renato -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: Why does ':normal' ignore the 'count' prefix for mapped keys?

2011-01-06 Thread ZyX
Reply to message «Why does ':normal' ignore the 'count' prefix for mapped keys?», sent 08:00:58 06 January 2011, Thursday by Douglas A. Augusto: It looks like a bug and so must be forwarded to vim-dev mailing list. By the way, everything works with feedkeys: vim -u NONE -c 'redir!

search hit BOTTOM, continuing at TOP not displayed in insert mode

2011-01-06 Thread Jean Johner
Hello, Consider the following _vimrc (for Windows 7.3 vim) set nocompatible set lines=47 set cmdheight=2 set number Open a file Add the pattern foobar at lines 10 and 70 Go to top 1/ Normal mode Type / foobar (foobar at line 10 is found) Type n (foobar at line 70 is found) Type n (foobar at

Re: Passing params to a recording

2011-01-06 Thread Francisco Dibar
On Thu, Jan 6, 2011 at 12:49 AM, Michal Dorsett michaldors...@gmail.com wrote: 1. How do I include '=repeat...' in the recording? In insert mode, hit c-r and then type = followed by your expression ('repeat(etc)') Once you hit enter the expression gets evaluated and replaces whatever you typed

Re: search hit BOTTOM, continuing at TOP not displayed in insert mode

2011-01-06 Thread Jeffrey 'jf' Lim
On Thu, Jan 6, 2011 at 8:02 PM, Jean Johner jean.joh...@cea.fr wrote: Hello, Consider the following _vimrc (for Windows 7.3 vim) set nocompatible set lines=47 set cmdheight=2 set number Open a file Add the pattern foobar at lines 10 and 70 Go to top snip 2/ Activate insert mode

Re: Passing params to a recording

2011-01-06 Thread Francisco Dibar
On Wed, Jan 5, 2011 at 9:59 AM, Michal Dorsett michaldors...@gmail.com wrote: Hi, Suppose I have the following text in my file: 9 7 4 5 8 3 And I need it appearing as an array initialization like so: int a[3][3] = { {9,1,1}, {7,4,1}, {5,8,3} }; That is, with all the additional array

Re: Passing params to a recording

2011-01-06 Thread Ben Fritz
On Jan 6, 7:42 am, Francisco Dibar frandi...@gmail.com wrote: On Thu, Jan 6, 2011 at 12:49 AM, Michal Dorsett michaldors...@gmail.com wrote: 1. How do I include '=repeat...' in the recording? In insert mode, hit c-r and then type = followed by your expression ('repeat(etc)') Once you

VIM Automatic Directory Change

2011-01-06 Thread Frank Schaefer
Some time ago, I added a behavior to change directory to the file that is currently opened. Then after some time I found this anoying and disabled it in .vimrc. However, even if I delete all views in .vim/ and delete anything that I could find concerning configuration setup--at some point in time

Re: Passing params to a recording

2011-01-06 Thread Ben Fritz
On Jan 5, 9:49 pm, Michal Dorsett michaldors...@gmail.com wrote: Thank for your response. I have a few questions: 1. How do I include '=repeat...' in the recording? While recording, just type the quote character to start register selection, then the = character to select the expression

[bug?] Error E121 when using completion inside a macro

2011-01-06 Thread Dominique Pellé
Hi Vim-7.3.98 allows function completion when using expression register = but it does not work when used inside a macro. Example: define a sample macro with completion: $ vim -u NONE -N qqiCTRL-R=leTab@)CREscq So far so good. Pressing Tab while defining the macro completed to =len( Now try

Re: Vimsplain - explain vim command sequences

2011-01-06 Thread Alan Young
On Thu, Jan 6, 2011 at 00:45, Robert S Ciaccio robc.nos...@gmail.com wrote: Very cool Stefan, this could be very useful for beginners! As the program evolves and advances, it would be useful for all levels of vim users ... trying to debug a macro for instance. -- Alan Young -- You received

Re: VIM Automatic Directory Change

2011-01-06 Thread Daniel Corrêa
On 06/01/2011, at 10:49, Frank Schaefer wrote: Some time ago, I added a behavior to change directory to the file that is currently opened. Then after some time I found this anoying and disabled it in .vimrc. However, even if I delete all views in .vim/ and delete anything that I could find

Re: [bug?] Error E121 when using completion inside a macro

2011-01-06 Thread Andy Wokula
Am 06.01.2011 18:30, schrieb Dominique Pellé: Hi Vim-7.3.98 allows function completion when using expression register = but it does not work when used inside a macro. Example: define a sample macro with completion: $ vim -u NONE -N qqiCTRL-R=leTab@)CREscq So far so good. PressingTab while

Re: VIM Automatic Directory Change

2011-01-06 Thread Jan Larres
Hi Frank, Frank Schaefer fsch...@googlemail.com: Some time ago, I added a behavior to change directory to the file that is currently opened. Then after some time I found this anoying and disabled it in .vimrc. However, even if I delete all views in .vim/ and delete anything that I could

Re: [bug?] Error E121 when using completion inside a macro

2011-01-06 Thread Bram Moolenaar
Am 06.01.2011 18:30, schrieb Dominique Pellé: Hi Vim-7.3.98 allows function completion when using expression register = but it does not work when used inside a macro. Example: define a sample macro with completion: $ vim -u NONE -N qqiCTRL-R=leTab@)CREscq So far so

Designing own indentation for my own filetype

2011-01-06 Thread statquant2
Hello everybody, and happy new year. I have a question : I am using a soft call kdb which usually use .q file extension. This type is not recognized by vim, so I decided to do my own indentation. Here is what I did : 1. In ~/.vim/ftdetect I created a q.vim file : autocmd BufNewFile,BufRead *.q

Formatted statusline text within vimscript

2011-01-06 Thread Randy Morris
Hello, I'm writing a plugin that attempts to take advantage of extra whitespace in the statusline by displaying information of arbitrary length. Depending on the status of the current buffer, I want to display a specific slice of this information. * I can grab the format string of `statusline`,

history problems and questions. 1 - mark history? any such command or plugin? 2 - loses undo when C-w c

2011-01-06 Thread Jeffrey 'jf' Lim
hi guys, I've recently been inspired to take a more serious look at my vim workflow, and... this is one of the things that has been bugging me and I would like to get it fixed (if at all possible. Hopefully possible) . I did a brief google search for mark vim history - didnt find anything

Re: history problems and questions. 1 - mark history? any such command or plugin? 2 - loses undo when C-w c

2011-01-06 Thread Jan Larres
Hi Jeffrey, Jeffrey 'jf' Lim jfs.wo...@gmail.com: 1. mark history - is there a way to possibly mark history (undo/redo) states like how you can mark points in text? have a look at these two plugins: http://www.vim.org/scripts/script.php?script_id=2932

Re: history problems and questions. 1 - mark history? any such command or plugin? 2 - loses undo when C-w c

2011-01-06 Thread Jeffrey 'jf' Lim
On Fri, Jan 7, 2011 at 1:39 PM, Jan Larres li...@majutsushi.net wrote: Hi Jeffrey, Jeffrey 'jf' Lim jfs.wo...@gmail.com: 1. mark history - is there a way to possibly mark history (undo/redo) states like how you can mark points in text? have a look at these two plugins:

Re: history problems and questions. 1 - mark history? any such command or plugin? 2 - loses undo when C-w c

2011-01-06 Thread Jan Larres
Jeffrey 'jf' Lim jfs.wo...@gmail.com: 2. does anybody know the setting for how to keep the undo history when I close a window? I work frequently with multiple buffers - and right now, when I close a window or bring in a new file with ':e', I lose the history of the current buffer. I would like