소스 검색

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>`