Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
vim insert help in Debian
-
- Posts: 4
- Joined: 2017-10-31 05:59
vim insert help in Debian
I am new to Linux, so forgive me for not knowing all the tricks. But I can not get the insert command to work by hitting I in vim. Now before you say use nano or some other editor, I can not. This is an assignment for my unix/Linux class. I am using the minimal version of Debian. When I type in vi /etc/fstab then I go to hit I to insert nothing happens. What am I doing wrong? I tried searching vim on here before making this post, but got no results. I am sorry if this is a repost.
-
- Posts: 145
- Joined: 2014-09-01 17:04
- Location: East Central Illinois, USA
Re: vim insert help in Debian
Linux is case sensitive. In vi/vim, use the lower case i instead of upper case I to insert text.
Registered GNU/Linux user #170078
Go ask google before you ask on these boards.
It it isn't broken, Tweak It !!!
Go ask google before you ask on these boards.
It it isn't broken, Tweak It !!!
Re: vim insert help in Debian
Bigrigdriver is 100% correct.bigrigdriver wrote:Linux is case sensitive. In vi/vim, use the lower case i instead of upper case I to insert text.
You might want to find a vi(m) cheat sheet which shows what all the characters do. Just by having that, at hand, you would be able to see that vi(m) is case sensitive.
-
- Posts: 4
- Joined: 2017-10-31 05:59
Re: vim insert help in Debian
bigrigdriver wrote:Linux is case sensitive. In vi/vim, use the lower case i instead of upper case I to insert text.
-
- Posts: 4
- Joined: 2017-10-31 05:59
Re: vim insert help in Debian
Well I have to always do :set nocp to make it where I can use the i. What is calling this?bigrigdriver wrote:Linux is case sensitive. In vi/vim, use the lower case i instead of upper case I to insert text.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: vim insert help in Debian
Have a look in /etc/vim/vimrc.tiny — that's the system-wide configuration file.
I'm not sure if vim-tiny sources ~/.vimrc but you could check that as well.
Otherwise, you really should be using ed(1), it's the standard text editor...
I'm not sure if vim-tiny sources ~/.vimrc but you could check that as well.
Otherwise, you really should be using ed(1), it's the standard text editor...
deadbang
-
- Posts: 4
- Joined: 2017-10-31 05:59
Re: vim insert help in Debian
So I have looked into the file, [set runtimepatch=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/usr/share/vim/vim80,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/afterHead_on_a_Stick wrote:Have a look in /etc/vim/vimrc.tiny — that's the system-wide configuration file.
I'm not sure if vim-tiny sources ~/.vimrc but you could check that as well.
Otherwise, you really should be using ed(1), it's the standard text editor...
set compatible ]