Re: Text wrapping / reflowing - two questions.

2006-04-30 Thread cga2000
Thus spake Eric Arnold on Mon, May 01, 2006 at 12:19:41AM -0600 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 02:38]: > Do you have these set? > > setlocal formatoptions+=bcroqan2t " better without w > setlocal linebreak > Not that I know of. I tried: :set ?formatoptions :set ?formato

Asking vim...

2006-04-30 Thread Meino Christian Cramer
Hi, Is there a way for a script to determine, whether a certain key-shortcut is used in any mode ? Kind regards, mcc

Re: Text wrapping / reflowing - two questions.

2006-04-30 Thread cga2000
Thus spake Gary Johnson on Sun, Apr 30, 2006 at 11:18:00PM -0700 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 02:38]: > On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: > > [...] > > > Now, after doing the above a number of times I began to think there must > > be a better way to handle this

Re: Text wrapping / reflowing - two questions.

2006-04-30 Thread Eric Arnold
Do you have these set? setlocal formatoptions+=bcroqan2t " better without w setlocal linebreak On 4/30/06, cga2000 <[EMAIL PROTECTED]> wrote: When writing email messages I use the following settings: :set wrap :set textwidth=72 Say, I do the following: 1. I enter insert mode 2. I st

Re: Text wrapping / reflowing - two questions.

2006-04-30 Thread Gary Johnson
On 2006-05-01, cga2000 <[EMAIL PROTECTED]> wrote: [...] > Now, after doing the above a number of times I began to think there must > be a better way to handle this type of situation: > > 1. When I end up with (4) above, is there a better strategy than using >'J' to join line #2 and line #3 .

Text wrapping / reflowing - two questions.

2006-04-30 Thread cga2000
When writing email messages I use the following settings: :set wrap :set textwidth=72 Say, I do the following: 1. I enter insert mode 2. I start to type the following introductory text: I am writing this short email message to ask the friendly and highly competent folks at vim@vim.org fo

Re: highlighting tabbed text

2006-04-30 Thread Gerald Lai
On Mon, 1 May 2006, Michael Naumann wrote: Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? For example in the line a\tb\t\tc\td I want "a\t" to be color1, "b\t\t" to be color2 and "c\t" to be col

Re: History and "set history=xx"

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: >> On Sun, 30 Apr 2006, Yakov Lerner wrote: >> >> > On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> >

Re: Folding comments

2006-04-30 Thread cga2000
Thus spake Eric Arnold on Sat, Apr 29, 2006 at 04:43:56PM -0600 or thereabouts: <[EMAIL PROTECTED]> [2006-04-29 18:55]: > Have you seen the "fold-expr" section? > > EXPR *fold-expr* > > The folds are automatically defined by their foldlevel, like with the

:hardcopy E673 in gVim on GTK2

2006-04-30 Thread Steve Hall
In every beta of gVim I've tried on Linux/GTK2 (through 70g) I get the following error with :hardcopy : E673: Incompatible multi-byte encoding and character set. This is with utf-8 and latin1. My binary is feature-full, it includes everything except: -ebcdic -footer -gettext -hangul_input -

Re: How to auto-escape space in filename when write

2006-04-30 Thread Eddy Zhao
This works great! Thanks Eddy 2006/5/1, Yakov Lerner <[EMAIL PROTECTED]>: On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: > Very often, when I > - snip some notes from web > - paste them into an empty buffer > - yank the key sentence as filename > - then try to :write > > Vim report "E77:

highlighting tabbed text

2006-04-30 Thread Michael Naumann
Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? For example in the line a\tb\t\tc\td I want "a\t" to be color1, "b\t\t" to be color2 and "c\t" to be color3 (or probably color1 again) Is this eve

Re: History and "set history=xx"

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 07:03:03PM +0200, Bram Moolenaar wrote: > > Benji Fisher wrote: > > There is a remark about this right at ":help 'history'". Yes. > > Bram: > > > > Would it be possible for vim to add a note, something like > > > > Last set from ~/.vimrc along with 'nocom

