Wednesday, August 12, 2015

My favourite editor - Vim


Default file: /usr/share/vim/vimfiles/archlinux.vim - setting only a few sane defaults, this file is upragading every time you upgrade/change version of vim
Global setting for root: /etc/vimrc
Adjusted for particular user: in home directory you can find .vimrc to config vim. Here are some commands for vim to manage fortran files.



" To get rid off annoying space/tab background fill.
 let fortran_have_tabs=1

" To have free source form, the same syntax in .f, .f90,  .f95, use it when you use -ffree-form as the tag in Fortran. This should be prior to the syntax comman
 let fortran_free_source=1

" Do loops will be intended
 let fortran_do_enddo=1

" The syntax coloring will be more precise but slower.  In particular,
" statement labels used in do, goto and arithmetic if statements will be
" recognized, as will construct names at the end of a do, if, select or forall construct
let fortran_more_precise=1

" Enable syntax highlighting
syntax enable

" Colorscheme
colorscheme desert
set background=dark

Explanation and more commands you can find in vim :help fortran

No comments:

Post a Comment