MacVim remember my old settings - vim

I have deleted my old .vimrc and .vim to configure vim from scratch. I have done it. But MacVim remembers my old settings, e.g. maps. Does it cache settings and plugins somewhere?

MacVim has "Enable Quickstart" option in Preferences/Advanced and it caches settings for quick start if it is enabled. You should uncheck it to reset.

Try ls -a in HOME and verify exists swp file. If exists, remove it.

I seems that resetting MacVim preferences solves the problem
defaults delete org.vim.MacVim

Related

How do you uninstall the plugin manager for vim vim-plug?

I know how to uninstall plugins, but how do I actually delete the plugin manager?
You follow the instructions found in the plugin manager's README.md, but in reverse.
Case in point…
You are told to download a file to a specific location: delete it.
You are told to put plugins in a plugged directory: delete it.
You are told to add a "vim-plug section" to your vimrc: delete it.
And so on.

problems installing vim-misc and vim-session plugins on mac / macvim

When I follow github instructions for vim-misc and vim-sessions, after unzipping to /Users/<me>/.vim/misc and /Users/<me>/.vim/vim-session-master, and then restarting macvim, I get
:helptags ~/.vim/doc
E150: Not a directory: ~/.vim/doc
Also tried putting the two folders in /Users/<me>/ (where my .vimrc is) and in the two locations pointer by $VIM and $VIMRUNTIME from within macvim (/Applications/MacVim.app/Contents/Resources/vim) all to no avail.
I guess I really don't understand how running the :helptags <whatever> starts up/completes installation of these plug-ins anyway?
Before using using a plugin managers, plugins used to go directly into ~/.vim, not into ~/.vim/pluginname. That's when we ran :helptags ~/.vim/doc.
Then we had plugin manager, each with different specific way of doing things. Some even take care of registering the documentation of the plugins installed.
IMO, you'd better find a plugin manager suited to your need and use it. I remember a Q/A on vi.SE, you could start by reading it.
If you prefer to install plugins manually instead of using one of plugin managers like vim-plug or others then you should add plugin directory to your runtimepath. Place this line to your .vimrc set runtimepath+=/path/to/plugin. I would not recommend to place plugins directly to ~/.vim directory, use sub-folder instead (e.g. /Users/<you>/.vim/plugins).

Vim is not creating .swp files

I was working in vim and my OS(Mac OS X El Capitan) crashed.
I tried to recover from .swp files created by vim (usually). But, I noticed that vim is not creating them. I already setup swap/backup directories but not luck.
Btw: Im using this well-know vim config (https://github.com/amix/vimrc)
I found the issue, IDK why but by default backups and swap mode are disabled if you use this well-know vim config ((https://github.com/amix/vimrc))
To fix it, just add these lines to your vim config file
set swapfile
set backup
I had a similar problem where Vim wasn't challenging me when I was editing a file twice. It turned out that somewhere along the line I had an old version of that file's .swp file and it was creating a .swo file instead. I exited Vim, removed the old .swp file and when I re-edited the file in question it created the swap file with the .swp extension. If I tried to edit the file in another window it complained that a swap file already existed, as it should.
These alternative swap file names are discussed here.

How can I tell vim where my _vimrc and plugins are

At work I have gvim installed in C:/Program Files/vim but have no write permission on this folder. I would like vim to use my personal _vimrc and potentially some addins that would be in a bundle directory.
Problem is that vim choose the default _vimrc in C:/...
What can I do to fix my problem, I was thinking of a script but I can't manage in writing one that work... ?
EDIT: Off course I do not have admin rights
Your configuration belongs in %HOME% (or %USERPROFILE% if the former isn't set). You can always override that by setting the %MYVIMRC% environment variable (e.g. in the Windows Control Panel under Advanced System Settings) passing a different configuration script via -u path/to/vimrc. (Defining %VIMINIT% should work, too, but I didn't get it to work on Windows.) See :help startup for details.
The first place Vim looks for initializations (see :h .vimrc) is in your home directory. (If you're not sure where this is, you can use echo %HOMEPATH% from the command prompt to find out.)
Vim will use the _vimrc in your home directory if it exists, so you could just copy it there (%userprofile%_vimrc), or you could set the environment variable $VIM to the directory of your choice. You can set an environment variable on Windows by right-clicking on My Computer -> Properties -> Advanced System Settings. For more info see the vim docs.

I accidently found that I can use vim in git-bash of windows, but how and where to config the vim to better use?

Also, if it is possible to use visual studio command prompt in the git-bash?
The :scriptnames command will tell you the config files (and plugins) that are used.
If you haven't yet created a user configuration ~/.vimrc file, it is placed in your home directory. See :help vimrc for details.

Resources