Configuration Flashcards

1
Q

How can you see what version of VIM you are running?

A

Run the Ex command “:version”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you see if Python support is enabled?

A

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”)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of Python support available?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where should the user configuration file be?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How would you map the ‘jk’ keys to be the key?

A

:imap jk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly