[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/16 22:18 (UTC)] – [c. Vim] markushhowtos:cli_manual:first_steps [2013/02/17 20:18 (UTC)] (current) – [c. Vim] Added a new external link sycamorex
Line 61: Line 61:
 ===Emacs Keybindings=== ===Emacs Keybindings===
  
-In the Emacs world, a widely used convention is to refer to <key>Ctrl</key> and <key>Alt</key> as <key>C</key> and <key>M</key> respectively. Consequently, the <key>''C-h''</key> combination denotes clicking <key>Ctrl+h</key> simultaneously, whereas <key>''M-x''</key> means pressing the <key>Alt+x</key> keys at the same time. You will also encounter more complex keybindings, such as <key>''C-x s''</key> which means pressing <key>Ctrl+x</key> and then <key>''s''</key>. Similarly, <key>''C-x C-c''</key> refers to pressing <key>Ctrl+x</key> and then <key>Ctrl+c</key>. Other commonly used keys are <key>'S'</key> ( = <key>Shift</key> ) and <key>Esc</key>. Here's a list of most basic keybindings in Emacs:+In the Emacs world, a widely used convention is to refer to <key>Ctrl</key> and <key>Alt</key> as <key>'C'</key> and <key>M</key> respectively. Consequently, the <key>''C-h''</key> combination denotes clicking <key>Ctrl+h</key> simultaneously, whereas <key>''M-x''</key> means pressing the <key>Alt+x</key> keys at the same time. You will also encounter more complex keybindings, such as <key>''C-x s''</key> which means pressing <key>Ctrl+x</key> and then <key>''s''</key>. Similarly, <key>''C-x C-c''</key> refers to pressing <key>Ctrl+x</key> and then <key>Ctrl+c</key>. Other commonly used keys are <key>'S'</key> ( = <key>Shift</key> ) and <key>Esc</key>. Here's a list of most basic keybindings in Emacs:
  
 ^Keys^Description^ ^Keys^Description^
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**. \\
 This means, the editor distinguishes between //inserting text// and //moving and making changes//. \\  This means, the editor distinguishes between //inserting text// and //moving and making changes//. \\ 
 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. \\
  
 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]] Further 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 === 
 + 
 +  * 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. 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 ====
 +
 +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:
 +<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:
 +<code>syn region dokuwikiKeyboard start="<key>" end="</key>"
 +hi link dokuwikiKeyboard Comment</code>
 +
 +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 -->
Line 98: Line 123:
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
  
- * Originally written by [[wiki:user:b1ueb1aze |Andrew Daniel]] +  * Originally written by [[wiki:user:b1ueb1aze |Andrew Daniel]] 
 +  * Contributions by [[wiki:user:markush|Markus Hutmacher]] and [[wiki:user:sycamorex|Marcin Herda]]
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
 {{tag>work_in_progress author_b1ueb1aze}} {{tag>work_in_progress author_b1ueb1aze}}
 howtos:cli_manual:first_steps ()