Posts tagged with ‘vi editor’

How to move cursor to end of file in vi editor

advertisement

linux, macThe shortcut that move cursor to end of the file in vi editor save my life. I need to add a line at the bottom of a large sql file and moving the cursor to end of the file is a problem if i keep pressing “Down” arrow. With the shortcut to move the cursor to end of the file it save me a lot of time!

To move cursor to end of file in vi editor, follow the steps below:-

Continue reading How to move cursor to end of file in vi editor »

How to move cursor to end of line in vi editor

advertisement

linux, macIt’s very slow to move the cursor to the end of a long line in vi editor. But if you know the shortcut key, move cursor to end of the line is just a key press. Holding the right button and wait the cursor move to the end of the line is a slow method, wat we need is fast and efficient.

To move cursor to the end of a line, follow the steps below:-

Continue reading How to move cursor to end of line in vi editor »