Re: Problem doing diffs using win 2000

2006-07-03 Thread Wolfgang Schmidt
Yegappan Lakshmanan wrote: Do you have the 'diffexpr' set in your .vimrc file? :verbose set diffexpr? - Yegappan Hi, yes, it's set to MyDiff(), which is defined in _vimrc as set diffexpr=MyDiff() function MyDiff() let opt = '-a --binary ' if diffopt =~ 'icase' | let opt = opt . '-i

Re: s?

2006-07-03 Thread Wim R. Crols
Thanks for all the explanations everyone. I do see your points, and will try to add 's' to my weaponry :) Wim On 6/30/06, Wim R. Crols [EMAIL PROTECTED] wrote: Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which

Re: Motion for Cammel Notation

2006-07-03 Thread Marc Weber
On Mon, Jul 03, 2006 at 12:20:37PM +0300, Giorgos Gaganis wrote: Hello I was wondering if it is possible to have a motion command that would be aware of the Cammel Notation (eg BufferedInputStreamReader) so that the cursor would stop on the capital letters. I would particularly want to

Re: Motion for Cammel Notation

2006-07-03 Thread Tim Chase
I would particularly want to use it with the 'c' command. [cut] I'm using c quite often. I wouldn't remap it ;) I think the OP wants an (in vim nomenclature) operator pending mode mapping, so that it can be used *with* the c command, rather than *instead* of the c command.

Correction: Problem doing diffs using win 2000

2006-07-03 Thread Wolfgang Schmidt
Hi, after re-examination of the problem I found the diff functionaliy now working on Win2k, still don't know what caused the problem. Anyway, diff'ing does work under Win2k, sorry for the confusion and thanks to those who tried to help. Sorry, Wolfgang Wolfgang Schmidt wrote:

Re: Backups

2006-07-03 Thread Yakov Lerner
On 7/3/06, Vigil [EMAIL PROTECTED] wrote: Because savevers (script #89) no longer works properly with vim 7 savevers perfectly works for me in vim7, just as it did for vim6 Yakov

Re: Funcref and script local functions

2006-07-03 Thread Eric Arnold
On 7/2/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Thu, 29 Jun 2006 at 10:50pm, Eric Arnold wrote: Ok. For starters, it seems that you *can* call a numbered function from anywhere: function! s:T() echomsg here echomsg 'SID=' . expand( 'sfile' ) endfunction let

Re: insert space after comma based on context

2006-07-03 Thread Vigil
You can also ctrl-v, which will prevent the , map. On Thu, 29 Jun 2006, Zhang Le wrote: Hi, Most of time I want a space after a comma, so I use imap , , The problem is, sometime I do not want a comma inside square brackets in some programming language such python and matlab: a[10,:] or

Re: Motion for Cammel Notation

2006-07-03 Thread Giorgos Gaganis
Tim Chase wrote: I would particularly want to use it with the 'c' command. [cut] I'm using c quite often. I wouldn't remap it ;) I think the OP wants an (in vim nomenclature) operator pending mode mapping, so that it can be used *with* the c command, rather than *instead* of the c command.

Re: Backups

