06-19-2002
Auto indent in vi
Hi,
I use vi for my text editing. Is there a way to use smart indentation?
that is when adding a '{' or '}' that the editor will jump and advance, or any other thing like that?
thanks
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
katedj
KATEDJ(1) libkate KATEDJ(1)
NAME
KateDJ - edits and remixes Kate streams in Ogg
SYNOPSIS
KateDJ [-hV]
DESCRIPTION
KateDJ allows extracting Kate tracks embedded in an Ogg stream, editing them, and rebuilding the Ogg stream after the Kate tracks are modi-
fied.
KateDJ is a simple GUI program, so usage is UI driven, rather than command line driven.
This is a walkthrough of the usual program flow:
Select 'Load Ogg stream' to select the Ogg file you want to remix.
Select 'Demux file' to extract Kate streams from this file to a temporary directory. Depending on the size of the Ogg file, that step may
take a while. A message will then tell you where the temporary files have been placed. All Kate streams will be decoded to a text
description and placed in this temporary directory, and a list of them, along with their serial number, language, and category, will be
displayed in a list.
Those files may then be edited at will, either in the embedded editor by double clicking on the stream in the supplied list, or with your
favorite text editor. Any modification may be done, including removing some of those files altogether, or even adding some. However, in
order to be recognized, any new files must be named according to the same naming convention as the existing ones.
Once the desired modifications are done, select 'Remux file from parts' to attempt to recreate the Ogg stream. If any error occurs (eg,
syntax error in the Kate files), a message will inform you. Once the errors are fixed, select 'Remux file from parts' again, until the
operation succeeds.
The embedded editor can test a modified stream, so it more convenient for quick modifications, while your editor of choice may be more pow-
erful for complex modification.
OPTIONS
-h Show command line help.
-V Show version information.
SEE ALSO
katedec(1), kateenc(1), katalyzer(1)
libkate 0.4.1 18 august 2009 KATEDJ(1)