Easiest way to install VIM on TrueNAS Scale?

viniciusferrao

Contributor
Joined
Mar 30, 2013
Messages
192
When exactly do these characters show up? They don't if I use the stock vi while logged in via SSH. If this happens to you while you are using the web UI shell - don't. It's broken. Use SSH.
When you are in INSERT mode and want to navigate on the textfile without hitting ESC.

That is what happens:

Code:
# Filesystem path to repositories
REPO_PATH="/mnt/repos0/repos"

# Min and max random delay time in seconds
MIN_DELAY=30
MAX_DELAY=600
B                                    <=== CURSOR STAYS HERE; IT WILL ADD THE CHARACTERS AND PUSH DOWN.
C
A
D
B
C
A
D
B
A

# Define common rsync options
RSYNC_OPTIONS="-aSH --delete --delete-delay --delay-updates"

syncRepositories() {
  # AlmaLinux
  rsync ${RSYNC_OPTIONS} -f 'R .~tmp~' rsync://rsync.repo.almalinux.org/almalinux/ ${REPO_PATH}/almalinux/ &
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Er ... of course not? You cannot use the cursor keys in insert mode ... that's why it's called a modal editor since 1976.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That thought never occured to me. I switch between modes without thinking using vi since the early 1990s. Back then it was "learn vi" or "use ed". DOS had edlin.com, btw ...
 

viniciusferrao

Contributor
Joined
Mar 30, 2013
Messages
192
That thought never occured to me. I switch between modes without thinking using vi since the early 1990s. Back then it was "learn vi" or "use ed". DOS had edlin.com, btw ...
Yeah I get it. If I talk with someone with 20 years old today they only use VSCode and nano and can only use that.

You can imagine my frustration when I had my 20's in 2005 (actually I had 18 on 2005) trying to install Gentoo on my Athlon64 and struggling with vi, so yes I still don't have the muscle memory to hit esc to navigate on the file, although I still cannot use nano without pressing esc, yank and paste, :line and /search.

So I effectively don't know how to use any text editor as today :grin:
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I use VScode for development work. vi is for editing remotely. VScode is the nicest environment I have used so far. I use a whole lot of programming languages and DSLs in parallel - YAML (Ansible), Python, shell, configuration files, ... So the heavier IDEs like IntelliJ or PHPstorm always felt oversized for me.
 
Top