LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vi question (https://www.linuxquestions.org/questions/linux-newbie-8/vi-question-230705/)

dominant 09-14-2004 04:32 AM

I would also like to ask how can i go to the end of a line( as if i was pressing the End button like textpad in Windows)

druuna 09-14-2004 04:52 AM

@dominant:

This questions is very easy to find if you used google (or whatever your search poison is). Shandak even gave the string (although a bit misspelled: vi quick reference).

Here's one link: http://www.uic.edu/depts/accc/softwa...ral/vi101.html

The short answer is: in command line mode press $

dominant 09-14-2004 05:51 AM

Thanks!

slackie1000 09-14-2004 01:05 PM

hi there,

if i may include something:

dominant, if you are using vim, try

Code:

vimtutor
and welcome to a new world! :D

regards

slackie1000

sirclif 09-14-2004 08:37 PM

command mode

to end of line: $
to beginning of line: 0

a handy mode in vim for copy paste stuff is -visual-
there are three types

in command mode type "v" to start highlighting at cursor position, then move to what the end of what you want to copy and type "y"
"V" highlights complete lines
"<ctrl>v" highlights blocks, good for deleting an entire column

Tinkster 09-14-2004 08:56 PM

Thread-hijacking is a nasty habit. Split.


All times are GMT -5. The time now is 02:51 PM.