Use this page to discuss script 1655 cobol: cobol syntax, indent, filetype files

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


I am running into an issue where I get an error when pressing Tab in insert mode.

I have tried to troubleshoot the script but am coming up empty.

The error is E117, saying that the Tabs() function is not found. As part of the script it creates a map to the <Tab> button while in insert mode. I am running in a unix envoirnment when the issue occurs, in gVim on my windows box there is no error.

Anyone have any idea what I need to do? --February 05, 2014

I do not use the script. Are you sure about the error message? There is no Tabs() function in ftplugin/cobol, and <Tab> is mapped to call Tab() (no "s"). Have you done a diff of the plugin file that works on Windows and the file that does not on Unix? You have a better chance of getting help at the vim_use mailing list (click "Community portal" in the sidebar for info). JohnBeckett (talk) 08:19, February 6, 2014 (UTC)

I mistakenly added an s in there when describing my problem... you are correct, it is the Tab() function. I was able to get it to work correctly by using the following autocmd in .vimrc: au FileType cobol so ~/.vim/after/ftplugin/cobol.vim

I guess somewhere on the server something wasn't being sourced correctly... even though when I would type the :scriptnames command to see which of the scripts it was referring to with the error notification, it was referring to the one I intended it to.

I am very new to vim and I have no control over this server, but I am glad the vim community is so awesome. Vim has recently become my favorite editor for all that it currently does and all that you can make it do!

Thanks for your reply, John! --February 07, 2014

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.