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)

原文地址:https://www.cnblogs.com/zhanchao/p/7509329.html