Then it’s either your environment (Mac apps don’t use your shell environment because they aren’t launched from a shell) or the mvim command behaves differently to the MacVim app. The MacVim docs say its configuration file is /.gvimrc. If you’re on a Mac, just install MacVIM (there’s also a binary for the console in /Applications/MacVim.app/Contents/MacOS/). If you’re on Windows, GVIM will suffice (for versions!= 2.4 search for the right plugin). If you’re on any other machine, you will probably know how to compile your very own VIM with Python support. Re: MacVim.app snapshot r203 available for download In the future I think that Vim must be made 'input manager aware'but this is a task of epic proportions (at least to me). If anybody would be willing to look into this I would be very grateful. Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un.x-like operating systems. It only takes a minute to sign up.
Installation
Windows
Macvim App Windows 10
Go to https://www.vim.org to download gvim_8.2.####_x86_signed.exe installation file.
Mac
Go to https://macvim-dev.github.io/macvim/ to download MacVim pkg file.
Add the vim into PATH
Windows
The Vim installer will add the %VIM_EXE_DIR% and the path into system %PATH%. The normal installation path is c:Program Files (x86)Vim (Let call this MVIM_HOME. This directory has all .vimrc files).
You can manually adding the vim into the environment variable
Macvim App Download
- Start Control Panel > System (pop-up window) > search 'edit system environment variables'
- In Advance System Setting window: Edvironment Variables
- Edit and Add (for example) c:Program Files (x86)Vimvim81 into PATH variable.
Mac
MacVim installer only copy MacVim.app into Application directory, but it does not add the path into user's .profile file. To enable command line to use mvim command:
- cd $HOME
- vi .profile
- Find the PATH line. Add this new line before PATH line:
MVIM_HOME=/Applications/MacVim.app/Contents
- Add MVIM_HOME into PATH line:
PATH=$MVIM_HOME/bin:...
- Find the PATH line. Add this new line before PATH line:
Gvim configuration file
For Windows, find out the _vimrc and _gvimrc files location
Mac Vim Profile
- Start vim, enter :version and :echo $HOME
- The normal setup, the $HOME is c:Users{UID}
- Edit $HOME_gvimrc file.
For Mac, it is user HOME directory, just 'cd' to switch back to $HOME directory.
- Edit $HOME/.gvimrc
.gvimrc file
My vim command reminder
Homebrew Macvim Application
vim has lot of commands, press F1 to see the topic level of help. The following is only my reminder.
Split vertical | Ctrl-W v, or :vsp |
Split and reverse | :sp top, only |
Change window and size | Ctrl-W twice, Ctrl-W +/- |
Block mode | v, V, Ctrl-v |
Marking to 'm' | mm |
Yank to 'm' | y'm |
Delete to 'm' | d'm |