• missing xbfish.com image

Link VI to VIM in Linux

missing xbfish.com image
Posted on

To open VIM using vi command, open up .bashrc and add the following line at the end of the file:

alias vi='vim'

This way, we create an alias of vim with vi.

As such,

vim hello.php

is equivalent to

vi hello.php

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Spam protection by WP Captcha-Free