Code: Select all
~ Running in Vi compatible mode ~ type :set nocp<Enter> for Vim defaults
Code: Select all
sudo ln -s /usr/bin/vim.tiny /usr/bin/vim
I keep forgetting this too - I usually edit '/etc/vim/vimrc' and make sure there's a line near the top containing 'set nocompatible'.Kaptein wrote:Every time I press an arrowkey I get newlines with A, B, C and D's. I've had this issue years ago but forgotten the solution.
This is true. Syntax highlighting is a quick fix in vim tho with "syntax on"efflandt wrote: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.
I prefer editing the ~/.vimrc file. Even though it's only me using the raspberry I like to keep personal preferences and system preferences separateksangeelee wrote:I keep forgetting this too - I usually edit '/etc/vim/vimrc' and make sure there's a line near the top containing 'set nocompatible'.Kaptein wrote:Every time I press an arrowkey I get newlines with A, B, C and D's. I've had this issue years ago but forgotten the solution.
You can use the arrow keys if your vi is set up to use them. HJKL is a usability nightmare.jojopi wrote:You are not supposed to use the arrow keys in vi; you are supposed to use h-j-k-l.
HJKL is good if you are a touch typist, especially if using a compact keyboard that has squashed the cursor keys up. In fact it was a long time before I realized that the Raspberry Pi was using vim.tiny so didn't support the arrow keys by default.HJKL is a usability nightmare.
I am used to using vi. And, at the moment, my access to the Pi is as a headless server from a PDA without a hardware keyboard that cannot enter the nano commands. One key press at a time, no multiple simultaneous key presses. Not ideal, but having issues attaching the other PDA which does have a nice standard external USB keyboard.pluggy wrote:Whats wrong with nano ?
vi is a little short on redeeming features IMO.
Personally, I use Microsoft Word, because I find nano too hard.Vim is a slightly more polished Vi. Personally I use gedit in Ubuntu Linux via Ubuntu's built in sftp and the Pi's SSH......
Math is hard...
Users browsing this forum: kcfrumlk and 12 guests