commit f051ee86f53431902694c42400a95451778d486c
parent bb87fc2f4892fd00764182234d504f7af1dd8d47
Author: pyratebeard <root@pyratebeard.net>
Date: Tue, 13 Nov 2018 15:43:27 +0000
changes
Diffstat:
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/coding/vim.md b/coding/vim.md
@@ -1,11 +1,5 @@
# vim
-## toc
-1. [copy](#copy contents to/from files)
-2. [text wrap](#text wrap)
-3. [spell](#spell)
-4. [buffers](#buffers)
-
## copy contents to/from files
to copy the contents into a file
```
@@ -48,7 +42,7 @@ V}gq
also use visual or visual block with `gq`
## spell
-[ref_1](#ref#1)
+[using_spellcheck][]
check spelling
```
Spell
@@ -70,9 +64,9 @@ set nospell
```
## buffers
-- buffer [faq](#ref#2)
-- using vanilla vim [answer](#ref#3)
-- buffers over tabs [answer](#ref#4)
+- buffer [faq][]
+- using [vanilla vim][]
+- [buffers over tabs][]
- open buffer
```
:e <filename>
@@ -88,7 +82,7 @@ set nospell
```
## ref
-- :1: https://www.linux.com/learn/using-spell-checking-vim
-- :2: http://vim.wikia.com/wiki/Vim_buffer_FAQ
-- :3: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins
-- :4: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs
+[using_spellcheck]: https://www.linux.com/learn/using-spell-checking-vim
+[faq]: http://vim.wikia.com/wiki/Vim_buffer_FAQ
+[vanilla vim]: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins
+[buffers over tabs]: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs