coding/vim.md
... ...
@@ -1,11 +1,5 @@
1 1
# vim
2 2
3
-## toc
4
-1. [copy](#copy contents to/from files)
5
-2. [text wrap](#text wrap)
6
-3. [spell](#spell)
7
-4. [buffers](#buffers)
8
-
9 3
## copy contents to/from files
10 4
to copy the contents into a file
11 5
```
... ...
@@ -48,7 +42,7 @@ V}gq
48 42
also use visual or visual block with `gq`
49 43
50 44
## spell
51
-[ref_1](#ref#1)
45
+[using_spellcheck][]
52 46
check spelling
53 47
```
54 48
Spell
... ...
@@ -70,9 +64,9 @@ set nospell
70 64
```
71 65
72 66
## buffers
73
-- buffer [faq](#ref#2)
74
-- using vanilla vim [answer](#ref#3)
75
-- buffers over tabs [answer](#ref#4)
67
+- buffer [faq][]
68
+- using [vanilla vim][]
69
+- [buffers over tabs][]
76 70
- open buffer
77 71
```
78 72
:e <filename>
... ...
@@ -88,7 +82,7 @@ set nospell
88 82
```
89 83
90 84
## ref
91
-- :1: https://www.linux.com/learn/using-spell-checking-vim
92
-- :2: http://vim.wikia.com/wiki/Vim_buffer_FAQ
93
-- :3: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins
94
-- :4: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs
85
+[using_spellcheck]: https://www.linux.com/learn/using-spell-checking-vim
86
+[faq]: http://vim.wikia.com/wiki/Vim_buffer_FAQ
87
+[vanilla vim]: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins
88
+[buffers over tabs]: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs