Forráskód Böngészése

Merge pull request #407 from fluxw42/master

Add page for vim
Igor Shubovych 9 éve
szülő
commit
be868cdd63
2 módosított fájl, 30 hozzáadás és 0 törlés
  1. 19 0
      pages/common/vim.md
  2. 11 0
      pages/common/vimtutor.md

+ 19 - 0
pages/common/vim.md

@@ -0,0 +1,19 @@
+# vim
+
+> Vi IMproved, a programmers text editor
+
+- open a file with cursor at the given line number
+
+`vim {{file}} +{{linenumber}}`
+
+- open multiple files at once, each file in it's own tab page
+
+`vim -p {{file1}} {{file2}} {{file3}}`
+
+- open a file in read-only mode
+
+`view {{file}}`
+
+- exiting vim
+
+`[Esc] (to switch to normal mode), then :q`

+ 11 - 0
pages/common/vimtutor.md

@@ -0,0 +1,11 @@
+# vimtutor
+
+> Vim tutor, teaching the basic vim commands
+
+- launch the vim tutor using the given language (en, fr, de, ...)
+
+`vimtutor {{language}}`
+
+- exiting the tutor
+
+`[Esc] (to switch to normal mode), then :q`