Configuration Flashcards
How can you see what version of VIM you are running?
Run the Ex command “:version”
How can you see if Python support is enabled?
The Ex command “:version” will list the features enabled. You can also try to run a command in Ex mode, e.g. “:py3 print(“has Python”)”
What are the types of Python support available?
vim or gvim may have different options enabled. “python” is Python 2.x (generally 2.7) and “python3” is a 3.x release. If suffixed with “/dyn” then it loads the library dynamically (i.e. must be installed separately).
Where should the user configuration file be?
Place either a “_vimrc” or “.vimrc” file in the $HOME location. This is %USERPROFILE% on Windows. (You can run “:echo $HOME” in VIM to see the location.
How would you map the ‘jk’ keys to be the key?
:imap jk