commit 7f17dd9ae7173927242f855e0885c07ef9d56219
parent 85ee220d457c4fae38fba6d8e050c11421e631bf
Author: Shipwreckt <shipwreckt@mailfence.com>
Date: Thu, 19 Sep 2024 06:32:16 +0100
misc changes plus nepvim additions
Diffstat:
6 files changed, 81 insertions(+), 6 deletions(-)
diff --git 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
@@ -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>
diff --git a/public/articals/neovimlist b/public/articals/neovimlist
@@ -26,11 +26,12 @@
<h2>Why Use Neovim?</h2>
<p>Neovim is a fast and modern text editor with amazing documentation, which has led to a wide range of plugins being developed for it. It is also lightweight and easy to learn the basics.</p>
<section class="posts">
- <h2>Tutorials</h2>
+ <h2>Basics</h2>
<ul>
<li><a href="neovim/0move">How to move around</a></li>
<li><a href="neovim/1modes">Diffrent modes</a></li>
- <li><a href="neovim/2exitingnvim">How exit</a></li>
+ <li><a href="neovim/2exitingnvim">How exit neovim</a></li>
+ <li><a href="neovim/3Basic">Basic commands</a></li>
</ul>
</main>
</body>
diff --git a/public/index.html b/public/index.html
@@ -28,7 +28,7 @@
<h2>Posts</h2>
<ul>
<li>18-09-2024 - <a href="posts/12Pihole">Pihole on Arch server</a></li>
- <li>18-09-2024 - <a href="posts/11School">School</a></li>
+ <li>07-09-2024 - <a href="posts/11School">School</a></li>
<li>31-08-2024 - <a href="posts/10Gentoo">Installing Gentoo Linux</a></li>
<li>28-08-2024 - <a href="posts/09Kernel">Compiling the Linux Kernel 🐧</a></li>
<li>26-08-2024 - <a href="posts/08ArchServer">Arch server!</a></li>
diff --git a/public/posts/10Gentoo b/public/posts/10Gentoo
@@ -23,7 +23,7 @@
<h2>Installing Gentoo Linux</h2>
<h3>Date: 31-08-2024</h3><hr>
<p>Over the past three days I have been installing and tinkering with Gentoo Linux!</p>
- <img src="../Images/logos/gentoo.png" class="right-image" width="300">
+ <img src="../Images/logos/gentoo.png" class="right-image" width="250">
<h2>Installing</h2>
<p>I found the <a href="https://wiki.gentoo.org/wiki/Handbook:Main_Page">Gentoo Handbook</a> extremely useful for installing Gentoo Linux. In the past, my attempts to install Gentoo on my test PC, which uses a BIOS system, were, just a big fail due to a bunch of small mistakes I made. But this time around I installed Gentoo on my main PC, which has 18 cores, that allows me to compile things faster. Overall, I found the installation process to be very straightforward. I simply SSHed into the computer and copied the necessary commands to install the required packages, along with some miscellaneous things like ensuring the file systems where 100% working.</p>
diff --git a/public/posts/12Pihole b/public/posts/12Pihole
@@ -22,7 +22,9 @@
<main>
<h2>Pi-hole</h2>
<h3>Date: 18-09-2024</h3><hr>
- <p>Been rather busy with school lately but I still have time to tinker!</p>
+
+ <p>I've been rather busy with school lately, but I still have time to tinker! For a while now, I have wanted to use Pi-hole with my router, but I've either been busy with <a href="10Gentoo">Gentoo</a> or school. However, I have finally found the time and inspiration to install Pi-hole on my home server!</p>
+
<h2>What is Pi-hole ?</h2>
<img class="right-image" width="200" src="../Images/logos/pihole.png">