PDA

View Full Version : [ubuntu] Need help moving cursor



dimension123
July 10th, 2012, 07:27 PM
I am in the terminal and I wanted to reconfigure some changing for security purposes. I am in the directory comman, "vim.tiny /etc/fstab". I want to reconfigure this but when I go all the way to the bottom right the cursor is not allowing me to move any further to the right which prevents me from typing in another command. How am I able to move the cursor to the right so that I can type in my command?? I know its a stupid question but i need help anyone pleaase??? thank you

ubudog
July 10th, 2012, 07:54 PM
Type 'I' to edit. Be sure you have permissions to edit the file too:

sudo vim /etc/fstab

When you're finished, press escape and type :wq to save and quit.

Hope that helps,
ubudog

CharlesA
July 10th, 2012, 07:55 PM
Home and End should work in vim. nano or pico might be a better choice tho, vim.tiny is a stripped down version of vim.

i = insert
a = append

See here for more:
http://bullium.com/support/vim.html

bogan
July 10th, 2012, 08:02 PM
Hi!, dimension123,

You Posted:
I am in the directory comman, "vim.tiny /etc/fstab". I want to reconfigure thisPlease explain what you meant by that.

Do yiu want to alter the Terminal prompt line?

Are you in a 'Full Screen' terminal window?

What sort of Terminal are you using: Gnome-terminal, Term from Dash, from 'Ctrl+Alt+t', XTerm or UXTerm or what?

Have you tried pressing 'F11'?. or 'Alt+Right-Click' and selecting 'Resize'to make the terminal window smaller.

Can you Post a screenshot?

Edit: Before I read CharlesA's Post, I had not seen the significance of the "vim", so ignore the first part of my Post.

Chao!, bogan.

dimension123
July 10th, 2012, 08:45 PM
Hmm.. nothing suggested seemed to work : ( .. Its kind of hard to explain, let me give it another shot. I am in the directory of vim.tiny /etc/fstab and this directory gives me the file of that command , so I am trying to reconfigure this by adding a new command to it but when I go all the way at the bottom right of this comman the cursor stops at the 0 and flashes but it wont let me go any more further to the right so that I can type in a new command. is there a way a can move the cursor beyond that point so that i can add another command? If its still confusing to understand I will post a picture up if necessary .. thanks guys!

ubudog
July 10th, 2012, 08:57 PM
Hmm.. nothing suggested seemed to work : ( .. Its kind of hard to explain, let me give it another shot. I am in the directory of vim.tiny /etc/fstab and this directory gives me the file of that command , so I am trying to reconfigure this by adding a new command to it but when I go all the way at the bottom right of this comman the cursor stops at the 0 and flashes but it wont let me go any more further to the right so that I can type in a new command. is there a way a can move the cursor beyond that point so that i can add another command? If its still confusing to understand I will post a picture up if necessary .. thanks guys!

Hmm... could you post a screenshot?

Cheesemill
July 10th, 2012, 09:18 PM
If you are using the vi application (which is what I think you are trying to say) then you need to press a to put vi into append mode.

http://www.cs.colostate.edu/helpdocs/vi.html

dimension123
July 10th, 2012, 09:43 PM
actually "a" worked thank you so much !!