Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6900543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:33:32+00:00 2026-05-27T07:33:32+00:00

What might cause Vim to throw errors on one machine but not the other,

  • 0

What might cause Vim to throw errors on one machine but not the other, considering both systems have identical vim configuration?

I have two Mac OS X Lion machines both running the default vim binary that ships with the OS.

I keep my .vimrc and .vim directory in a git repo. However, starting vim on one of these machines throws an error:

Error detected while processing function <SNR>41_CreateMaps..<SNR>41_DefineVariables..AutoClose#DefaultPairs..AutoClose#ParsePairs:
line   18:
AutoClose: Bad pair string - a pair longer then two character
line   19:
E121: Undefined variable: a:sring
E15: Invalid expression: " `- String: " . a:sring
line   20:
 `- Pair: «» Pair len: 4

I keep my plugins organized using the Vundle plugin. The error appears to be caused by the AutoClose plugin.

For the sake of austerity, I removed the vim directory and all .vim files in my home directory then sourced everything from the repo and reinstalled the plugins, but the error remains.

I should add that the issue does not come up when launching MacVim, only vim in terminal.

Since vim comes preinstalled with Mac OS X Lion and my other machine (running the same version of Mac OS) does not generate those errors whilst using the same settings, I’m left clueless as to where to look..

In case it makes any difference, both machines have MacVim installed but the error only shows on one of them and only when launching vim from command line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:33:32+00:00Added an answer on May 27, 2026 at 7:33 am

    This is probably because the file is in a different encoding (latin1 vs UTF-8) than VIM expects.

    If you put scriptencoding utf-8 at the top of your .vimrc (assuming your vimrc is actually encoded in UTF-8, use ISO-8859-1 if it’s encoded in Latin1), everything from that point on should be properly recognised.

    To see more documentation about this feature, type :help scriptencoding in vim.

    (source: http://vim.wikia.com/wiki/Converting_LANG_to_UTF-8 and vim manual)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After understanding (quote), I'm curious as to how one might cause the statement to
You might have a set of properties that is used on the developer machine,
Do you have an idea what might cause the error in the title? It
It does not seem to update fields of duplicate issues automatically. It might cause
What might cause an App to stop responding correctly to interface events? One problem
This works, and I can't imagine how it might cause problems, but visual studio
This might be quite simple but I have spent hours in Google but couldn't
What kind of problems might this cause? Is it better to install in a
What might be the possible cause of the following? I am using an autocomplete
I might be stupid and you need to excuse me in that case...but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.