Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use Astronaut in vim. My ssh client is putty. Never used putty before, but in this company only windows allowed as desktops. I've never had any problems using urxvt through ssh. is this putty color limitation? any solution to make this colortheme work?

I've got these warnings:

Error detected while processing /root/.vim/colors/astronaut.vim:
line   22:
E492: Not an editor command: ^M
line   23:
E474: Invalid argument: background=dark^M
line   24:
E411: highlight group not found: clear^M
line   25:
E15: Invalid expression: exists( "syntax_on" )^M
line  165:
E171: Missing :endif
Press ENTER or type command to continue
share|improve this question
up vote 2 down vote accepted

The ^M means that you are using a file with Windows line endings on a UNIX-y machine. Fix the line endings and you'll be fine.

This page on the Vim Wiki has all the information you need. Here is a quick solution:


The <C-v><CR> sequence is used to insert a real ^M.

share|improve this answer
<C-v> it's Ctrl+v, and what is <CR>? – holms Feb 12 '13 at 8:59
Seems to be <C-m> – holms Feb 12 '13 at 9:07
:h key-notation – romainl Feb 12 '13 at 9:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.