06-19-2002
use :set tabstop=N
I know that you can use a setting called tabstop.
First, do a " :set all" to see the settings. Then do a " :set tabstop=N" where N is some number.
This will allow you to use the tab in edit mode to advance N spaces.
I know there is a way to set hot keys for certain actions or words but can't remember right now. I know it has been addressed before on this site.
There is a pamphlet and a book as well about VI from O'Reilly which are both very good.
Here is one link that may help as well.
http://www.thomer.com/vi/vi.html
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know this is not a unix question but I also know that many of you use vim editor every day. So hoping to get some help, here it goes:
How can I change my vim config file so that the indentations while c programming take 4 spaces instead of 8?
I want the change to apply any further uses of... (4 Replies)
Discussion started by: Virtuosso
4 Replies
2. UNIX for Dummies Questions & Answers
I recently coded a typical ftp script looking like
ftp -n $hostname <<
user $user $pass
<commands..>
quit
!
I know the code fails when you try to indent it like:
ftp $hostname <<
user $user $pass
<commands..>
quit
!
Just for the sake of neat code, is there a... (4 Replies)
Discussion started by: yongho
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How do I indent 4 spaces for standard UNIX commands like ls -ltr (or grep)?
For example, I want ls -ltra to output as:
<<spaces here>>-rw-r----- 1 a345696 rtkdevel 455 Dec 6 14:52 file1
<<spaces here>>-rw-r----- 1 a345696 rtkdevel 455 Dec 6 14:52 file2
<<spaces... (2 Replies)
Discussion started by: ssray23
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I'm working on a big project and all the CPP and header files are in mess with respect to indentation. I would like to indent whole file(s) at once (like ctrl-shift-f in eclipse). Is there anybody who knows how to do that in vi/vim?
thanks (2 Replies)
Discussion started by: SaTYR
2 Replies
5. Shell Programming and Scripting
Hi,
i need replace the slash (/) with a newline (\n) and a tab (\t).
With 'find -type f' in a folder i got this output:
./1999/01/file1
./1999/01/file2
./1999/02/file1
./2000/04/file1
./2000/04/file2
./2000/04/file3
./2000/04/file4
./2000/06/file1
./2000/06/file2
./2000/06/file3... (8 Replies)
Discussion started by: Tonda
8 Replies
6. Shell Programming and Scripting
Every now and then I have to indent the lines in my script to 4 space characters.
I generally do it line by line.
Is there an automated command in vi using which I can indent some set of lines to desired number of space characters in one go. (2 Replies)
Discussion started by: paragkalra
2 Replies
7. Shell Programming and Scripting
A space, a tab? Just currious what, why, you indent in x way?
Fwiw, I use vi, so kind'a currious how you vi folks approach indentation when writing code (eg python).
Disclosure, I'm just learning python and have never seen a language use indentation so formally (I like it too:) ). I just... (7 Replies)
Discussion started by: sas
7 Replies
8. Shell Programming and Scripting
hello everyone
how to parse excel file with indents ?
i was trying perl and there is Spreadsheet::ParseExcel::Format but i have no idea how to make it work
docs says $format->{Indent} but it's not working
also i was trying xls2csv and xlhtml but they don't care about indents at all :(
i... (1 Reply)
Discussion started by: tip78
1 Replies
LEARN ABOUT DEBIAN
indent
FBB::Indent(3bobcat) Text Indentation FBB::Indent(3bobcat)
NAME
FBB::Indent - Configurable text indentation
SYNOPSIS
#include <bobcat/indent>
DESCRIPTION
FBB::Indent and its various manipulators offer text-indentation. Text inserted into streams is indented over a fully configurable amount
using a set of manipulators and (static) member functions.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM
-
STATIC MEMBER FUNCTIONS
o void clear():
Resets the indentation level to zero. The indent manipulator will have no visible effect after calling this member.
o void dec():
Reduces the indentation level by the current increment (4 by default). The indentation level is never reduces to a negative value.
o void inc():
Increments the indentation level by the current increment (4 by default).
o void setInc(size_t inc):
Defines the increment value used with the dec and inc members.
o void setWidth(size_t width):
Defines the indentation to a specific value width.
MANIPULATORS
The following manipulators (which are not part of the FBB::Indent, class, but are defined in the FBB namespace) can be inserted into the
FBB::Indent object:
o FBB::decindent:
This manipulator will first call Indent::dec. Then FBB::indent is called. The effect will be that the indentation level is reduced
just before the indentation is inserted.
o FBB::incindent:
This manipulator will first call Indent::inc. Then FBB::indent is called. The effect will be that the indentation level is incre-
mented just before the indentation is inserted.
o FBB::indent:
This manipulator will insert the currently defined number of indentation blanks into the ostream for which it it called.
o FBB::indentdec:
This manipulator will first call FBB::indent, Then Indent::dec is called. The effect will be that the indentation is inserted first,
immediately followed by a reduction of the indentation level.
o FBB::indentinc:
This manipulator will first call FBB::indent, Then Indent::inc is called. The effect will be that the indentation is inserted first,
immediately followed by a increment of the indentation level.
o FBB::nlindent:
This manipulator will insert a newline character (
). Then FBB::indent is called, indenting the next line over the currently
defined number of blanks.
EXAMPLE
using namespace std;
using namespace FBB;
int main()
{
cout << indentinc << "Not indented" <<
nlindent << "Indenting with 4 blanks
";
Indent::clear();
cout << "No indentation
";
}
FILES
bobcat/indent - defines the class interface
SEE ALSO
bobcat(7)
BUGS
None Reported.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::Indent(3bobcat)