1. 程式人生 > >a simple vim set for fortran

a simple vim set for fortran

.vimrc cin syn num file reat top idt auto

vim ~/.vimrc

it‘s a new file if you did not create it before

write as follows in the vimrc file

syntax on
set tabstop=4
set autoindent shiftwidth=4
set cindent
set number
let fortran_have_tabs=1
let fortran_fold=1
let fortran_fold_conditionals=1
set foldmethod=syntax



then write and quit(press esc, and then :wq)

a simple vim set for fortran