The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
2k views

How to set syntax specific settings in my VIMRC?

I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...
5
votes
2answers
641 views

Enter insert mode indented in VIM

See above picture. My cursor is on line 23 at the start of the line in normal mode. What is a quick command to begin inserting at the correct indentation level?
2
votes
1answer
1k views

Different vim indentation settings for specific file type

Drupal provides some reference on how to setup VIM for Drupal development, but I want these indentation settings to be applied to only drupal related files instead of all files set expandtab set ...
0
votes
1answer
476 views

netbeans IDE doesn't indent my SQL code

I've been searching for a good IDE for awhile and it seems netbeans is great. Everything looks and works nice, but I can't get it to indent sql code (possibly others, but this is all I've noticed thus ...
32
votes
6answers
18k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
2
votes
4answers
1k views

Indentation for plain text bulleted lists in Vim

I often write text with a format like this in Vim— - talking point 1 - talking point 2 .... continue on point 2 Ideally, I would hope Vim could auto align it for me such as: - talking ...
6
votes
2answers
1k views

How do I make vim's autoindent not drop trailing spaces?

In some text editors (e.g. Kate, gedit), when auto indent is enabled, pressing return twice will leave a trailing whitespace (which I want): if (code) { .... ....| } While others cater to the ...
2
votes
3answers
1k views

OpenOffice: How to prevent text indentation on the very first paragraph?

My OpenOffice default paragraph style defines an indentation of 1.3em for the first line of every paragraph. Now, typographically more adequate would be, if the indentation would be 0 for the very ...
2
votes
5answers
5k views

Re-indent shell script

I have a large shell script that uses a mixture of spaces and tabs. I want to re-indent the whole file based on syntax, like Eclipse's Format. Is there a program (beautify ?) that will do this ? ...
3
votes
1answer
1k views

Indenting paragraphs in Microsoft Word

I would like to format a Microsoft Word document such that the first line of every paragraph is indented, with the exception of the first paragraph in a section which would not be indented. How can I ...