2006-07-03 Thread Vigil
Because savevers (script #89) no longer works properly with vim 7 savevers perfectly works for me in vim7, just as it did for vim6 Weird. Tell me, do your settings differ greatly from mine?: savevers set backup set patchmode=.prev let savevers_dirs=~/backups/vim exe set backupskip+=* .

Re: Backups

2006-07-03 Thread Yakov Lerner
On 7/3/06, Vigil [EMAIL PROTECTED] wrote: Because savevers (script #89) no longer works properly with vim 7 savevers perfectly works for me in vim7, just as it did for vim6 Weird. Tell me, do your settings differ greatly from mine?: savevers set backup set patchmode=.prev let

Re: Backups

2006-07-03 Thread Vigil
Can it be that my version of savevers, being not the latest savevers, works better than the later versions of savevers ? Weird. I guess when I pulled my latest copy (we both are using 0.8), it was corrupt or something, because yours works. Thanks. -- .

Re: Funcref and script local functions

2006-07-03 Thread Yakov Lerner
On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 6/30/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: ... The Funcref obtained via function('s:T') can't be called from outside the script ... [unexpectedly] I agree, Hari. I'd expect funcref function('s:T') to be callable outside of the

Re: Funcref and script local functions

2006-07-03 Thread Eric Arnold
On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 6/30/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: ... The Funcref obtained via function('s:T') can't be called from outside the script ... [unexpectedly] I agree, Hari. I'd expect

Re: Funcref and script local functions

2006-07-03 Thread Yakov Lerner
On 7/3/06, Eric Arnold [EMAIL PROTECTED] wrote: On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/3/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 6/30/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: ... The Funcref obtained via function('s:T') can't be called from outside the script

Re: line wrap question

2006-07-03 Thread Christian Ebert
* K.S.Sreeram on Monday, July 03, 2006 at 22:57:08 +0530: In 'set wrap' mode, say I have a single long line which wraps and forms 5 screen lines. Now when I press 'j', the cursor jumps over the 5 lines and goes to the next physical line(6th screen line). Is it possible for me to configure

Re: Motion for Cammel Notation

2006-07-03 Thread Bertram Scharpf
Hi, Am Montag, 03. Jul 2006, 12:20:37 +0300 schrieb Giorgos Gaganis: I was wondering if it is possible to have a motion command that would be aware of the Cammel Notation (eg BufferedInputStreamReader) so that the cursor would stop on the capital letters. See also tip #1016. Bertram --

Re: line wrap question

2006-07-03 Thread Yakov Lerner
On 7/3/06, K.S.Sreeram [EMAIL PROTECTED] wrote: Hi All In 'set wrap' mode, say I have a single long line which wraps and forms 5 screen lines. Now when I press 'j', the cursor jumps over the 5 lines and goes to the next physical line(6th screen line). Is it possible for me to configure vim, so

Re: Motion for Cammel Notation

2006-07-03 Thread Yakov Lerner
On 7/3/06, Giorgos Gaganis [EMAIL PROTECTED] wrote: Tim Chase wrote: I would particularly want to use it with the 'c' command. [cut] I'm using c quite often. I wouldn't remap it ;) I think the OP wants an (in vim nomenclature) operator pending mode mapping, so that it can be used *with*

[OSX issue?] Re: Backups

2006-07-03 Thread Robert Hicks
set backup set backupdir=~/.vim/backup set dir=~/.vim/temp Configuration for savevers.vim http://www.vim.org/scripts/script.php?script_id=89 set patchmode=.prev let savevers_types=* let savevers_max=10 let savevers_purge=1 let savevers_dir=backupdir That is my config...and it doesn't work.

Re: [OSX issue?] Re: Backups

2006-07-03 Thread Robert Hicks
Robert Hicks wrote: set backup set backupdir=~/.vim/backup set dir=~/.vim/temp Configuration for savevers.vim http://www.vim.org/scripts/script.php?script_id=89 set patchmode=.prev let savevers_types=* let savevers_max=10 let savevers_purge=1 let savevers_dir=backupdir That is my

Re: [OSX issue?] Re: Backups

2006-07-03 Thread Yakov Lerner
On 7/4/06, Robert Hicks [EMAIL PROTECTED] wrote: set backup set backupdir=~/.vim/backup set dir=~/.vim/temp Configuration for savevers.vim http://www.vim.org/scripts/script.php?script_id=89 set patchmode=.prev let savevers_types=* let savevers_max=10 let savevers_purge=1 let

[[ equivalent for fortran90

2006-07-03 Thread Kamaraju Kusumanchi
In C programming, I can do [[ inside a function to go to the begining of the function (actually to the begining { ). Is there any clever way to extend this to fortran 90 programming as well? In fortran90 programs, the equivalent of C's functions are of the form subroutine name ... end

Re: [[ equivalent for fortran90

2006-07-03 Thread Yakov Lerner
On 7/4/06, Kamaraju Kusumanchi [EMAIL PROTECTED] wrote: In C programming, I can do [[ inside a function to go to the begining of the function (actually to the begining { ). Is there any clever way to extend this to fortran 90 programming as well? In fortran90 programs, the equivalent of C's

Re: Creating a backup directory

2006-07-03 Thread Robert Hicks
Tim Chase wrote: Is there a function to create a backup directory if there isn't one when Vim tries to backup a file? Well, you can use the following code: -- function! EnsureDirExists(d) let l:s = substitute(a:d, '[/\\]*$', '/', '') let

For Vim + PHP users: regarding the PHP syntax

2006-07-03 Thread Peter Hodge
Greetings fellow PHP developers, You may not be aware that as of a month ago, I have taken up maintenance of the PHP syntax file for Vim, and the latest versions can be found here: http://www.vim.org/scripts/script.php?script_id=1571 Version 0.9 (the initial upload) is currently distributed

how to

2006-07-03 Thread Vincent Wang
Recently, I need the following abbreviation: iabbr method method name= /method But it can not be executed successfully because I think vim consider method as a buffer like option. I go over vim's online help, but found nothing about how to escape this. Any comment will be appreciated!