aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vim.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-02-20 22:37:51 +0000
committerSilvino Silva <silvino@bk.ru>2017-02-20 22:37:51 +0000
commitcf97b7ea9685915c0c25529dd53ba935addcd5e0 (patch)
tree0ece2592901abe8f61d66d185dfdf17cd4be3812 /tools/vim.html
parent0e7880313b3a3e016c0d2e287802cc6ddff9edd1 (diff)
downloaddoc-cf97b7ea9685915c0c25529dd53ba935addcd5e0.tar.gz
tools vim html and index number fix
Diffstat (limited to 'tools/vim.html')
-rw-r--r--tools/vim.html41
1 files changed, 21 insertions, 20 deletions
diff --git a/tools/vim.html b/tools/vim.html
index 528c777..8210681 100644
--- a/tools/vim.html
+++ b/tools/vim.html
@@ -2,17 +2,17 @@
<html dir="ltr" lang="en">
<head>
<meta charset='utf-8'>
- <title>5. Vim</title>
+ <title> Vim</title>
</head>
<body>
<a href="index.html">Systools Index</a>
- <h1 id="vim">5. Vim</h1>
+ <h1 id="vim"> Vim</h1>
<p>&lt;leader&gt; with default configuration is key \, so when
you see &lt;leader&gt;-W means pressing \W</p>
- <h2 id="vimrc">5.1. Vim RC</h2>
+ <h2 id="vimrc">1. Vim RC</h2>
<p>Read
<a href="http://dougblack.io/words/a-good-vimrc.htm">"A good vimrc"</a>
@@ -35,16 +35,16 @@
$ sudo mkdir /etc/skel/.vim/views
$ sudo mkdir /etc/skel/.vim/undodir
$ sudo mkdir /etc/skel/.vim/backup
- $ wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=4055
- $ mv wombat256mod.vim /usr/share/vim/colors/
+ $ wget -O wombat2mod.vim http://www.vim.org/scripts/download_script.php?src_id=40
+ $ mv wombat2mod.vim /usr/share/vim/colors/
</pre>
- <h2 id="color">5.2. Color schemes</h2>
+ <h2 id="color">2. Color schemes</h2>
- <p>Default vimrc skeleton is configured to use wombat256mod,
+ <p>Default vimrc skeleton is configured to use wombat2mod,
which is installed by adduser skeleton.</p>
- <h2 id="spacetab">5.3. Split and tab</h2>
+ <h2 id="spacetab">3. Split and tab</h2>
<p>Horizontal split;</p>
<pre>
@@ -72,14 +72,7 @@
ctrl+w (k,j,l,h)
</pre>
- <h2 id="edit">5.4. Editing files</h2>
-
- <h3>Modes</h3>
-
- <p>To enter visual block mode press ctrl-v. To insert block
- first select area then press I, insert text normally, when
- you pres ESC the text will be inserted on previously selected
- area.</p>
+ <h2 id="edit">4. Editing files</h2>
<p>Come from background;</p>
@@ -158,18 +151,26 @@
<p>Selection of useful combinations;</p>
<dl>
<dt>vat</dt>
- <dd>Select whole tag block.</dt>
+ <dd>Select whole tag block.</dd>
<dt>cit</dt>
- <dd>Change inside tag.</dt>
+ <dd>Change inside tag.</dd>
<dt>yat</dt>
<dd>Copy whole tag.</dd>
+ <dt>vip<C-V>$A,<Esc></dt>
+ <dd>Select a paragraph (vip), switch to visual
+ block mode (CTRL V), append to all lines ($A) a
+ comma (,), press esc to confirm.</dd>
+ <dt>vip&lt;C-V&gt;I,&lt;Esc&gt;</dt>
+ <dd>Select a paragraph (vip), switch to visual
+ block mode (CTRL V), insert to all lines (I) a
+ comma (,), press esc to confirm.</dd>
</dl>
- <h2 id="spellcheck">5.5. Spell check</h2>
+ <h2 id="spellcheck"> Spell check</h2>
<p>Press z= over the bad written word and select desired one.</p>
- <h2 id="plugin">5.6. Plugins</h2>
+ <h2 id="plugin">6. Plugins</h2>
<a href="index.html">Systools Index</a>
<p>This is part of the c9-doc Manual.