Istalling and configuring Linux servers, creating websites, installing and configuring Asterisk PBX, Linux for beginners and not only.

<div class="login">
    <ul>
        <li>
            <a href="/user">Login</a></li>
        <li>
            <a href="/user/register">REGISTRATION </a></li>
    </ul>
</div>
<p>&nbsp;</p>
 

Receive articles of this site by mail:

 

12
Mar 2019
sergldom
автор
0
комментариев
Рейтинг статьи:
5
Average: 5 (1 vote)

Enable selection text with the mouse in the editor VIM (VI)

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

Рейтинг статьи: 

5
Average: 5 (1 vote)

Вам понравилась статья? Хотите получать уведомления о выходе новых статей с этого сайта на свой почтовый адрес? Подписывайтесь пожалуйста. Введите свой почтовый адрес и нажмите кнопку Хочу получать статьи!

]]>]]>

 

*Адреса электронной почты не разглашаются и не предоставляются третьим лицам для коммерческого или некоммерческого использования.

 

 
 

 

Add new comment

Filtered HTML

  • Search Engines will index and follow ONLY links to allowed domains.

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Search Engines will index and follow ONLY links to allowed domains.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.