feat: add thanks vim

main
sudo pacman -Syu 2023-07-07 16:58:37 +07:00
parent 4ee0976d0d
commit 9eee57ddf4
2 changed files with 22 additions and 4 deletions

View File

@ -58,6 +58,10 @@
<div class="highlight highlight-source-viml">
<pre>:<span class="pl-k">%</span><span class="pl-c1">s</span><span class="pl-sr">/word1/</span>word2/<span class="pl-c1">g</span></pre>
</div>
<p>Delete all lines contain word:</p>
<div class="highlight highlight-source-viml">
<pre>:<span class="pl-c1">g</span><span class="pl-sr">/word/</span><span class="pl-c1">d</span></pre>
</div>
<p>Jump basic:</p>
<ul>
<li><code>gg</code>: first line</li>
@ -247,12 +251,12 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
</ul>
<h2>
<a
id="user-content-reference"
id="user-content-references--thanks"
class="anchor"
aria-hidden="true"
href="#reference"
href="#references--thanks"
><span aria-hidden="true" class="octicon octicon-link"></span></a
>Reference
>References / Thanks
</h2>
<ul>
<li>
@ -270,6 +274,13 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
>neovim Lua-guide</a
>
</li>
<li>
<a
href="https://bluz71.github.io/2021/09/10/vim-tips-revisited.html"
rel="nofollow"
>Vim Tips (Revisited)</a
>
</li>
</ul>
<div>

View File

@ -16,6 +16,12 @@ Replace word:
:%s/word1/word2/g
```
Delete all lines contain word:
```vim
:g/word/d
```
Jump basic:
- `gg`: first line
@ -99,8 +105,9 @@ vim.keymap.set("n", "q", ":q<CR>")
- `<Space>gr`: go to references
- `<Space>f`: format
## Reference
## References / Thanks
- [neovim Motion](https://neovim.io/doc/user/motion.html)
- [neovim Tagsrch](http://neovim.io/doc/user/tagsrch.html)
- [neovim Lua-guide](https://neovim.io/doc/user/lua-guide.html)
- [Vim Tips (Revisited)](https://bluz71.github.io/2021/09/10/vim-tips-revisited.html)