Home Register Members List Search Today's Posts Mark Forums Read

Go Back   TechFuels Forum > Technology Jargons - What is ....? > Everything Else

Reply
 
LinkBack Thread Tools
Devin Lee
Member
 

Devin Lee is offline  
Old 07-01-2009, 01:39 PM
  #1 (permalink)
Moving the cursor in a file

Vim enables moving the cursor to different positions by accepting different references. For programming tasks, often compile/runtime errors occur and compiler return errors are noticed with line numbers. In such cases, we need to move the cursor immediately to the error line referenced by the line number. To move to a line referenced by a line number, use: line_number. For example, to move to line 50 use :

Essentially, we can also perform some actions using the corresponding commands:
•Move cursor to beginning of line - 0
•Move cursor to end of line - $
•Move cursor to beginning of next line - +
•Move cursor to end of file - G
Scrolling page by page is very useful while dealing with large files. To do so, use Ctrl+f for forward scroll and Ctrl+b for backward scroll.

Name:  Moving the cursor in a file.jpg
Views: 67
Size:  61.0 KB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with cursor harddisk6564 Everything Else 2 05-04-2009 12:07 PM
Cursor Dhani Kalli Windows XP 2 05-02-2009 11:32 AM
Moving itunes sheldon Everything Else 1 03-17-2009 11:10 AM
Moving a folder CALANTHA General Internet Terms 0 11-24-2008 01:23 PM
Moving a File Macavi6987 General Internet Terms 0 11-24-2008 12:12 PM


All times are GMT +1. The time now is 02:39 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright Techfuels


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143