10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
Hi, Dummy here!
I have a file in my directory named "jest". I wonder why I couldn't save change by using Shift + z + z which I used to do. But it work fine with :wq! command.
The second thing is, after several time of accessing the file, I notice my directory appears many files named jest~,... (1 Reply)
Discussion started by: Xierian
1 Replies
3. Shell Programming and Scripting
i have a file that contains information such as this:
hostname.sky.net === 12.39.59.35
hostname.sky.net === 12.39.59.35
hostname.sky.net === 12.39.59.35
hostname-newyork.sky.net ==== 13.45.35.24
hostname-newyork.sky.net ==== 13.45.35.24... (3 Replies)
Discussion started by: SkySmart
3 Replies
4. 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
5. UNIX and Linux Applications
Hi People,
Does gvim latest versions support tabs. I would like to open different files in tabs rather than new windows or split windows. I would like to whether the current version supports it, if it doesn't then how to add such feature.
Thanks,
:) (2 Replies)
Discussion started by: rimser9
2 Replies
6. 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
7. Windows & DOS: Issues & Discussions
Have you used gVim editor on Windows (xp)? I am talking about the GUI version of vim that you can click the icon on desktop and the gVim editor pops-up and you can create/edit files.
Here's my problem: When I use vim editor on cygwin to create/edit files the file creation mask is set to a... (3 Replies)
Discussion started by: milhan
3 Replies
8. Red Hat
I have a linux Enterprise Server Version 3 (ES) . It does not have Gvim on it. Can someone tell me how I can get Gvim on it please. I have spent a fair bit of time researching this and have not figured it out. I am probably missing something simple.
Frank (1 Reply)
Discussion started by: frankkahle
1 Replies
9. 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
10. UNIX for Dummies Questions & Answers
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 (1 Reply)
Discussion started by: sierra_aar
1 Replies
VIMTUTOR(1) General Commands Manual VIMTUTOR(1)
NAME
vimtutor - the Vim tutor
SYNOPSIS
vimtutor [-g] [language]
DESCRIPTION
Vimtutor starts the Vim tutor. It copies the tutor file first, so that it can be modified without changing the original file.
The Vimtutor is useful for people that want to learn their first Vim commands.
The optional argument -g starts vimtutor with gvim rather than vim, if the GUI version of vim is available, or falls back to Vim if gvim is
not found.
The optional [language] argument is the two-letter name of a language, like "it" or "es". If the [language] argument is missing, the lan-
guage of the current locale will be used. If a tutor in this language is available, it will be used. Otherwise the English version will
be used.
Vim is always started in Vi compatible mode.
FILES
/usr/share/vim/vim80/tutor/tutor[.language]
The Vimtutor text file(s).
/usr/share/vim/vim80/tutor/tutor.vim
The Vim script used to copy the Vimtutor text file.
AUTHOR
The Vimtutor was originally written for Vi by Michael C. Pierce and Robert K. Ware, Colorado School of Mines using ideas supplied by
Charles Smith, Colorado State University. E-mail: bware@mines.colorado.edu.
It was modified for Vim by Bram Moolenaar. For the names of the translators see the tutor files.
SEE ALSO
vim(1)
2001 April 2 VIMTUTOR(1)