I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
This time I will bring you the methods of reloading .vimrc without restarting Vim, and reloading .vimrc without restarting VimNote What are the matters? Below are practical cases. Let’s take a look.
Vim is a free and open source editor that is upward compatible with Vi. It can be used to edit all kinds of text. It is particularly useful when editing programs written in C/Perl/Python. You can use it to edit Linux/Unix configuration files. ~/.vimrc is your personal Vim initialization and customization file.
How to reload .vimrc without restarting the Vim session
filetype indent plugin on set number syntax on
Enter any of the following commands to reload `~/.vimrc`: `:so $MYVIMRC` or `:source ~/.vimrc`.
[![How to reload .vimrc file without restarting vim][1]][1]
How to set keys to edit and reload ~/.vimrc
Follow your `~/.vimrc` with this:
" Edit vimr configuration file nnoremap confe :e $MYVIMRC " Reload vims configuration file nnoremap confr :source $MYVIMRC
Now just press `Esc` and type `confe` to edit `~/.vimrc`. Press `Esc` followed by `confr` to reload. Some people like to use the `
" Edit vimr configuration file nnoremap ve :e $MYVIMRC " Reload vimr configuration file nnoremap vr :source $MYVIMRC
The
That's done, you can reload `.vimrc` without restarting Vim.
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
What are the reasons why using v-show in vuejs does not work
detailed explanation of vue calculated properties
The above is the detailed content of What are the methods to reload .vimrc without restarting Vim?. For more information, please follow other related articles on the PHP Chinese website!