[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:cli_manual:first_steps [2012/11/17 13:30 (UTC)] – [b. Emacs] Fixed synax within the key tag sycamorexhowtos:cli_manual:first_steps [2013/02/17 20:18 (UTC)] (current) – [c. Vim] Added a new external link sycamorex
Line 78: Line 78:
  
 ===== c. Vim ===== ===== c. Vim =====
- 
-<note>Work in Progress</note> 
  
 Vim and the other vi-clones are very different from other types of editors. vi has two modes, **insert-mode** and **command-mode**. \\ Vim and the other vi-clones are very different from other types of editors. vi has two modes, **insert-mode** and **command-mode**. \\
Line 85: Line 83:
 One needs only the alphanumeric keys to work with vi. Therefore vi and it's clones are primarily useful for people who can touchtype.  One needs only the alphanumeric keys to work with vi. Therefore vi and it's clones are primarily useful for people who can touchtype. 
  
-When you start vi you're in command-mode, with <key>i</key> you switch to insert-mode. From insert-mode you get with <key>ESC</key> back to command-mode. Leave vi with <key>:q</key> in command-mode. \\+When you start vi you're in command-mode, with <key>'i'</key> you switch to insert-mode. From insert-mode you get with <key>ESC</key> back to command-mode. Leave vi with <key>:q</key> in command-mode. \\
  
 Vim comes with a very useful tutorial which I strongly recommend for newbies. Open a terminal and simply type  Vim comes with a very useful tutorial which I strongly recommend for newbies. Open a terminal and simply type 
 <code>vimtutor</code> <code>vimtutor</code>
  
-After you've made the first steps you may want to use the [[http://www.viemu.com/vi-vim-cheat-sheet.gif|vi cheat-sheet]] More useful information is in the [[http://en.wikibooks.org/wiki/Learning_the_vi_Editor|wikibook]] and [[http://www.sbernard.ee/vince.html|this page]] will give you an even deeper insight. +=== Useful external links ===
  
-Vim has it's own very large help-system. When you're using Vim and need help, you can (in command-mode) type <code>:help</code> If you need help regarding special subject (here as an example macros), simply type<code>:help macro</code> For an overview of the Vim-help type <code>:help help</code>and if you're totally confused the command<code>:help!</code>will surely help you.+  * After you've made the first steps you may want to use the //[[http://www.viemu.com/vi-vim-cheat-sheet.gif|vi cheat-sheet]]// 
 +  * A nice interactive [[http://www.openvim.com/tutorial.html|vim tutorial]] 
 +  * More information is in the //[[http://en.wikibooks.org/wiki/Learning_the_vi_Editor|wikibook]]// 
 +  * //[[http://www.sbernard.ee/vince.html|this page]]// will give you an even deeper insight. 
 +  * Here's a very helpful text about //[[http://www.moolenaar.net/habits.html|efficient text editing]]//  
  
 +=== The help system ===
 +
 +Vim has it's own very large help-system. When you're using Vim and need help, you can (in command-mode) type <code>:help</code> If you need help regarding special subject (here as an example macros), simply type<code>:help macro</code> For an overview of the Vim-help type <code>:help help</code>and if you're totally confused the command<code>:help!</code>will surely help you.
 ==== The dokuwiki Plugin ==== ==== The dokuwiki Plugin ====
  
-If you use Vim when writing Pages for this dokuwiki, you can find a helpful [[http://www.vim.org/scripts/script.php?script_id=3760|plugin]] which you'll only have to copy into the /usr/share/vim/vim73/syntax/ directory. +If you use Vim when writing pages for this dokuwiki, you can find a helpful [[http://www.vim.org/scripts/script.php?script_id=3760|plugin]] which you'll only have to copy into the /usr/share/vim/vim73/syntax/ directory. 
  
 You can load this plugin when editing a dokuwiki file with the command: You can load this plugin when editing a dokuwiki file with the command:
 <code>set ft=dokuwiki</code> <code>set ft=dokuwiki</code>
 If you need syntax highlighting for the <nowiki><key></nowiki> plugin of dokuwiki (which is not by default supported by the dokuwiki plugin), you can insert the lines: If you need syntax highlighting for the <nowiki><key></nowiki> plugin of dokuwiki (which is not by default supported by the dokuwiki plugin), you can insert the lines:
-<code>syn region dokuwikiKeyboard start="< key>" end="< /key>"+<code>syn region dokuwikiKeyboard start="<key>" end="</key>"
 hi link dokuwikiKeyboard Comment</code> hi link dokuwikiKeyboard Comment</code>
-to the plugin (without the spaces within the tags!).+ 
 +to the plugin. 
 +====== Chapter Navigation ====== 
 +**Previous Chapter: [[.introduction|Introduction]]** 
 + 
 +**Next Chapter: [[.shells|Shells]]** 
 + 
 ====== Sources ====== ====== Sources ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 howtos:cli_manual:first_steps ()