You are not logged in.

#1 2010-09-30 01:57:22

Horris
Member
Registered: 2009-04-05
Posts: 30

SOLVED Vim indent (Groovy)

Hi people!

I try to use this script http://www.vim.org/scripts/script.php?script_id=2961 . I copy this file in /usr/share/vim/vim73/indent

but I have this error when open a file *.groovy

Error detected while processing /usr/share/vim/vim73/indent/groovy.vim:
line    5:
E492: Not an editor command: ^M
line    7:
E15: Invalid expression: exists("b:did_indent")^M
line  164:
E171: Missing :endif
Press ENTER or type command to continue

The script looks ok. I can't figure out what's going on.

Thanks in advance.

Last edited by Horris (2010-09-30 02:08:59)

Offline

#2 2010-09-30 02:01:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SOLVED Vim indent (Groovy)

'^M' are end-of-line marks for dos - remove them: http://www.tech-recipes.com/rx/150/remo … nes-in-vi/

Last edited by karol (2010-09-30 02:02:04)

Offline

#3 2010-09-30 02:08:40

Horris
Member
Registered: 2009-04-05
Posts: 30

Re: SOLVED Vim indent (Groovy)

SOLVED

this works! thanks.

Offline

Board footer

Powered by FluxBB