You are not logged in.
Pages: 1
Problem: When I backspace, the cursor just goes over the text. Then when I type something new, the text starts getting replaced one by one.
Here's a screencast (less than 1min): http://www.youtube.com/watch?v=16f1nrepZsAI tried ":set showmode". But the problem persists
Can someone please help?
P.S: When I used to use Ubuntu, I would simply install Vim in Vi's place and problem gets resolved (by typing 'a'). Now even that doesn't do the trick.
Offline
Have you tried ':set nocompatible' in vim?
Offline
Have you tried ':set nocompatible' in vim?
I tried it and this is what I get:
compatible: No such option - "set all" gives all option valuesBut I noticed something new. Even when I'm typing the command (ie, in command mode), I've the same problem.
Offline
Make sure you're using vim and not vi. Even if you have vim installed, running 'vi' still starts vi from base.
$ pacman -Si vi
...
Description : The original ex/vi text editor.But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Make sure you're using vim and not vi. Even if you have vim installed, running 'vi' still starts vi from base.
+1
I'm pretty sure that error comes from vi - I just tested it and I got an identical one.
vim doesn't error.
Offline
Make sure you're using vim and not vi. Even if you have vim installed, running 'vi' still starts vi from base.
$ pacman -Si vi ... Description : The original ex/vi text editor.
So basically, vi, which is provided with every other distro is useless. Just out of curiosity, I really want to find a solution, you know ![]()
Last edited by r0ach (2012-10-26 18:13:42)
Offline
Why 'useless'? 'x' deletes, right? Why do you need backspace'?
Offline
Why 'useless'? 'x' deletes, right? Why do you need backspace'?
Its quite a hassle to download a whole new package to get backspace functionality. I mean, most of the computers at my lab doesn't have internet connectivity ![]()
Offline
alphaniner wrote:Make sure you're using vim and not vi. Even if you have vim installed, running 'vi' still starts vi from base.
$ pacman -Si vi ... Description : The original ex/vi text editor.So basically, vi, which is provided with every other distro is useless.
No, newbies use it for generating entropy and random strings ![]()
Offline
But why don't you use vi commands? What is the problem with 'dd', 'x' etc.? These should work out of the box on both vi and vim.
Using Arch on computers w/o internet connectivity is a weird idea - updating is a PITA.
Offline
Guess, nano is the way to go!
Offline
If you enter insert mode, type some stuff, backspace to delete it, then press escape, the characters you 'backspaced' will disappear. But only in that situation.
For my part I kind of agree with you about vi. I love vim but hate vi, and I find it hard to understand how vi lasted long enough to inspire vim. But then I've never really tried to learn/adapt to it...
Last edited by alphaniner (2012-10-26 18:31:26)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Guess, nano is the way to go!
If you just want to edit a config file or two, nano may just be the easier choice, especially if you are using many computers where you don't have control over what's installed. Nano is almost always available, and it's actually quite a usable editor.
Offline
Arch uses ex/vi for vi, not the vi build of vim: https://bugs.archlinux.org/task/20778 and http://ex-vi.sourceforge.net/.
You can use vim as the default editor by setting the EDITOR environment variable in your startup configs. And, I guess, break the habit of typing 'vi' when you really mean vim.
Offline
Arch uses ex/vi for vi, not the vi build of vim: https://bugs.archlinux.org/task/20778 and http://ex-vi.sourceforge.net/.
And, I guess, break the habit of typing 'vi' when you really mean vim.
Could alias it. I do as it's one less letter and I am lazy.
Offline
Or you could just uninstall vi, if you wish.
Offline
The vim-runtime package has an example vimrc file. Have a look at that as well, as vim does not come with vim by default :-)
Offline
The vim-runtime package has an example vimrc file. Have a look at that as well, as vim does not come with vim by default :-)
Yes, it comes with emacs these days ![]()
Offline
I've done this (quote from memory):
ln -fs /usr/vi /usr/vimLast edited by Steffo (2012-10-27 17:38:10)
Offline
I've done this (quote from memory):
ln -fs /usr/vi /usr/vim
Better not quote from memory next time...
ᶘ ᵒᴥᵒᶅ
Offline
I'm another who hates vi but loves vim. In vi, backspace results in "^?". In vim it just works. And why does insert mode overwrite rather than, you know, inserting?
The only way I can edit in vi is to use substitutions in command mode. Directly typing, deleting or changing text is completely beyond me.
I assume this is because I've never learnt it properly because, well, there's the wonderful vim...
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pages: 1