Monday, February 13, 2012

Fortran indenting and preprocessor directives

Hi all,
I'm using VIM to indent a Fortran code. My problem is that VIM indent the
proprecessor directives too. This causes errors in compilation.
Do you know how can avoid to indent the lines starting with # ?
The following is my .vimrc file:


set nocompatible
set mouse=a
set hidden
set viminfo+=:50
set viminfo+=/50
set nomodeline
set makeprg=gmake
set textwidth=82
inoremap () ()<Left>
nnoremap <silent> <F8> :TlistToggle<CR>
set number
set cinkeys+="1#"
set autoindent
set smartindent
let fortran_free_source=1
let fortran_more_precise=1
let fortran_do_enddo=1
syntax enable

Thanks in advance.

Fabio

--
Fabio Affinito, PhD

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