Re: History and "set history=xx"

2006-04-30 Thread Gary Johnson
On 2006-04-30, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: > > The 'compatible' option is one that clobbers settings, but for a good > > reason. It determines whether Vim should work like Vi, or take on the > > modern Vim capabilities. It's a big swi

Vim version 7.0g BETA has been released

2006-04-30 Thread Bram Moolenaar
Announcing: Vim (Vi IMproved) version 7.0g BETA This is the last BETA release of Vim 7 (hopefully). The last few days there have been too many changes to do a release. This is the last chance to report problems. It would be very disappointing to discover a problem just after sending out the

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: >> On Sun, 30 Apr 2006, Yakov Lerner wrote: >> >> > On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> >> > :help 'compatible' >> >> > >> >> > wher

Re: txt.vim - Universal syntax script for all txt docs, logs and other strange files

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Russell Bateman wrote: Gerald Lai wrote: On Sat, 29 Apr 2006, Tomasz Kalkosi???ski wrote: Hello This is a good idea! I have a couple of suggestions: (1) HiLink txtString Normal The highlight for alphabetic text may be too strong if linked to Identifier. Yes, it is l

Re: How to auto-escape space in filename when write

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report "E77: Too many file names". How can the spaces in

Re: txt.vim - Universal syntax script for all txt docs, logs and other strange files

2006-04-30 Thread Russell Bateman
Really, Gerald, I think you put these screens shots up here just to draw attention to your interesting backgrounds! ;-) Russ Gerald Lai wrote: On Sat, 29 Apr 2006, Tomasz Kalkosi�ski wrote: Hello This is a good idea! I have a couple of suggestions: (1) HiLink txtString Normal The highli

Re: History and "set history=xx"

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> > :help 'compatible' >> > >> > where (among other things) you can find the warning >> > >> > This

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> > :help 'compatible' >> > >> > where (among other things) you can find the warning >> > >> > This is a special kind of option, because when

Re: How to auto-escape space in filename when write

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report "E77: Too many file names". How can the spaces in filename be automatically escaped when I sa

Re: History and "set history=xx"

2006-04-30 Thread Gerald Lai
On Sun, 30 Apr 2006, Yakov Lerner wrote: On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > :help 'compatible' > > where (among other things) you can find the warning > > This is a special kind of option, because when it's set or reset, > other options are also changed as a sid

How to auto-escape space in filename when write

2006-04-30 Thread Eddy Zhao
Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report "E77: Too many file names". How can the spaces in filename be automatically escaped when I save the file? Thanks Eddy

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > :help 'compatible' > > where (among other things) you can find the warning > > This is a special kind of option, because when it's set or reset, > other options are also changed as a side effect. CAREFUL: Setting or > rese

Re: Folding comments

2006-04-30 Thread Tim Chase
1. Fold all lines in a file that contain only comments. I think some others on the list posted some ideas here--particularly the syntax-folding. You don't mention what language you're using...the syntax definition may already provide it. Alternatively, you might be able to make a foldexpr

Re: Something's not working here.

2006-04-30 Thread Bram Moolenaar
Kyku wrote: > I get a SEGV signal after doing the following in Vim 7.0f05 under Linux > (both console and gtk2): > > 1) start vim > 2) :tab help > 3) :bd There was a problem in the 7.0f05 version that may cause a crash when closing the current window if it's the last one in a tab page. It wil

Re: History and "set history=xx"

2006-04-30 Thread Bram Moolenaar
Benji Fisher wrote: > On Sun, Apr 30, 2006 at 05:38:34PM +0200, Meino Christian Cramer wrote: > > result: > > > > set nocompatible > > > > sets > > > > set history=20 > > > > . > > > > Why this is implemented that way and why one has to debug step > > through his .vimrc to find out

Re: Something's not working here.

