From 7f17dd9ae7173927242f855e0885c07ef9d56219 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Thu, 19 Sep 2024 06:32:16 +0100 Subject: misc changes plus nepvim additions --- public/articals/neovim/2exitingnvim | 2 +- public/articals/neovim/3Basic | 72 +++++++++++++++++++++++++++++++++++++ public/articals/neovimlist | 5 +-- public/index.html | 2 +- public/posts/10Gentoo | 2 +- public/posts/12Pihole | 4 ++- 6 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 public/articals/neovim/3Basic 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 @@

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.


-
Back
+        
Back Next
     
 
 
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 @@
+
+
+  
+    
+    
+    
+    Basic commands
+    
+    
+  
+  
+    
+ +
+
+ +

Basic Commands


+ +

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.


+ +

Copy and Paste in Neovim

+

Instead of using Ctrl + C and Ctrl + V, Neovim uses y and p for copying and pasting lines:

+
    +
  • yy - Copies an entire line in normal mode
  • +
  • y3 - Copies 3 lines in normal mode
  • +
  • y - Copies selected text in visual mode
  • +
+
+ +

Deleting Lines

+
    +
  • dd - Deletes a single line in normal mode
  • +
  • d3 - Deletes 3 lines in normal mode
  • +
  • d - Deletes selected text in visual mode
  • +
+
+ +

Undo and Redo

+
    +
  • u - Undo the last change
  • +
  • Ctrl + r - Redo the undone change
  • +
+
+ +

Saving and Quitting

+
    +
  • :w - Save the current file
  • +
  • :wq or ZZ - Save and quit
  • +
  • :q - Quit (only if no unsaved changes)
  • +
  • :q! or ZQ - Quit without saving changes
  • +
+
+ +

Searching

+
    +
  • /Linux - Search for 'Linux' (case-sensitive)
  • +
  • n - Go to the next found 'Linux'
  • +
  • N - Go to the previous 'Linux'
  • +
+
+ +
Back
+
+ + diff --git a/public/articals/neovimlist b/public/articals/neovimlist index 432a4b4..83bd397 100644 --- a/public/articals/neovimlist +++ b/public/articals/neovimlist @@ -26,11 +26,12 @@

Why Use Neovim?

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.

-

Tutorials

+

Basics

diff --git a/public/index.html b/public/index.html index cf05084..3aba0c6 100644 --- a/public/index.html +++ b/public/index.html @@ -28,7 +28,7 @@

Posts

  • 18-09-2024 - Pihole on Arch server
  • -
  • 18-09-2024 - School
  • +
  • 07-09-2024 - School
  • 31-08-2024 - Installing Gentoo Linux
  • 28-08-2024 - Compiling the Linux Kernel 🐧
  • 26-08-2024 - Arch server!
  • diff --git a/public/posts/10Gentoo b/public/posts/10Gentoo index 6ed2061..b505a47 100644 --- a/public/posts/10Gentoo +++ b/public/posts/10Gentoo @@ -23,7 +23,7 @@

    Installing Gentoo Linux

    Date: 31-08-2024


    Over the past three days I have been installing and tinkering with Gentoo Linux!

    - +

    Installing

    I found the Gentoo Handbook 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.

    diff --git a/public/posts/12Pihole b/public/posts/12Pihole index 95a52a8..682fb82 100644 --- a/public/posts/12Pihole +++ b/public/posts/12Pihole @@ -22,7 +22,9 @@

    Pi-hole

    Date: 18-09-2024


    -

    Been rather busy with school lately but I still have time to tinker!

    + +

    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 Gentoo or school. However, I have finally found the time and inspiration to install Pi-hole on my home server!

    +

    What is Pi-hole ?

    -- cgit v1.2.3