On Mon, March 5, 2012 23:49, danabble wrote:
> I want to make some changes to the fortran.vim syntax coloring scheme.
>
> It seems reasonable to assume that there is some way to ask vim to
> look into a directory in my home for fortran.vim before looking in
> $VINRUNTIME/syntax/fortran.vim.
>
> The changes I want to make are:
>   * start the past-column-72 reverse-highlight warning at column 138.
>   * do the past-column-highlight on other highlight words.
>     (right now, a highlit word or number hanging over the boundary is
> NOT reverse-lit,
>     ultimately resulting in an avoidable compiler error.)
>
> I have located the system fortran.vim file, and I know how to make the
> changes above, but making changes to system files is not a good idea
> (even if I had privilege).
>
> I already have a ~/.vim/ftplugin/fortran.vim file which contains
>
> let s:extfname = expand("%:e")    " get the current file's extension.
> if s:extfname ==? "f"             " if extension is .f
>   let fortran_fixed_source=1      " then assume fixed form source
>   unlet! fortran_free_source      " and never use free source.
>   let fortran_do_enddo=1          " also, indent do loops.
> endif
>
> Any help is appreciated!

Put your changes into ~/.vim/after/syntax/fortran.vim
See :h after-directory.

regards,
Christian

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to