On Sun, Jun 03, 2001 at 06:17:46PM -0400, D-Man wrote:
> set sts=2 sw=2 ts=8 et
> This always inserts spaces (the 'et') so it will be correct regardless
> of what tool you use to view it. It also keeps tabs following Th
> Right Way (tm) -- 8 spaces. By setting 'sts' and 'sw' you get the
http://
will trillich wrote:
...
> one tab, indent one level. done. (why clutter up your source
> code with all those spaces?) and if you really go overboard
...
it's very simple. generally you want lot of peole to view and/or edit
the source code. as long as you use spaces only, it looks the same
every
On Mon, Jun 04, 2001 at 01:40:36PM -0500, will trillich wrote:
| if you really go overboard
| overindendinting a really deep algorithm, you can always
| redefine tabs to be 3-wide, or 2-wide. don't have to revisit all
| those extraneous spaces.
http://www.new.ox.ac.uk/~adam/computing/why_no_tabs.
will trillich <[EMAIL PROTECTED]> wrote:
>On Sun, Jun 03, 2001 at 06:17:46PM -0400, D-Man wrote:
>
>one tab, indent one level. done. (why clutter up your source
>code with all those spaces?) and if you really go overboard
>overindendinting a really deep algorithm, you can always
>redefine tabs to b
On Sun, Jun 03, 2001 at 11:06:09PM +0100, Colin Watson wrote:
| Matthias Richter <[EMAIL PROTECTED]> wrote:
| >Cameron Matheson wrote on Sat Jun 02, 2001 at 03:45:30PM:
| >> 2. How do I set the tab-spacing? I like to code w/ two-space tab-stops,
| >> but vim defaults to 8 :(
| >
| >set tabstop=2
|
Matthias Richter <[EMAIL PROTECTED]> wrote:
>Cameron Matheson wrote on Sat Jun 02, 2001 at 03:45:30PM:
>> 2. How do I set the tab-spacing? I like to code w/ two-space tab-stops,
>> but vim defaults to 8 :(
>
>set tabstop=2
>set expandtabs
>
>this expands tabs (which is a good idea IMHO) and sets s
Am 03. Jun, 2001 schwäzte Matthias Richter so:
> " if vim was compiled with +syntax enable syntax hightlighting by default
> if has("syntax")
> syntax on
set background=dark " if you're using black backgrounds as now seems to
" be standard with debian
> endif
cia
Cameron Matheson wrote on Sat Jun 02, 2001 at 03:45:30PM:
> 1. How do I enable c/c++ mode? My friend's computer automatically puts
> parenthesis where they're supposed to go, highlights syntax, etc.
in your .vimrc enter / uncomment:
" set indent to c indent if editing c-files
augroup C
aut
Hey,
I've decided to start using vim for small coding projects, because emacs
(although excellent) uses a lot of RAM, and is slow to load. Anyway I
have a few very basic questions about vim:
1. How do I enable c/c++ mode? My friend's computer automatically puts
parenthesis where they're suppose
9 matches
Mail list logo