2006-04-30 Thread Yegappan Lakshmanan
Hi Kyku, On 4/30/06, Kyku <[EMAIL PROTECTED]> wrote: Hello, I get a SEGV signal after doing the following in Vim 7.0f05 under Linux (both console and gtk2): 1) start vim 2) :tab help 3) :bd Yes. This problem/crash was introduced in the 7.0f04 version. This should be fixed in the next versio

Something's not working here.

2006-04-30 Thread Kyku
Hello, I get a SEGV signal after doing the following in Vim 7.0f05 under Linux (both console and gtk2): 1) start vim 2) :tab help 3) :bd Yours, Kyku

Re: History and "set history=xx"

2006-04-30 Thread Meino Christian Cramer
From: Benji Fisher <[EMAIL PROTECTED]> Subject: Re: History and "set history=xx" Date: Sun, 30 Apr 2006 12:02:11 -0400 > On Sun, Apr 30, 2006 at 05:38:34PM +0200, Meino Christian Cramer wrote: > > result: > > > > set nocompatible > > > > sets > > > > set history=20 > > > > . > > > >

Re: `> visual selection -- inconsistent?

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 08:36:14AM -0600, Eric Arnold wrote: > On 4/30/06, Benji Fisher <[EMAIL PROTECTED]> wrote: > >On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: > >> >> :set selection=exclusive > >> >> > >> >> Use this text: > >> >> > >> >> 123456 > >> >> 2abcde > >> >> 3abcde > >

Re: History and "set history=xx"

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 05:38:34PM +0200, Meino Christian Cramer wrote: > result: > > set nocompatible > > sets > > set history=20 > > . > > Why this is implemented that way and why one has to debug step > through his .vimrc to find out isn't obvious to me. And I fear, > I am not the

A vim fan

2006-04-30 Thread Andrea Spadaccini
Hello everybody, I have been using vim for a couple years, and I'll go on using this great piece of software. I've just subscribed to this mailing list in order to learn something new about my favourite editor. Probably I'll only lurk, but I wanted to greet everybody and to thank the developers fo

Re: History and "set history=xx"

2006-04-30 Thread Meino Christian Cramer
From: Benji Fisher <[EMAIL PROTECTED]> Subject: Re: History and "set history=xx" Date: Sun, 30 Apr 2006 09:04:28 -0400 > On Sun, Apr 30, 2006 at 02:16:23PM +0200, Meino Christian Cramer wrote: > > From: "Yakov Lerner" <[EMAIL PROTECTED]> > > Subject: Re: History and "set history=xx" > > Date: Sun,

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
Yakov I've tried similar way before. It works, but the window flashes when I'm saving (because the buffer switches between dummy and "this") which is not very decent. :w:e works simple and great ! Thanks Eddy 2006/4/30, Yakov Lerner <[EMAIL PROTECTED]>: On 4/30/06, Eddy Zhao <[EMAIL PROTECTED

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack (without leaving the current buffer). Or any other simpler way of achi

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
Great tip and super fast reply ! : ) Thanks Bryce 2006/4/30, Bryce Wagner <[EMAIL PROTECTED]>: Eddy Zhao wrote: > At some point, I want to permanently save the buffer with out the > possibility of > accidentally undo the changes I've made (this happens sometimes). How > can I clear > the undo s

Using minibufexpl delete last buffer not take effect !

2006-04-30 Thread Eddy Zhao
I'm using minibufexpl.vim 6.3.2. The configuration like below let g:miniBufExplorerMoreThanOne=0 When I - open only one file - move cursor to minibufexpl - use 'd' to close that file buffer Problem happens - minibufexpl window disappears (which should be persistent on) - the file buffer not c

How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Eddy Zhao
At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack (without leaving the current buffer). Or any other simpler way of achieving this? Thanks Eddy

Re: `> visual selection -- inconsistent?

2006-04-30 Thread Eric Arnold
On 4/30/06, Benji Fisher <[EMAIL PROTECTED]> wrote: On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: > >> :set selection=exclusive > >> > >> Use this text: > >> > >> 123456 > >> 2abcde > >> 3abcde > >> 4abcde > >> 5abcde > >> > >> Go to line 4, col 2. Hit ^V or (^Q whichever works).

