Public bug reported:

Binary package hint: vim-gtk

When opening an ada file (.adb, .ads, or .ada), several errors appear on
screen, requiring the user to press RETURN several times.  Once these
error messages complete, the editor appears to behave OK.

Most of the errors appear to be related to an undefined variable "g:mapleader". 
(I do not have the error messages).
The errors appear to be in: ftplugin/ada.vim and autoload/ada.vim

As a workaround (I have no idea of the impact of  this), I commented the 
following to ftplugin/ada.vim
"if ! exists("current_compiler")                        ||
"   \ current_compiler != g:ada_default_compiler
"   execute "compiler " . g:ada_default_compiler
"endif

Also, I added the following to autoload/ada.vim
 let g:mapleader            = "\\"

** Affects: vim (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ada vim

-- 
vim has errors opening Ada language files
https://bugs.launchpad.net/bugs/175781
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to