about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tools/index.html7
-rw-r--r--tools/vim.html76
2 files changed, 74 insertions, 9 deletions
diff --git a/tools/index.html b/tools/index.html
index 816e651..0afdf3e 100644
--- a/tools/index.html
+++ b/tools/index.html
@@ -30,9 +30,10 @@
                     <li><a href="vim.html#split">3. Split and tab</a></li>
                     <li><a href="vim.html#filebrowser">4. File browser</a></li>
                     <li><a href="vim.html#block">5. Editing files</a></li>
-                    <li><a href="vim.html#spellcheck">6. Spellcheck</a></li>
-                    <li><a href="vim.html#plugin">7. Plugins</a></li>
-                    <li><a href="vim.html#vimdiff">8. Vimdiff</a></li>
+                    <li><a href="vim.html#ctags">6. Tags</a></li>
+                    <li><a href="vim.html#spellcheck">7. Spellcheck</a></li>
+                    <li><a href="vim.html#plugin">8. Plugins</a></li>
+                    <li><a href="vim.html#vimdiff">9. Vimdiff</a></li>
                 </ul>
             </li>
             <li><a href="gnupg.html">Gpg</a>
diff --git a/tools/vim.html b/tools/vim.html
index 89ac0c0..dd1e8a6 100644
--- a/tools/vim.html
+++ b/tools/vim.html
@@ -2,12 +2,12 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title> Vim</title>
+        <title>Vim</title>
     </head>
     <body>
 
         <a href="index.html">Tools Index</a>
-        <h1 id="vim"> 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>
@@ -29,7 +29,7 @@
         personalizing it;</p>
 
         <pre>
-        $ sudo cp ~/sysdoc/conf/etc/skel/.vimrc /etc/skel/
+        $ sudo cp ~/doc/conf/etc/skel/.vimrc /etc/skel/
         $ sudo mkdir /etc/skel/.vim
         $ sudo mkdir /etc/skel/.vim/swap
         $ sudo mkdir /etc/skel/.vim/views
@@ -85,6 +85,19 @@
             <dd>Open vertical split with file browser.</dd>
         </dl>
 
+        <p>To find files, run vim at top level of project and then use find auto completion or *;</p>
+
+        <pre>
+        :find nameofdirectory + Tab
+        :find nameofdir* + Tab
+        </pre>
+
+        <p>For file browsing there is also a option to use edit;</p>
+
+        <pre>
+        :edit nameofdirectory/
+        <pre>
+
         <h2 id="edit">5. Editing files</h2>
 
         <p>Come from background;</p>
@@ -179,13 +192,64 @@
             comma (,), press esc to confirm.</dd>
         </dl>
 
-        <h2 id="spellcheck">6. Spellcheck</h2>
+        <h2 id="ctags">6. Tags</h2>
+
+        <p>Tags, at top level of project;</p>
+
+        <pre>
+        $ ctags -R .
+        $ vim src/hello_world.c
+        </pre>
+
+        <p>To follow a tag;</p>
+
+        <pre>
+        Ctrl-]
+        </pre>
+
+        <p>To get back;</p>
+
+        <pre>
+        Ctrl-t
+        </pre>
+
+        <p>Autocomplete, press to see all options;</p>
+
+        <pre>
+        Ctrl-n
+        </pre>
+
+        <p>To move forward and backward in options;</p>
+
+        <pre>
+        Ctrl-n Ctrl-p
+        </pre>
+
+        <p>Show auto completion with references to only this file;</p>
+
+        <pre>
+        Ctrl-x Ctrl-n
+        </pre>
+
+        <p>Show auto completion with filenames, * Tab can be used;</p>
+
+        <pre>
+        Ctrl-x Ctrl-f
+        </pre>
+
+        <p>Show auto completion with only tags;</p>
+
+        <pre>
+        Ctrl-x Ctrl-]
+        </pre>
+
+        <h2 id="spellcheck">7. Spellcheck</h2>
 
         <p>Press z= over the bad written word and select desired one.</p>
 
-        <h2 id="plugin">7. Plugins</h2>
+        <h2 id="plugin">8. Plugins</h2>
 
-        <h2 id="vimdiff">8. Vimdiff</h2>
+        <h2 id="vimdiff">9. Vimdiff</h2>
 
 	<p>If two files are open in <a href="#split">split</a> type :diffthis in both windows to get vimdiff of the files. To close type :diffoff.</p>
 
div>
827898fc ^
35064671 ^
c76b49e7 ^





ac0e9db5 ^
05d17773 ^
9d670bb5 ^
827898fc ^
35064671 ^
05d17773 ^
3a622511 ^
c76b49e7 ^

363685b8 ^
1ea1bd9c ^
363685b8 ^


bc643692 ^
5497090a ^

363685b8 ^
5497090a ^
363685b8 ^

bc643692 ^
363685b8 ^
6e698858 ^




363685b8 ^




ac0e9db5 ^
363685b8 ^





363be37f ^
363685b8 ^

e4630643 ^











363685b8 ^
6e698858 ^
35064671 ^
363685b8 ^



9d670bb5 ^


ac0e9db5 ^
05d17773 ^

ac0e9db5 ^
e4630643 ^
ac0e9db5 ^
6e698858 ^
35064671 ^
05d17773 ^

363685b8 ^


134dad7c ^



363be37f ^
134dad7c ^

ac0e9db5 ^
134dad7c ^

134dad7c ^






ac0e9db5 ^

134dad7c ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154