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)
时间: 2024-12-24 23:16:12