From 1bc849c105a93f9830b72d8b67fb9bbbf5d60593 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Sun, 11 Aug 2024 20:43:11 +0100 Subject: Neovim bits ! --- public/articals/neovim/0move | 34 ++++++++++++++++-------- public/articals/neovim/1modes | 52 +++++++++++++++++++++++++++++++++++++ public/articals/neovim/2exitingnvim | 36 +++++++++++++++++++++++++ public/articals/neovimlist | 4 ++- public/index.html | 2 +- 5 files changed, 115 insertions(+), 13 deletions(-) create mode 100644 public/articals/neovim/1modes create mode 100644 public/articals/neovim/2exitingnvim diff --git a/public/articals/neovim/0move b/public/articals/neovim/0move index 6850ca2..463194a 100644 --- a/public/articals/neovim/0move +++ b/public/articals/neovim/0move @@ -25,28 +25,40 @@

Moving around in Neovim is pretty easy so this will not be a long tutorial!

To move around in Neovim you need to be in the 'Normal mode' where you cannot type anything.

Moving around in Neovim is not that hard as you can see! It might feel weird now but the more you use Neovim the more you get used to it. Now lets move onto some of the more advanced movements.

+ Tip: You can press a number and a movement key to go to where you want, for example, 4k to move four spaces up or 4j to move four spaces down. +
+

Spesific movements on words

+

These are movements on individual sentances.

+ +

Spesific movements

To go to spesific parts of the file is pretty easy.


That is all now you know how to move around in Neovim!


-
Back   Next
+      
Back   Next
     
 
 
diff --git a/public/articals/neovim/1modes b/public/articals/neovim/1modes
new file mode 100644
index 0000000..d1caf04
--- /dev/null
+++ b/public/articals/neovim/1modes
@@ -0,0 +1,52 @@
+
+
+
+    
+    
+    Modes in Neovim
+    
+    
+
+
+    
+ +
+
+

Neovim modes

+
+

There are three main modes in Neovim that you really need to know about.

+

Normal mode

+

Normal mode is the default mode in Neovim; it is the mode you start off in, and it allows you to enter other modes. You can also execute commands in this mode. If you are in another mode, all you need to do to enter normal mode is press the ESC key.

+ +

Insert mode

+

This is probably the second-most-used mode that every person who uses Neovim uses. In this mode, it allows you to type, and that is really it!

+
    +
  • Switches into insert mode where you are - i
  • +
  • Switches into insert mode on a new line below the current line - o
  • +
  • Switches into insert mode on a new line above the current line - O
  • +
  • Switches into insert mode on the next charicter - a
  • +
  • Switches to insert mode at the start of the line - I
  • +
  • Switches to insert mode at the end of the line - A
  • +
+ Remember to exit insert mode to normal mode press ESC +

Visual mode

+

In this mode, you are allowed to select text, kind of like how you can click and drag and select this text on your web browser; this mode allows you to copy, paste, and delete the selected text!

+
    +
  • To enter press - v
  • +
+
+

That is all for modes. There are a few more modes, like replace mode, that just allows you to replace a character, but these modes are not really used, at least by me.

+ +
+
+
Back   Next
+    
+ + diff --git a/public/articals/neovim/2exitingnvim b/public/articals/neovim/2exitingnvim new file mode 100644 index 0000000..4b3cbd4 --- /dev/null +++ b/public/articals/neovim/2exitingnvim @@ -0,0 +1,36 @@ + + + + + + Exiting Neovim + + + + +
+ +
+
+

How to exit Neovim!

+
+

The clasic meme, how do I exit Vim?

+

There are two ways to exit Neovim; both are easy to remember. The first way to leave Neovim is to leave without saving any of the changes, and the second way is to leave while saving the changes.

+
    +
  • Leave without saving - ZQ
  • +
  • Leave with saving - ZZ
  • +
+

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
+    
+ + diff --git a/public/articals/neovimlist b/public/articals/neovimlist index 482c8b3..8e2892b 100644 --- a/public/articals/neovimlist +++ b/public/articals/neovimlist @@ -27,7 +27,9 @@

Tutorials

diff --git a/public/index.html b/public/index.html index 9c5906f..b03d4d7 100644 --- a/public/index.html +++ b/public/index.html @@ -38,9 +38,9 @@

Articles

-- cgit v1.2.3