feat: add thanks vim
parent
4ee0976d0d
commit
9eee57ddf4
|
@ -58,6 +58,10 @@
|
||||||
<div class="highlight highlight-source-viml">
|
<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>
|
<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>
|
</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>
|
<p>Jump basic:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>gg</code>: first line</li>
|
<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>
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
<a
|
<a
|
||||||
id="user-content-reference"
|
id="user-content-references--thanks"
|
||||||
class="anchor"
|
class="anchor"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
href="#reference"
|
href="#references--thanks"
|
||||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||||
>Reference
|
>References / Thanks
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -270,6 +274,13 @@ vim.<span class="pl-smi">keymap</span>.<span class="pl-c1">set</span>(<span clas
|
||||||
>neovim Lua-guide</a
|
>neovim Lua-guide</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href="https://bluz71.github.io/2021/09/10/vim-tips-revisited.html"
|
||||||
|
rel="nofollow"
|
||||||
|
>Vim Tips (Revisited)</a
|
||||||
|
>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -16,6 +16,12 @@ Replace word:
|
||||||
:%s/word1/word2/g
|
:%s/word1/word2/g
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Delete all lines contain word:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:g/word/d
|
||||||
|
```
|
||||||
|
|
||||||
Jump basic:
|
Jump basic:
|
||||||
|
|
||||||
- `gg`: first line
|
- `gg`: first line
|
||||||
|
@ -99,8 +105,9 @@ vim.keymap.set("n", "q", ":q<CR>")
|
||||||
- `<Space>gr`: go to references
|
- `<Space>gr`: go to references
|
||||||
- `<Space>f`: format
|
- `<Space>f`: format
|
||||||
|
|
||||||
## Reference
|
## References / Thanks
|
||||||
|
|
||||||
- [neovim Motion](https://neovim.io/doc/user/motion.html)
|
- [neovim Motion](https://neovim.io/doc/user/motion.html)
|
||||||
- [neovim Tagsrch](http://neovim.io/doc/user/tagsrch.html)
|
- [neovim Tagsrch](http://neovim.io/doc/user/tagsrch.html)
|
||||||
- [neovim Lua-guide](https://neovim.io/doc/user/lua-guide.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)
|
||||||
|
|
Loading…
Reference in New Issue