Saturday, January 5, 2013

Re: fortran indentation

On Sat, Jan 5, 2013 at 2:51 PM, rudra <bnrj.rudra@gmail.com> wrote:
> <F7> with code complete completes the blocks.
> But, if you do not want to complete the block and want to write all, i.e. disabling <F7>, still for me, it indents do-end do etc.
> This is my f90 specific directives in vimrc
> " Fortran stuff
> :let fortran_do_enddo=1
> :let fortran_more_precise=1
> :let fortran_free_source=1
> :let fortran_have_tabs=1
> filetype on
> filetype plugin on
> filetype indent on

program hello
print *, "Hello World!"
end program hello

<F7> indeed can complete a block. But it won't indent the above code
like the following.

program hello
print *, "Hello World!"
end program hello

--
Regards,
Peng

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