On 2006-12-06, Thomas Michael Engelke <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using vim excessively for developing in Progress 4GL. Sometimes, I
> stumble upon an odd behaviour and don't know if it's due to a setting
> in the syntax file (progress.vim) or due to a problem in vim itself.
> Finally, I have a reproducable for one of those oddities.
>
> In the attached file, I have the cursor on line 52. I use "O" from the
> command mode to insert a new line below. The cursor stands in column
> 37. I would have expected it to stand in column 5, like the beginning
> of the line before.
"O" will insert a new line _above_ the current line; "o" will insert
a new line below.
> For proper reproduction, use the Progress syntax file included in vim.
>
> I am using gvim 7 for Windows 32 (7th of May 2006).
>
> Any ideas?
You have 'cindent' set. There is no ftplugin/progress.vim or
indent/progress.vim in the standard vim distribution, and
syntax/progress.vim doesn't set 'cindent', so you must have set it
in your _vimrc. You can see where it was set by executing
:verbose set cindent?
Just make sure you have 'nocindent' set when you edit progress
files. Since you seem to have filetype detection set, I would just
delete the (assumed) "set cindent" command from your _vimrc and let
vim automatically set 'cindent' as needed.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA