Tag Info

New answers tagged

0

You can rebind the number keys for vi mode so they don't trigger the arg: N repetition. Try inserting the following in your ~/.bashrc (or you can test it in an active terminal first): bind -m vi 3:self-insert Then try hitting Escape and typing 3. You should get the number 3 printed. However, this is probably not a good behaviour, since you probably don't ...


1

The offending code is in: lib/readline/misc.c Removing lines 109 and 241 will remove the message.


1

When you're in command mode in vi (the the actual editor or the Bash mode), pressing digits inputs an argument (hence "arg") that is usually used to set the number of repetitions to perform the following command. To avoid that, you should be in input mode (by pressing i for example) before pressing digits. Demonstration: If you're not in vi mode, you can ...


1

Since you want a serial console, I suppose your using some embedded device. So I guess the partition /etc/inittab is on is mounted read only. You'd have to remount the partition writable. Use mount without arguments to figure out what partition the file is on and use something like mount -o remount,rw /etc/ to remount it writable.


1

Try this: Open terminal, then type su and type your root user password. After this: vi /etc/inittab In my case this works but I'm using CentOS.


1

try use the command sed to change. sed -e 's/apple/grape/g' filethatyouwantchange this will just show the output , if you want to change the file use the parameter -i: sed -i -e 's/apple/grape/g' filethatyouwantchange if you are using vi or vim you can do the same thing with the file open :%s/apple/grape/g


1

Open the file template.php using vi editor. After opening it, press escape button and type below. :%s/apple/grape/g


1

You should use sed: sed -i.bak 's/apple/grape/g' template.php If you use vi, you can do in command mode: :%s/apple/grape/g



Top 50 recent answers are included