PDA

View Full Version : .vimrc equivalent in Kate



sdunatunga
May 11th, 2009, 04:50 AM
Hi all,

Right now I have this in my .vimrc:

set tabstop=8
set shiftwidth=8
set softtabstop=8
set expandtab
autocmd FileType make setlocal noexpandtab



I've figured out how to replicate almost all the settings in Kate, but its the last one that I'm having trouble with.

Basically, the project I'm working on requires all indentation to be in spaces (with a width of eight). However, anyone who's worked with makefiles knows how picky make is about tabs vs. spaces, so I make vim insert actual tabs if I'm working on a makefile.

I just want Kate to do the same thing; use spaces for indentation EXCEPT if I'm working on a makefile, in which case it should use hard tabs.

I'm not opposed to using a plugin or something, but I'd like it to be automatic on open/save, and I'd prefer to keep using Kate as opposed to switching editors.

Thanks,
sdunatunga