In new distributions, after installing the vi editor, mouse highlighting does not work by default, which is wildly inconvenient when copying from server configuration files. To enable the selection of text by mouse, you need a .vimrc file in the user’s home folder:
For the root user, the home folder is along the way:
/root
For the serg user, the home folder is along the way:
/home/serg/
Create a file:
vi /root/.vimrc set mouse=
You can create a file with content in the root folder of the user:
echo 'set mouse=' > /root/.vimrc
After creating the file, open the file in vi under the user who created the file and can select with a mouse and copy with buttons. CTRL+ Insertand insert in editing mode with a combination of keys Shift + Insert



comment