GST and vim

The GNU coding standards mandate that tabs be always 8 spaces.

On the other hand, 8 spaces indentation just looks too wide for Smalltalk.

So files are indented with 4 spaces but doing that with combinations of tabs and spaces.
Emacs can automatically tabify lines, and the Smalltalk mode for Emacs
produces the right indentation.

You can also force VIM to produce the right indentation by adding the following function in your .vimrc :

au FileType st call FT_st()

function FT_st()
        set tabstop=8
        set softtabstop=4
        set shiftwidth=4
        set noexpandtab
        retab 8
endfunction

Syndicate content

User login