Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.
25% off Hosting at HostGator.com:
Use Code techbits25



Showing: 1-11 of 11  
Questions:
How do I set Tab stops in VI?
To change tab stops in vi, just do the following in vi: :set ts=3 Sets Tabs to 3 spaces.  This is useful...
rating 07/03/2009 Comments: 1
How can I turn on line numbering in Vi?
Sometimes it is useful to view line numbers when editing a file, and especially when coding.  To turn on this...
Not rated 07/02/2009 Comments: 0
How can I jump to a line in the vi editor?
Usually when running a script that has syntax or parsing errors, a line number is given at or near the...
Not rated 07/02/2009 Comments: 0
How can I remove DOS linebreaks (^M) from my files?
Oh, the dreaded ^M - these usually occur when uploading files from a windows system, using ascii mode.  Some Windows...
rating 07/03/2009 Comments: 0
How can I remove leading whitespace in all lines in a file using vi?
Sometimes, when pasting copy into vi, it adds lots of tabs or spaces at the beginning of each line.  This...
rating 07/03/2009 Comments: 0
How can I delete a large chunk of text using vi?
Sometimes your finger gets tired of using the "x" key in vi, which only removes one character at a time. ...
Not rated 07/01/2009 Comments: 0
How can I undo and redo changes in vi?
Using vi, it's very easy to undo any number of changes you have made.  Make sure you are not editing...
Not rated 02/07/2012 Comments: 0
How can I search in the vi editor?
To search down through the document, use /[search string] So you type "slash" and then the text you want. Hit the...
Not rated 02/07/2012 Comments: 0
How can I set a mark to remember my spot in vi?
You can set 'marks' in vi to help you find a spot quickly.  To use this feature, just do this: m{A-z0-9} (This...
Not rated 02/07/2012 Comments: 0
How can I 'undo' an 'Undo' in VI?
If you hit the "u" key one to many times in VI, thus undoing a change you really wanted to...
Not rated 02/07/2012 Comments: 0
How can I save part of a file to a new file in vi?
Sometimes it's nice to be able to pull out a piece of code or text from a file and save...
Not rated 02/07/2012 Comments: 0



Powered by KnowledgebasePublisher 1.1
Host Gator
Content provided by Roberts WebForge, Inc.