rudrab / vimf90

This is a fortran ide for vim. It is intended to make the coding with fortran easier and faster in vim.
https://rudrab.github.io/vimf90/
GNU General Public License v3.0
55 stars 4 forks source link

Having issues setting up this plugin #17

Open maettgs opened 2 weeks ago

maettgs commented 2 weeks ago

Hello, I seem to be having issues setting up this plugin. I'm new to VIM, so forgive me.

A few notes:

First issue is, can't seem to set up the leader. The help file in VIM (:help vimf90) shows the command let g:VimF90Leader = ""`

but readme shows let fortran_leader = "your chosen key"

Any comments?

The next I suppose is having issues with setting up coc.nvim. I'm using the following code from the readme.md:

let g:coc_start_at_startup = 0 augroup coc autocmd! autocmd VimEnter * :silent CocStart augroup end let g:coc_user_config = { \ 'languageserver': { \ 'fortran': { \ 'command': '${HOME}/.local/bin/fortls', \ 'args': ['--lowercase_intrinsics'], \ 'filetypes': ['fortran'], \ 'rootPatterns': ['.fortls', '.git/'], \ } }

but I get the following error when I try to :source % Error detected while processing /Users/user/.vimrc: line 42: E722: Missing comma in Dictionary: line 50: E1128: } without {: } Press ENTER or type command to continue

Can you assist?

maettgs commented 2 weeks ago

The leader still doesn't work but I was able to change the coc.nvim setup to

let g:coc_start_at_startup = 0 augroup coc autocmd! autocmd VimEnter * :silent CocStart augroup end let g:coc_user_config = { \ 'languageserver': { \ 'fortran': { \ 'command': '${HOME}/.local/bin/fortls', \ 'args': ['--lowercase_intrinsics'], \ 'filetypes': ['fortran'], \ 'rootPatterns': ['.fortls', '.git/'], \ } \} }

rudrab commented 2 weeks ago

Please let me know your vim version and vimf90 branch.

maettgs commented 2 weeks ago

Hello,

vim version: VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 28 2024 20:08:35) macOS version - arm64

Just incase you need it, I compiled it with homebrew using the following options: Included patches: 1-700 Compiled by Homebrew Huge version without GUI. Features included (+) or not (-): +acl +file_in_path +mouse_urxvt -tag_any_white +arabic +find_in_path +mouse_xterm -tcl +autocmd +float +multi_byte +termguicolors +autochdir +folding +multi_lang +terminal -autoservername -footer -mzscheme +terminfo -balloon_eval +fork() +netbeans_intg +termresponse +balloon_eval_term +gettext +num64 +textobjects -browse -hangul_input +packages +textprop ++builtin_terms +iconv +path_extra +timers +byte_offset +insert_expand +perl +title +channel +ipv6 +persistent_undo -toolbar +cindent +job +popupwin +user_commands -clientserver +jumplist +postscript +vartabs +clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +vim9script +cmdline_hist +langmap -python +viminfo +cmdline_info +libcall +python3 +virtualedit +comments +linebreak +quickfix +visual +conceal +lispindent +reltime +visualextra +cryptv +listcmds +rightleft +vreplace +cscope +localmap +ruby +wildignore +cursorbind +lua +scrollbind +wildmenu +cursorshape +menu +signs +windows +dialog_con +mksession +smartindent +writebackup +diff +modify_fname +sodium -X11 +digraphs +mouse +sound -xattr -dnd -mouseshape +spell -xfontset -ebcdic +mouse_dec +startuptime -xim +emacs_tags -mouse_gpm +statusline -xpm +eval -mouse_jsbterm -sun_workshop -xsmp +ex_extra +mouse_netterm +syntax -xterm_clipboard +extra_search +mouse_sgr +tag_binary -xterm_save -farsi -mouse_sysmouse -tag_old_static

I installed Vimf90 using vim-plug, which as I understand it, pulls from the default branch of the origin.

rudrab commented 2 weeks ago

let is not allowed in vim9rc. try g:VimF90Leader = ""

maettgs commented 2 weeks ago

let g:mapleader = ","

works well

changing

let g:VimF90Leader = "`"

to

g:VimF90Leader = "`"

results in

Pattern not found: VimF90Leader = "`"

Also, sometimes something like `wr will work but other times not. And I absolutely can't figure out why. Is there a timing issue or...?

maettgs commented 2 weeks ago

The behavior doesn't seem to be normal.

If I type wr in insert mode, it replaceswr with write(fp,*) <++stetement++> int changes to integer():: variables chr changes to character(len=):: variables

some of the ` snippets seem to work, but I would have expected them to work as leaders...?

rudrab commented 2 weeks ago

Oh... Now I have understood, i guess. Give me some time...I will marge the devel branch

maettgs commented 2 weeks ago

ok thanks