I'm a new user and I have just installed GVim on my linux. I just have ~/.vimrc file and no .vim folder may be because I did not install any plugins.
When I try to refresh (by :e) or reopen the buffer containing a specific type of files (*.inp). I get the following error.
Error detected while processing BufRead Autocommands for "*.inp"..function dist#ft#Check_inp[2]..FileType Autocommands for "*"..function <SNR>17_LoadFTPlugin:
line 3:
E1269: Cannot create a Vim9 script variable in a function: s:cpo_save
My ~/.vimrc looks as follows:
colorscheme evening
set guifont=Monospace\ 11
" visualizes line number
set number
set nocompatible
syntax enable
syntax on
" autoupdates file
set autoread
filetype plugin indent on
" sets the window to maximized when opened
set lines=999 columns=999
" updates file after buffer change
au FocusGained,BufEnter *.* :checktime
" keymap for :e = reloading the current buffer
nnoremap <F5> :edit<CR>
" list the contents of the current folder
nnoremap <F6> :!ls<CR>
" source ~/.vimrc
nnoremap <F7> :so $MYVIMRC<CR>
Could somebody please explain to me why I get this message and how to solve it ?
$VIMRUNTIME/filetype.vim
or$VIMRUNTIME/autoload/dist/ft.vim
, but I don't see anycpo_save
in a vim9 context in those files. Might be worth reporting on the mailing list or GitHub, esp. if you can reproduce with something likevim -u DEFAULTS
vim -u DEFAULTS
. I'm going to file a bug report in GitHub.