Wednesday, September 19, 2012

irritating ^M at the end of ach line

Dear friends,
I use vim-latex(http://vim-latex.sourceforge.net/) and fortran_codecomplete(http://www.vim.org/scripts/script.php?script_id=2487)
My vimrc is:
$ cat .vimrc
set autoindent
set smartindent
set hlsearch
set incsearch
set ignorecase
set smartcase
set novisualbell
set paste
set ruler
set expandtab
set smarttab
set shiftwidth=3
set softtabstop=3
"set mouse=a "enable mouse
set nu "show line number
"set cul "highlight current line

if version >= 700
set spell spl=en_us
set nospell
nmap <F7> :set spell!
endif

" Fortran stuff
let fortran_do_enddo=1
let fortran_more_precise=1
let fortran_free_source=1

filetype on
filetype plugin on
filetype indent on

syntax enable

" Always jump to last edited line
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif

"let g:Imap_UsePlaceHolders = 0
set sw=2
set iskeyword+=:


The problem is for each file, I get an annoying ^M at the end of each line. Though this does not affect the program, its irritating to have a yellow box at every line.

The filetype of the file is still unix. In my humble guess, this is caused by fortran_codecomplete. But I am not sure.
Any help please?

--
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:

Post a Comment