That is the first thing I noticed (cursor keys did not work) when I was going to suggest using
sudo vigr to add a new user to groups after
sudo adduser. After much searching, apparently starting it as
vi runs it in vi compatibility mode configured for the classic cursor keys: "h" to go left, "j" to go down, "k" to go up, "l" to go right.
From there you can either
:set nocp to have normal cursor keys, or start it as
vim.tiny instead of
vi.
To run it as
vim without the
.tiny, you could always:
Code: Select all
sudo ln -s /usr/bin/vim.tiny /usr/bin/vim
Real nerds use
emacs! Actually I cut my teeth on Linux and other *nix (SunOS, FreeBSD) in the 1990's and NetBSD later, but do not have a photographic memory to remember cryptic commands. And from using
pine e-mail reader and
pico text editor (now
nano in Linux) I am quite comfortable using nano. With its bottom menu which does not require remembering any commands, nano is easy for new Linux users. And it can even color highlight things in scripts (based on filename extension I think), although, I have not looked into an autoindent setting.