Переглянути джерело

Updates vim and vimtutor pages (#926)

* Updates vim and vimtutor pages

* Easy peasy.

* Use <Enter> instead of <Cr>

* Show help command.

We might not be able to help you move around
but the interactive help provided by vim is
pretty good, so helping people find it might
be a good idea.

* Reorder commands and lowercase help
Leandro Ostera 8 роки тому
батько
коміт
2ba4397edc
2 змінених файлів з 9 додано та 13 видалено
  1. 8 12
      pages/common/vim.md
  2. 1 1
      pages/common/vimtutor.md

+ 8 - 12
pages/common/vim.md

@@ -14,22 +14,18 @@
 
 `view {{file}}`
 
-- Switch to normal mode:
+- Enter normal text editing mode (insert mode):
 
-`<esc>`
+`<Esc> i`
 
-- Switch to insert mode:
+- Search in file:
 
-`<esc> i`
+`/{{search_string}}<Enter>`
 
-- Exit vim:
+- Save and Exit vim:
 
-`<esc> :q <enter>`
+`<Esc> :wq <Enter>`
 
-- Save file in vim:
+- Open interactive help:
 
-`<esc> :w <enter>`
-
-- Save file then exit vim:
-
-`<esc> :wq <enter>`
+`<Esc> :help <Enter>`

+ 1 - 1
pages/common/vimtutor.md

@@ -8,4 +8,4 @@
 
 - Exit the tutor:
 
-`[Esc] (to switch to normal mode), then :q`
+`<Esc> :q <Enter>`