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 +++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 public/articals/neovim/3Basic (limited to 'public/articals/neovim') 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
+
+ + -- cgit v1.2.3