commit 1bc849c105a93f9830b72d8b67fb9bbbf5d60593
parent 742c940abe843d0002ac57c57175a3d34744757b
Author: Shipwreckt <shipwreckt@mailfence.com>
Date: Sun, 11 Aug 2024 20:43:11 +0100
Neovim bits !
Diffstat:
5 files changed, 115 insertions(+), 13 deletions(-)
diff --git a/public/articals/neovim/0move b/public/articals/neovim/0move
@@ -25,28 +25,40 @@
<p>Moving around in Neovim is pretty easy so this will not be a long tutorial!</p>
<p>To move around in Neovim you need to be in the 'Normal mode' where you cannot type anything.</p>
<ul>
- <li>move left - h</li>
- <li>move right - l</li>
- <li>move up - k</li>
- <li>move down - j</li>
+ <li>Move left - h</li>
+ <li>Move right - l</li>
+ <li>Move up - k</li>
+ <li>Move down - j</li>
</ul>
<p>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.</p>
+ <font color=red>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.</font>
+ <hr>
+ <h2>Spesific movements on words</h2>
+ <p>These are movements on individual sentances.</p>
+ <ul>
+ <li>Move to the start of the next word - w</li>
+ <li>Move to the start of the previous word - b</li>
+ <li>Move to the end of the current word - e</li>
+ </ul>
+
<hr>
<h2>Spesific movements</h2>
<p>To go to spesific parts of the file is pretty easy.</p>
<ul>
- <li>move to the top - gg</li>
- <li>move to the bottom - G</li>
- <li>move to spesific line - 2G</li>
- <li>move to the top of the screen - H</li>
- <li>move to the middle of the screen - M</li>
- <li>move to the bottom of the screen - L</li>
+ <li>Move to the top - gg</li>
+ <li>Move to the bottom - G</li>
+ <li>Move to spesific line - 2G</li>
+ <li>Move to the top of the screen - H</li>
+ <li>Move to the middle of the screen - M</li>
+ <li>Move to the bottom of the screen - L</li>
+ <li>Move to the start of the line - 0</li>
+ <li>Move to the end of the line - $</li>
</ul>
<hr>
<center>
<p>That is all now you know how to move around in Neovim! </p>
<hr>
- <pre text-align=center><a href="../neovimlist">Back</a> <a href="">Next</a>
+ <pre text-align=center><a href="../neovimlist">Back</a> <a href="1modes">Next</a>
</main>
</body>
</html>
diff --git a/public/articals/neovim/1modes b/public/articals/neovim/1modes
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Modes in Neovim</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 class="description">
+ <h1>Neovim modes</h1>
+ <hr>
+ <p>There are three main modes in Neovim that you really need to know about.</p>
+ <h3>Normal mode</h3>
+ <p>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 <b>ESC</b> key.</p>
+
+ <h3>Insert mode</h3>
+ <p>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!</p>
+ <ul>
+ <li>Switches into insert mode where you are - i</li>
+ <li>Switches into insert mode on a new line below the current line - o</li>
+ <li>Switches into insert mode on a new line above the current line - O</li>
+ <li>Switches into insert mode on the next charicter - a</li>
+ <li>Switches to insert mode at the start of the line - I</li>
+ <li>Switches to insert mode at the end of the line - A</li>
+ </ul>
+ <font color="red">Remember to exit insert mode to normal mode press <b>ESC</b></font>
+ <h3>Visual mode</h3>
+ <p>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!</p>
+ <ul>
+ <li>To enter press - v</li>
+ </ul>
+ <hr>
+ <p>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.</p>
+
+ <center>
+ <hr>
+ <pre text-align=center><a href="../neovimlist">Back</a> <a href="2exitingnvim">Next</a>
+ </main>
+</body>
+</html>
diff --git a/public/articals/neovim/2exitingnvim b/public/articals/neovim/2exitingnvim
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Exiting Neovim</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 class="description">
+ <h1>How to exit Neovim!</h1>
+ <hr>
+ <p>The clasic meme, how do I exit Vim?</p>
+ <p>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.</p>
+ <ul>
+ <li>Leave without saving - ZQ</li>
+ <li>Leave with saving - ZZ</li>
+ </ul>
+ <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>
+ </main>
+</body>
+</html>
diff --git a/public/articals/neovimlist b/public/articals/neovimlist
@@ -27,7 +27,9 @@
<section class="posts">
<h2>Tutorials</h2>
<ul>
- <li><a href="neovim/0move">How To Move in Neovim?</a></li>
+ <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>
</ul>
</main>
</body>
diff --git a/public/index.html b/public/index.html
@@ -38,9 +38,9 @@
<section class="posts">
<h2>Articles</h2>
<ul>
+ <li>08-08-2024 - <a href="articals/internetlist">Articles about the Internet</a></li>
<li>07-08-2024 - <a href="articals/neovimlist">Neovim run through</a></li>
<li>25-07-2024 - <a href="articals/linuxlist">Articles about Linux</a></li>
- <li>25-07-2024 - <a href="articals/internetlist">Articles about the Internet</a></li>
</ul>
</section>
</main>