Ctrl+d Page ahead 1/2 page at a (Frontpage web hosting)

Ctrl+d Page ahead 1/2 page at a time. Ctrl+u Page back 1/2 page at a time. G Go to the last line of the file. 1G Go to the first line of the file. (Instead of 1, you could use any number to go to that line number in the file.) Searching for text To search for the next occurrence of text in the file, use either the slash (/) or the question mark (?) character. Within the search, you can also use metacharacters. Here are some examples: /hello Searches forward for the word hello. ?goodbye Searches backwards for the word goodbye. /The*foot Searches forward for a line that has the word The in it and also, after that at some point, the word foot. ?[pP]rint Searches backward for either the word print or Print. Remember that case does matter in Linux, so using brackets is one way to search for words that could have different capitalization: The vi editor was originally based on the ex editor. That editor did not let you work in full-screen mode. However, it did enable you to run commands that let you find and change text on one or more lines at a time. When you type a colon and the cursor goes to the bottom of the screen, you are essentially in ex mode. Here is an example of some of those ex commands for searching for and changing text. (I chose the words Local and Remote to search for, but you can use any appropriate words.) :g/Local Searches for the word Local and prints every occurrence of that line from the file. (If there is more than a screen full, the output is piped to the more command.) :s/Local/Remote Substitutes the word Remote for the word Local on the current line. :g/Local/s//Remote Substitutes the first occurrence of the word Local on every line of the file with the word Remote. :g/Local/s//Remote/g Substitutes every occurrence of the word Local with the word Remote in the entire file.
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services

Leave a Reply