Sunday, January 8, 2012

Re: syntax file for column-fixed language (LSDYNA)

On 01/08/12 08:43, Edwin Miller wrote:
> /\s*[1-9][0-9]*\s*/
>
> but how to tell vim that this regex should only match e.g column 2?

It sounds like you might want the \%c or \%v tokens, something like

/\%10c\s*[1-9]\d*\s*\%20c/

The difference between the "v" and "c" versions regard how they
treat tab-character expansion (is it one character, or
'shiftwidth'ish characters).

:help /\%c
:h /\%v

-tim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: