LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Vim-[non-fatal error while opening Ada files] (https://www.linuxquestions.org/questions/slackware-14/vim-%5Bnon-fatal-error-while-opening-ada-files%5D-607922/)

dlinux 12-19-2007 01:43 PM

Vim-[non-fatal error while opening Ada files]
 
Im having issues with .adb files in vim.When i try to open a file(existent or non-existent)it spits out these errors:

Quote:

"example.adb" [New File]
Error detected while processing /usr/share/vim/vim71/ftplugin/ada.vim:
line 111:
E121: Undefined variable: g:ada_default_compiler
E15: Invalid expression: "compiler " . g:ada_default_compiler
Error detected while processing function ada#Map_Popup:
line 1:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Command . "<CR>"
E15: Invalid expression: "50amenu " . "PopUp." . escape(a:Text, ' ') . "<Tab>"^I . escape(g:mapleader . "a" . a:Keys , '\') . " :"^I
. a:Command . "<CR>"
Error detected while processing function ada#Map_Popup..ada#Map_Menu:
line 26:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Command . "<CR>"
E15: Invalid expression: "50amenu " . "Ada." . escape(a:Text, ' ') . "<Tab>" . escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Co
mmand . "<CR>"
line 31:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') ." :" . a:Command
E15: Invalid expression: "nnoremap <buffer>" . escape(g:mapleader . "a" . a:Keys , '\') ." :" . a:Command
line 35:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') ." <C-O>:" . a:Command
E15: Invalid expression: "inoremap <buffer>" . escape(g:mapleader . "a" . a:Keys , '\') ." <C-O>:" . a:Command
Error detected while processing function ada#Map_Popup:
line 1:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Command . "<CR>"
E15: Invalid expression: "50amenu " . "PopUp." . escape(a:Text, ' ') . "<Tab>"^I . escape(g:mapleader . "a" . a:Keys , '\') . " :"^I
. a:Command . "<CR>"
Error detected while processing function ada#Map_Popup..ada#Map_Menu:
line 26:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Command . "<CR>"
E15: Invalid expression: "50amenu " . "Ada." . escape(a:Text, ' ') . "<Tab>" . escape(g:mapleader . "a" . a:Keys , '\') . " :"^I . a:Co
mmand . "<CR>"
line 31:
E121: Undefined variable: g:mapleader
E116: Invalid arguments for function escape(g:mapleader . "a" . a:Keys , '\') ." :" . a:Command
E15: Invalid expression: "nnoremap <buffer>" . escape(g:mapleader . "a" . a:Keys , '\') ." :" . a:Command
line 35:


This happens on a fresh Slackware 12.0 -stable install.After presing Enter a few times,it finally opens the file.
Is there anyone having the same problem?

theoffset 12-19-2007 02:26 PM

Install this plugin

http://vim.sourceforge.net/scripts/s...script_id=1609

which is the replacement of http://vim.sourceforge.net/scripts/s...script_id=1548 (which is what comes with standard-ViM)


It worked fine here after having that installed.

To install, open the .vba file with vim and type
:source %

It should install (in your ~/.vim) and override the standard ada plugin.


All times are GMT -5. The time now is 12:25 AM.