How do I tell what version of vim I have?

How do I tell what version of vim I have?

In a terminal run vim –version ther version number is in the top line of output.

Where does vim look for Vimrc?

vimrc , and Vim files of current user are located inside ~/. vim/ . The global configuration file is located at /etc/vimrc .

Is vim an operating system?

Vim (/vɪm/; a contraction of Vi IMproved) is a free and open-source, screen-based text editor program for Unix. It is an improved clone of Bill Joy’s vi. Vim is designed for use both from a command-line interface and as a standalone application in a graphical user interface.

Is Gvim better than Vim?

Functionally there is no difference between VIM and GVIM. They both work the same and have same keyboard sequences. VIM does not need a Graphical User Interface (GUI) and uses terminal shell environment to provide text editing features.

How to detect OS X in my.vimrc file?

To quote :h feature-list: mac Macintosh version of Vim. macunix Macintosh version of Vim, using Unix files (OS-X). mac, AFAIK, only applies to old-school Macs, where is the line separator. This is the easiest way I have found. There is a OS detection script somewhere on stackoverflow – more keywords to find it: win64 win95 macunix…

How to check for OS specific features in Vim?

The best way is to use has (), with this function you can check for features of Vim; OS specific features from :help feature-list: macunix Macintosh version of Vim, using Unix files (OS-X). unix Unix version of Vim. win32 Win32 version of Vim (MS-Windows 95 and later, 32 or 64 bits) win32unix Win32 version of Vim, using Unix files (Cygwin)

How to retrieve the current operating system in Vimscript?

Can I retrieve the current operating system (Windows, Linux, OS X, ..) using pure Vimscript (no Python or Perl)? I want to enable different settings in my (synchronized) .vimrc for different types of operation systems I am using.

Can you use Vim on an OS X?

The nice thing is that you could have vim-compatible settings on OS X. EDIT: This approach and its variants ( has (‘mac’), has (‘macunix’), has (‘gui_mac’) )do not work for vim in OS X. If you use only use MacVim, you’re safe. If you’re weird like me and like to occasionally jump into vim, one of the other solutions may be more suitable.