Comments: pasting with indent
← Older revision
Revision as of 14:34, November 9, 2010
(One intermediate revision not shown)
Line 136:
Line 136:
*Is there anything helpful we can say about pasting with correct indents? If moving a few lines of code around, I would use normal mode, and would manually fix the indent.
We are pleased to invite you (Editors/Translators) to the Weekly-News Team Meeting.
Issue #93 of openSUSE Weekly News is now out!
In this week’s issue:
* openSUSE 11.2 on its way to become final – Release candidate available!
* Pavol Rusnak: RPM Summit at the openSUSE Conference 2009
Reverted edits by 122.169.250.229 (talk | block) to last version by 67.186.98.66
← Older revision
Revision as of 16:31, December 20, 2010
Line 35:
Line 35:
<pre>
<pre>
-
set shiftwidth=12
+
set shiftwidth=2
-
set tabstop=12
+
set tabstop=2
</pre>
</pre>
add links to plugins
← Older revision
Revision as of 16:31, November 29, 2010
Line 75:
Line 75:
endfunction
endfunction
</pre>
</pre>
+
+
==Related plugins==
+
*{{script|id=1840}}
+
*{{script|id=1936}}
+
*{{script|id=3227}}
==C
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.
Issue #95 of openSUSE Weekly News is now out!
In this week’s issue:
* openSUSE News: Announcing the Second openSUSE Board Election
* Sneak Peeks (Preview 11.2)
← Older revision
Revision as of 08:35, January 10, 2011
Line 43:
Line 43:
[[User:Maedox|Maedox]] 14:57, January 7, 2011 (UTC)
[[User:Maedox|Maedox]] 14:57, January 7, 2011 (UTC)
:I added a category and a "see also" section. Do these help? You can also try on vim_use. Possibly you just need to turn on filetype-based indent in your .[[vimrc]].
Is there a way implemented in Emacs to apply a function on a set of files? (Or, if not, do you know of such an extension?)
For example, if you have a project in a directory (say, scripts to compile and run, the source, and an XML database).