ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Aleksandr Blohin <sass@uustoll.ee>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] vi
Date: Thu Aug 23 00:51:14 2001
Message-ID: <20010822225047.7f6d9dfa.sass@uustoll.ee> (raw)
In-Reply-To: <12442550834.20010822222549@smena.ru>

On Wed, 22 Aug 2001 22:25:49 -0700
Al Nikolov <al@smena.ru> wrote:

SS>> ЗЫ Ну кто-нибудь, научите меня азам пользования vi (vim)! Я уж и
SS>>мануал
SS>> распечатал, всё равно тыкаю в кнопки судорожно, на авось... 

AN> i               - переход в режим вставки (самый полезный имхо)

AN> ESC             - возврат в командный режим - в нем работает:
AN> d d             - удаление строки
AN> x               - удаление символа
AN> :q              - выйти
AN> :q!             - выйти без сохранения
AN> :w              - записать
AN> Z Z             - записать и выйти

~	- замена символа отмеченного курсором с большого на маленький и
	  наоборот
a	- режим вставки от текущей позиции курсора
dw	- удаление слова после курсора
o	- вставка текста в строку ниже текущей
r	- замена одного символа отмеченного курсором
R	- режим замены текста (replace)
d$	- удалить все символы от курсора до конца строки
dG	- удалить все символы от курсора до конца файла
:e	- открыть для редактирования другой файл (предварительно необходимо
	  сохранить предыдущий). e! - редактировать нов. без сохр. предыдущего
:r some.txt - вставить файл some.txt в редактируемый файл. :r! ls -l -
вставит вывод команды.
:!	- выполнить команду shell
h,j,k,l	- перемещение курсора
b	- перемещение курсора на начало предыдущего слова
w	- перемещение курсора на начало следующего слова
0(ноль)	- перемещение курсора не начало строки
$	- перемещение курсора на конец строки
Ctrl+B	- перемещение курсора на экран назад
Ctrl+F	- перемещение курсора на экран вперёд
G	- перемещение курсора в конец файла. Указав 15G, например, можно
	  переместиться на 15 строку файла. Набрав 1G - на первую строку

--
Best regards
AB
--
				... In nomine Altli, et Ctrli, et Spititus Deli, Reset!




  reply	other threads:[~2001-08-23  0:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-22 21:32 [mdk-re] backup strategy Al Nikolov
2001-08-22 22:07 ` [mdk-re] " Sergey Sokolov
2001-08-22 22:48   ` [mdk-re] vi Al Nikolov
2001-08-23  0:51     ` Aleksandr Blohin [this message]
2001-08-23  7:27       ` Re[2]: " Sergey Sokolov
2001-08-23  0:55     ` [mdk-re] vi Mikhail Zabaluev
2001-08-23 11:38   ` [mdk-re] Re: vim (was:backup strategy) Artem K. Jouravsky
2001-08-23 10:25 ` [mdk-re] backup strategy Yura Zotov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010822225047.7f6d9dfa.sass@uustoll.ee \
    --to=sass@uustoll.ee \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git