Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
howtos:cli_manual:first_steps [2012/11/16 22:53 (UTC)] – [c. Vim] markush | howtos:cli_manual:first_steps [2012/11/17 21:38 (UTC)] – [The dokuwiki Plugin] markush |
---|
===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^ |
| |
===== 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**. \\ |
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]]// |
| * 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. You can load this plugin when editing a dokuwiki file with the command <code>set ft=dokuwiki</code>If you need syntaxhilighting for the <key> 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>" | 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. |
hi link dokuwikiKeyboard Comment</code> to the plugin (without the spaces in the tags!) | |
| 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 --> |
<!-- * 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}} |