Roo*_*ook 6 vim intellisense fortran autocomplete
我不知道这是否可能,但仍然......没有任何伤害.
我正在使用Vim编辑旧的和新的(.for和.f90)fortran文件.我正在尝试完成,类似于Visual Studio的,所以当我在文件中定义了几个子例程时:
subroutine init ( ibc, nquad, ul, ur, xl, xr )
subroutine output ( f, ibc, indx, nsub, nu, ul, ur, xn )
subroutine phi ( il, x, phii, phiix, xleft, xrite )
Run Code Online (Sandbox Code Playgroud)
我叫它们在某个地方:
call init(<cursor is here>
Run Code Online (Sandbox Code Playgroud)
我得到了参数列表,所以我不必记住它们.如果我理解正确的VS称之为"智能感知".
在Vim(GVim72)中是否有类似的东西,如果是,如何让它工作?任何提示赞赏.
ldigas编辑:如果我能得到申报行,我也会感到满意,比如我输入时:
call init(<cursor is here>
Run Code Online (Sandbox Code Playgroud)
并按完成键,Vim在整行中打孔,例如
call init( ibc, nquad, ul, ur, xl, xr )
Run Code Online (Sandbox Code Playgroud)
ldigas edit2:到目前为止撤回了2个答案......很有趣.