vi my.f95后
为什么,怎么改?
好像写c++,没有这个问题
:wq保存再vi my.f95
这回正常了vim编写fortran的问题
-
- 帖子: 3
- 注册时间: 2009-09-12 21:26
- adam8157
- 帖子: 2794
- 注册时间: 2009-03-05 16:31
- 联系:
-
- 帖子: 3
- 注册时间: 2009-09-12 21:26
Re: vim编写fortran的问题
ls的方法试过了,不行 

- lilydjwg
- 论坛版主
- 帖子: 4258
- 注册时间: 2009-04-11 23:46
- 系统: Arch Linux
- 联系:
- the_comer
- 帖子: 264
- 注册时间: 2009-07-08 17:33
Re: vim编写fortran的问题
打开/usr/share/vim/vim72/syntax里面的fortran.vim
在
150 "If tabs are allowed then the left margin checks do not work
151 if exists("fortran_have_tabs")
152 syn match fortranTab "\t" transparent
153 else
154 syn match fortranTab "\t"
155 endif
前面加上let fortran_have_tabs=1就行(估计等于其他值也行)
viewtopic.php?f=68&p=1470191
在
150 "If tabs are allowed then the left margin checks do not work
151 if exists("fortran_have_tabs")
152 syn match fortranTab "\t" transparent
153 else
154 syn match fortranTab "\t"
155 endif
前面加上let fortran_have_tabs=1就行(估计等于其他值也行)
viewtopic.php?f=68&p=1470191
- lilydjwg
- 论坛版主
- 帖子: 4258
- 注册时间: 2009-04-11 23:46
- 系统: Arch Linux
- 联系:
Re: vim编写fortran的问题
不要任意更改系统的配置文件——升级时会被覆盖+最后不知道哪些是自己的。the_comer 写了:打开/usr/share/vim/vim72/syntax里面的fortran.vim
在......前面加上let fortran_have_tabs=1就行......
应该写到~/.vim/的相应文件里。
如果为系统里的所有用户做更改,可以写到/usr/share/vim/vimfiles的相应文件里。