LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-19-2007, 01:43 PM   #1
dlinux
Member
 
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Rep: Reputation: 15
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?
 
Old 12-19-2007, 02:26 PM   #2
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 03:46 PM
Mplayer error opening files Supreme1012 Linux - Software 9 08-03-2007 02:13 AM
fatal error with gmplayer while trying to stream wmv files in firefox on fc3 dr_zayus69 Linux - Software 0 07-04-2006 03:49 AM
i/o error while opening vcd files hari78 Linux - Newbie 3 12-28-2005 06:50 AM
Error when opening files with custom command in Gnome deejross Linux - Newbie 2 12-21-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration