Updated: Friday, September 01,2023-09-01 08:50:04

main
shwetha729 2023-09-01 08:50:09 -04:00
parent 321760e7ab
commit 3f5004495c
4 changed files with 44 additions and 9 deletions

View File

@ -1,5 +1,9 @@
{
"recentFiles": [
{
"basename": "Vim",
"path": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md"
},
{
"basename": "Software Repositories",
"path": "Coding Tips (Classical)/Project Vault/Comms/RADIO/Software/Software Repositories.md"
@ -192,10 +196,6 @@
"basename": "Extra customizations",
"path": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Commands + Settings/Extra customizations.md"
},
{
"basename": "Vim",
"path": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md"
},
{
"basename": "Fink",
"path": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/package managers/Fink.md"

View File

@ -78,7 +78,7 @@
"state": {
"type": "markdown",
"state": {
"file": "Coding Tips (Classical)/Project Vault/Comms/RADIO/Software/Software Repositories.md",
"file": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md",
"mode": "source",
"backlinks": false,
"source": false
@ -161,7 +161,7 @@
"state": {
"type": "outline",
"state": {
"file": "Coding Tips (Classical)/Project Vault/Comms/RADIO/Software/Software Repositories.md"
"file": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md"
}
}
},
@ -171,7 +171,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "Coding Tips (Classical)/Project Vault/Comms/RADIO/Software/Software Repositories.md",
"file": "Coding Tips (Classical)/Terminal Tips/CLI Tools/CLI Tool Collection/Vim/Vim.md",
"linksCollapsed": false,
"unlinkedCollapsed": false
}
@ -198,8 +198,8 @@
},
"active": "a9c70d5de01f4f38",
"lastOpenFiles": [
"Coding Tips (Classical)/Project Vault/Comms/RADIO/Hardware/Smartjack.md",
"Coding Tips (Classical)/Project Vault/Comms/RADIO/Software/Software Repositories.md",
"Coding Tips (Classical)/Project Vault/Comms/RADIO/Hardware/Smartjack.md",
"Coding Tips (Classical)/Project Vault/Comms/RADIO/Software",
"Coding Tips (Classical)/Project Vault/Comms/TALK WITH SOUND/Phones.md",
"Coding Tips (Classical)/Project Vault/Comms/RADIO/AIR.md",

View File

@ -7,4 +7,5 @@ Radio of course is not just about the hardware equipment but increasingly it is
A repository of radio things are found at https://repo.radio.
- [K2HMH Git Repo Radio ](https://repo.radio/org/K2HMH/dashboard)
- My [personal](https://repo.radio)radio repo
- My [personal](https://repo.radio)radio repo
- My [personal](https://repo.radio)radio repo

View File

@ -1,6 +1,7 @@
# About Vim
I was extremely surprised I didn't set up a note about my default and OG editor of choice, vim. It is what has helped long term become very fast at typing and in general for understanding the power of just using whatever editor you are most comfortable with at the end of the day. Vim is what I used when I was editing t things on a chromebook and it is still what I am using to this day.
Interact with a Vim tutorial on [Open Vim](https://www.openvim.com). Or
---
@ -13,6 +14,39 @@ There are many purposes to vim, you can use it for:
- generate the config file for your vimrc for different languages no matter where you go [here](https://vim-bootstrap.com/#tagline)
---
## Copy, Cut and Paste in Normal Mode
When you launch the Vim editor, youre in the normal mode. In this mode, you can run Vim commands and navigate through the file.
To go back to normal mode from any other mode, just press the `Esc` key.
Vim has its own terminology for copying, cutting, and pasting. Copy is called yank (`y`), cut is called delete (`d`), and paste is called put (`p`).
### Copying (Yanking)
To copy text, place the cursor in the desired location and press the `y` key followed by the movement command. Below are some helpful yanking commands:
- `yy` - Yank (copy) the current line, including the newline character.
- `3yy` - Yank (copy) three lines, starting from the line where the cursor is positioned.
- `y$` - Yank (copy) everything from the cursor to the end of the line.
- `y^` - Yank (copy) everything from the cursor to the start of the line.
- `yw` - Yank (copy) to the start of the next word.
- `yiw`  Yank (copy) the current word.
- `y%` - Yank (copy) to the matching character. By default supported pairs are `()`, `{}`, and `[]`. Useful to copy text between matching brackets.
### Cutting (Deleting)
In normal mode, `d` is the key for cutting (deleting) text. Move the cursor to the desired position and press the `d` key, followed by the movement command. Here are some helpful deleting commands:
- `dd` - Delete (cut) the current line, including the newline character.
- `3dd` - Delete (cut) three lines, starting from the line where the cursor is positioned,
- `d$` - Delete (cut) everything from the cursor to the end of the line.
The movement commands that apply for yanking are also valid for deleting. For example `dw`, deletes to the start of the next word, and `d^` deletes everything from the cursor to the start of the line.
### Pasting (Putting)
To put the yanked or deleted text, move the cursor to the desired location and press `p` to put (paste) the text after the cursor or `P` to put (paste) before the cursor.
## Vim vs NeoVim?