History Report a problem
Article Edit this page Discussion

Where Are My Settings

From Vim Tips Wiki

Jump to: navigation, search
 

Proposed new tip

Please do not use this page to discuss whether to keep this tip, and do not edit the talk (discussion) page.

All discussion should take place on the proposed new tips page, where we will decide whether to keep this as a new tip, or whether to merge it into an existing tip. However, if you have a suggestion on the content, please either edit the tip or add your suggestion to the Comments section at the bottom.


Created: February 16, 2008 Complexity: basic Author: Metacosm Version: 7.0


  • You put that neat new option in your .vimrc, but when you restart Vim, there's no effect! What's up?
Probably, the .vimrc you are editing is not the one that Vim is loading on startup. Execute the command :scriptnames to find out what scripts have been loaded, and from where. Make sure the .vimrc appearing there is the one you are changing. For more information on how Vim finds a .vimrc, read :help .vimrc.
  • Certain the correct .vimrc is being read, and it still doesn't work? Read on!
If your problem is a particular setting (eg tabstop), do :verbose set ~[option]? to find out what the current value is and where where that value was last set from. Modelines and scripts which run after .vimrc can trip you up in this way.
If the problem setting isn't an option, it is a little more difficult to determine where the setting is coming from. You can try starting Vim with the --noplugin command-line argument to narrow down the search. If you still have problems, start Vim with --noplugin -D to step through all the startup scripts (this can be tedious). If you are running a GUI version, debugging only starts after the GUI is up. Put a gui command in your .vimrc to fix this; it will start the debugging right after that command, and let you step through .vimrc.

[edit] Comments

Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Where Are My Settings"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation