a simple vim set for fortran

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)

posted @ 2017-09-12 11:43  huangzc  阅读(331)  评论(0编辑  收藏  举报