Text Editing: Difference between revisions
No edit summary |
Ovipowumon (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
---- | |||
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | |||
---- | |||
=[http://ezapazuhem.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]= | |||
---- | |||
=[http://ezapazuhem.co.cc CLICK HERE]= | |||
---- | |||
</div> | |||
== Tab width == | == Tab width == | ||
Revision as of 03:37, 24 November 2010
Tab width
Code MUST be indented with tabs. Anyone who tells you otherwise is simply foolish or misinformed. For those who don't like massive indentations, that's why tabs are magical. Below you can set your tab width for a few of the worthy text editors (4 columns in these examples). Any text editor that doesn't let you specify tab widths isn't worthy of the title. No further discussion is necessary.
nano
~/.nanorc:
set tabsize 4
nvi
~/.nexrc
set ts=4
vim
~/.exrc
set tabstop=2
general vi notes
Berkeley Vi Customization
The clone of Vi included in the FreeBSD base system is Berkeley Vi (nvi). The following can be added to ~/.nexrc to enable auto-indentation and automatic line wrapping:
set autoindent set wraplen=78
ex
Execute command between markers:
:'a,'b!pbcopy
Find and replace between line numbers:
- x,ys/match/replace/g
In x or y above . represents the current line, $ the last line. Markers may be prefixed with '