diff options
author | Shipwreckt <shipwreckt@mailfence.com> | 2024-09-19 06:32:16 +0100 |
---|---|---|
committer | Shipwreckt <shipwreckt@mailfence.com> | 2024-09-19 06:32:16 +0100 |
commit | 7f17dd9ae7173927242f855e0885c07ef9d56219 (patch) | |
tree | abf73e847df38c09da337e73b2804031a86cfbe9 /public/articals/neovim | |
parent | 85ee220d457c4fae38fba6d8e050c11421e631bf (diff) |
misc changes plus nepvim additions
Diffstat (limited to 'public/articals/neovim')
-rw-r--r-- | public/articals/neovim/2exitingnvim | 2 | ||||
-rw-r--r-- | public/articals/neovim/3Basic | 72 |
2 files changed, 73 insertions, 1 deletions
diff --git a/public/articals/neovim/2exitingnvim b/public/articals/neovim/2exitingnvim index 21f46c9..5c9059b 100644 --- a/public/articals/neovim/2exitingnvim +++ b/public/articals/neovim/2exitingnvim @@ -31,7 +31,7 @@ <p>To people who have used Vim-based text editors, this might look strange to you because you are used to using :q and :q! And whilst those do still work, using ZZ and ZQ is way more dynamic and just smoother in the long run.</p> <center> <hr> - <pre text-align=center><a href="../neovimlist">Back</a> + <pre><a href="../neovimlist">Back</a> <a href="3Basic">Next</a> </main> </body> </html> diff --git a/public/articals/neovim/3Basic b/public/articals/neovim/3Basic new file mode 100644 index 0000000..48da7fe --- /dev/null +++ b/public/articals/neovim/3Basic @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html lang="en-GB"> + <head> + <meta charset="UTF-8"> + <meta name="author" content="Shipwreckt"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Basic commands</title> + <link rel="stylesheet" href="../../styles.css"> + <link rel="icon" href="../../Images/favi.png" type="image/x-icon"> + </head> + <body> + <header> + <nav> + <ul> + <li><a href="../../index.html">Home</a></li> + <li><a href="../../links.html">Links</a></li> + <li><a href="../../projects.html">Projects</a></li> + <li><a href="../../contact.html">Contact</a></li> + </ul> + </nav> + </header> + <main> + + <h1>Basic Commands</h1><hr> + + <p>There are over 100 commands in Neovim, and thankfully, you don't need to know all of them to use the text editor—just a few basic commands are enough.</p><hr> + + <h3>Copy and Paste in Neovim</h3> + <p>Instead of using <kbd>Ctrl</kbd> + <kbd>C</kbd> and <kbd>Ctrl</kbd> + <kbd>V</kbd>, Neovim uses <kbd>y</kbd> and <kbd>p</kbd> for copying and pasting lines:</p> + <ul> + <li><kbd>yy</kbd> - Copies an entire line in normal mode</li> + <li><kbd>y3</kbd> - Copies 3 lines in normal mode</li> + <li><kbd>y</kbd> - Copies selected text in visual mode</li> + </ul> + <hr> + + <h3>Deleting Lines</h3> + <ul> + <li><kbd>dd</kbd> - Deletes a single line in normal mode</li> + <li><kbd>d3</kbd> - Deletes 3 lines in normal mode</li> + <li><kbd>d</kbd> - Deletes selected text in visual mode</li> + </ul> + <hr> + + <h3>Undo and Redo</h3> + <ul> + <li><kbd>u</kbd> - Undo the last change</li> + <li><kbd>Ctrl</kbd> + <kbd>r</kbd> - Redo the undone change</li> + </ul> + <hr> + + <h3>Saving and Quitting</h3> + <ul> + <li><kbd>:w</kbd> - Save the current file</li> + <li><kbd>:wq</kbd> or <kbd>ZZ</kbd> - Save and quit</li> + <li><kbd>:q</kbd> - Quit (only if no unsaved changes)</li> + <li><kbd>:q!</kbd> or <kbd>ZQ</kbd> - Quit without saving changes</li> + </ul> + <hr> + + <h3>Searching</h3> + <ul> + <li><kbd>/Linux</kbd> - Search for 'Linux' (case-sensitive)</li> + <li><kbd>n</kbd> - Go to the next found 'Linux'</li> + <li><kbd>N</kbd> - Go to the previous 'Linux'</li> + </ul> + <hr> + + <pre style="text-align: center;"><a href="../neovimlist">Back</a></pre> + </main> + </body> +</html> |