Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the default vimrc located on Mac

Tags:

vim

macos

Where can I find the default vimrc on Mac when there is no ~/.vimrc. On some Linux its located in the /etc/vimrc

like image 533
isethi Avatar asked Jul 02 '17 03:07

isethi


People also ask

Where is vimrc file located?

The system vimrc should normally be left unmodified and is located in the $VIM * directory.

What is a vimrc file?

Settings file used by Vim, a text editing program often used by source code developers and system administrators; saves the default settings for the editor when it is opened; allows users to customize options for the editor. VIMRC files are saved in a plain text format.

How do I open and edit vimrc?

Opening vimrc Using file name completion, you could type :e $M then press Tab until you see the desired variable. If you only want to see the path, type :echo $M then press Tab to see the variable, and press Enter. In gvim, the Edit menu includes "Startup Settings" which will use $MYVIMRC to edit your vimrc file.

Does macOS include Vim?

Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.


1 Answers

Type in Terminal: vim --version
as you want check the vim's version, then scroll down you will find something like; user vimrc file: "$HOME/.vimrc"

Hope it helps.

like image 155
Jimmy_Rw Avatar answered Oct 14 '22 17:10

Jimmy_Rw