Re: `> visual selection -- inconsistent?

2006-04-30 Thread Benji Fisher
On Sat, Apr 29, 2006 at 04:11:21PM -0600, Eric Arnold wrote: > >> :set selection=exclusive > >> > >> Use this text: > >> > >> 123456 > >> 2abcde > >> 3abcde > >> 4abcde > >> 5abcde > >> > >> Go to line 4, col 2. Hit ^V or (^Q whichever works). Type kkll > >> until you've highlighted > >> abc > >>

Re: Runtime error in explorer.exe when right clicking with vim70f gvimext.dll installed

2006-04-30 Thread Daniel Einspanjer
I did try running depends before I posted.. trying to depends profile explorer is quite noisy though. :) It was finding a msvcr80.dll from my SQL 2005 installation. The dll was identical to the one in my MSVC CRT redist directory though. I tried copying the redist file into my system32 path b

Re: History and "set history=xx"

2006-04-30 Thread Benji Fisher
On Sun, Apr 30, 2006 at 02:16:23PM +0200, Meino Christian Cramer wrote: > From: "Yakov Lerner" <[EMAIL PROTECTED]> > Subject: Re: History and "set history=xx" > Date: Sun, 30 Apr 2006 14:41:58 +0300 > > > How about this. > > (1) Add this > > > > echo "11 history=".&history > > > > to yo

Re: How to customize the default display of Vim?

2006-04-30 Thread Benji Fisher
On Sat, Apr 29, 2006 at 12:11:29PM -0700, Chen Long wrote: > Thank you. I tried them. Only the command for colorscheme doesn't > work. After I start Vim, I can change the color scheme by typing > > :colorscheme darkblue > > But if I put it into .vimrc. It doesn't work. > > Long It is con

Re: History and "set history=xx"

2006-04-30 Thread Meino Christian Cramer
From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: History and "set history=xx" Date: Sun, 30 Apr 2006 14:41:58 +0300 > On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > From: "Yakov Lerner" <[EMAIL PROTECTED]> > > > On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:

Re: move to the end of the line in insert mode

2006-04-30 Thread Yakov Lerner
On 4/30/06, shello <[EMAIL PROTECTED]> wrote: Is there any quick way to move to the end of the line in insert mode ? i map a key to do that : inoremap $a But it doesn't work ! Where is my mistake? There is no mistake. does not work on some terminals. Try control-keys, or Fn keys, or key if y

Re: keybindings

2006-04-30 Thread Anton
On Sun, Apr 30, 2006 at 14:33 +0300, Yakov Lerner wrote: > > For me, In virtual terminal on Linux, Ctrl-F1 sends same > sequence as F1. Accordingly, vim responds to Ctrl-F1 as > if I pressed F1. > > Yakov I think the problem is really caused by this. But the binding :map doesn't work neither

move to the end of the line in insert mode

2006-04-30 Thread shello
Is there any quick way to move to the end of the line in insert mode ? i map a key to do that : inoremap $a But it doesn't work ! Where is my mistake? Thanks in advance.

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: From: "Yakov Lerner" <[EMAIL PROTECTED]> > On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > In my ${HOME}/.vimrc I > > set history=100 > > after restarting vim I did > >:set history > > output is > > 2

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton <[EMAIL PROTECTED]> wrote: On Sun, Apr 30, 2006 at 14:11 +0300, Yakov Lerner wrote: > In x11, it's possible that window manager intercepts Ctrl-FN. > For example, my WM (kde) binds Ctrl-Fx to workspace switch. > So application doesn't get it. You need to unbind it from WM first

Re: History and "set history=xx"

2006-04-30 Thread Meino Christian Cramer
From: "Yakov Lerner" <[EMAIL PROTECTED]> Subject: Re: History and "set history=xx" Date: Sun, 30 Apr 2006 14:14:11 +0300 > On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > in the help there is mentioned: > > > > Use the 'history' option to set the number of lines that are rememb

Re: keybindings

2006-04-30 Thread Anton
On Sun, Apr 30, 2006 at 14:11 +0300, Yakov Lerner wrote: > In x11, it's possible that window manager intercepts Ctrl-FN. > For example, my WM (kde) binds Ctrl-Fx to workspace switch. > So application doesn't get it. You need to unbind it from WM first. > > Also depends on configuration of termina

Re: where is vimfiles?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Akbar <[EMAIL PROTECTED]> wrote: I want to install this script: http://www.2072productions.com/?to=phpindent.txt install details: Just make sure the name of the file is php.vim and copy it under your vimfiles/indent folder. PHP syntax coloring must be turned on. But where is the vim

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: in the help there is mentioned: Use the 'history' option to set the number of lines that are remembered (default: 20). In my ${HOME}/.vimrc I set history=100 after restarting vim I did :set history output is 2

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton <[EMAIL PROTECTED]> wrote: I found such a problem: I can't use key combinations with functional keys, so I can't map something on Ctrl+F9 for example. If I map it on Ctrl+ everything works. In help I found that such a binding should look like :map But if doesn't work. Where is

Re: the dash and the '.' repeat command

2006-04-30 Thread Bram Moolenaar
cga (?) wrote: > > Weird. I can't reproduce it. > > > > What version of Vim? > > VIM - Vi IMproved 6.3 (2004 June 7, compiled Jul 30 2005 12:40:41) > Included patches: 1-71, 81-82 > Compiled by [EMAIL PROTECTED] [...] > > What system? > > Linux turki 2.4.27.060305-2 #1 Sun Mar 5 03:40:55

Re: keybindings

2006-04-30 Thread Anton
On Sun, Apr 30, 2006 at 04:13 -0600, Eric Arnold wrote: > This should work, unless your keyboard does not send control-funckey combos. > > map :echo 'hi' > > BTW, in insert mode, if you hit ^v or matbe ^q then any key, it will > show you the fornat to use for thar key. > Yes, ^V really helped.

History and "set history=xx"

2006-04-30 Thread Meino Christian Cramer
Hi, in the help there is mentioned: Use the 'history' option to set the number of lines that are remembered (default: 20). In my ${HOME}/.vimrc I set history=100 after restarting vim I did :set history output is 20 How can I set the numbers of lines to be remembered by

Re: keybindings

2006-04-30 Thread Eric Arnold
This should work, unless your keyboard does not send control-funckey combos. map :echo 'hi' BTW, in insert mode, if you hit ^v or matbe ^q then any key, it will show you the fornat to use for thar key. On 4/30/06, Anton <[EMAIL PROTECTED]> wrote: I found such a problem: I can't use key combi

keybindings

2006-04-30 Thread Anton
I found such a problem: I can't use key combinations with functional keys, so I can't map something on Ctrl+F9 for example. If I map it on Ctrl+ everything works. In help I found that such a binding should look like :map But if doesn't work. Where is my mistake?

where is vimfiles?

2006-04-30 Thread Akbar
Hi, I want to install this script: http://www.2072productions.com/?to=phpindent.txt install details: Just make sure the name of the file is php.vim and copy it under your vimfiles/indent folder. PHP syntax coloring must be turned on. But where is the vimfiles directory? $ locate vimfiles nothi

Re: how to use undojoin properly?

2006-04-30 Thread Eric Arnold
On 4/29/06, Eric Arnold <[EMAIL PROTECTED]> wrote: I put undojoin as the first line in a function which is called by a CursorMoved autocommand. Then when ever the function is called, I get the message: E790: undojoin not allowed after undo I assume this is because there are parts of the fun

Re: txt.vim - Universal syntax script for all txt docs, logs and other strange files

2006-04-30 Thread Gerald Lai
On Sat, 29 Apr 2006, Tomasz Kalkosi?ski wrote: Hello This is a good idea! I have a couple of suggestions: (1) HiLink txtString Normal The highlight for alphabetic text may be too strong if linked to Identifier. Yes, it is linked to Identifier. The point is that Normal text is usually