recently switched from OS X to Ubuntu. When I run the ‘vim file.c’ command at terminal, I see an error message that read as follows:
The program ‘vim’ can be found in the following packages: * vim-tiny
Try: apt-get install <selected package>
How do I fix this problem and why vim is not a default text editor on Ubuntu Linux? How can I install full-fledged vim text editor in Ubuntu Linux?
am a new vi / vim text editor user and I know how to quit without saving
changes. What if I want to wipe out all of the edits I have made in a session and get back to the original file? How do I wipe all changes since opening a file?
riting shell scripts in vim I usually go search for functions or something. Copy lines and then go back to where I was and modify the code. However, I need to manually navigate way back to the previous / last position. How can I automatically go back to where I was when I started my search operation under vim?
am a new vi (vim) text editor user. How do I quit the vi editor and save my changes under Linux or Unix like operating systems?
am a new vi / vim text editor user. How can I quit the vi / vim text editor without saving my changes to a file under Linux / Unix like operating systems?
am login to a remote server using a ssh client. I am annoyed with the arrow key behavior during insert mode in Vim. As soon as I hit arrow keys, vim display A B C D on screen. How do I fix this problem under Unix like operating systems?
am new to Linux sysadmin work. I am using vi / vim text editor to edit files located in /etc/ directory. I open files using
vi /etc/resolv.conf /etc/hosts
I can edit the /etc/resolv.conf file only. How do I switch between the two open files while using vim text editor under Linux / BSD / Apple OS X / Unix like operating systems?