In new distributions after installing vi, the default selection of the test with the mouse does not work, which is not convenient when copying from the server configuration files. To enable text selection with the mouse, you need the .vimrc file in the user's home folder:
For the root user, the home folder is on the path:
/root
for user serg, the home folder is on the path:
/home/serg/
Create a file:
vi /root/.vimrc
set mouse=
You can create a file with the contents in the folder root of the user with one command:
echo 'set mouse=' > /root/.vimrc
или:
echo 'set mouse=' > /home/serg/.vimrc
After creating the file, open the file in vi under the user who created the file and can select text it with the mouse and copy it with the CTRL + Insert buttons and insert it in the editing mode with the Shift + Insert key combination
Add new comment