Re: Leading spaces - tabs

2006-04-21 Thread Gerald Lai
On Fri, 21 Apr 2006, Dominic Evans wrote: [snip] the following commands replace leading spaces by tabs according to the current value of the 'tabstop' option :%s/^ \+/\=substitute(submatch(0), repeat(' ', tabstop), \t, 'g') :%s/^ \+/\=substitute(submatch(0), ' \{' . tabstop . '\}', \t, 'g')

Re: Setting Abbreviatons In .exrc Problems

2006-04-20 Thread Gerald Lai
On Thu, 20 Apr 2006, Mark Sargent wrote: Hi All, I'm trying to get vi to display an ab like so(minus the \), ab htm !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN \html \head \meta content=text/html; charset=UTF-8 http-equiv=content-type \titleNewUser/title \/head \body \/body

Re: cannot delete existing text in insert-mode

2006-04-18 Thread Gerald Lai
On Tue, 18 Apr 2006, Sorav Bansal wrote: In my environment, I am unable to delete existing text using Backspace key in insert mode. The Backspace key works fine on newly added text. Why is this happening and how can I correct this? See :help 'backspace'. Also, please take a look at the Vim

Re: which vim option

2006-04-16 Thread Gerald Lai
On Sun, 16 Apr 2006, Mikolaj Machowski wrote: Dnia niedziela, 16 kwietnia 2006 14:46, Georg Dahn napisa?: That's it, thanks. 'showbreak'. Is there a possibility that wrapping respects indentation? That is, that the wrapped text starts exactly at the actual indentation? I have not found an

<    1   2