#vim - Thu 22 Feb 2007 between 03:01 and 06:39

NY Lost Funds



manuhackso setting sw=4 and sts=4 is enough?
tpopewell
and 'et'
et==expandtab
i.e., always use spaces
manuhackthen if I edit the file not created by other, it will show different indents
and how about the program in python?
tpopeif you never use tabs, you never have to worry about it
python is happy to use spaces as long as you are consistent
yes, you have to deal without people who use tabs
try not to be one of those other people
manuhackso use point 2 of :h 'ts'?
tpopeyes
I usually just leave ts at 8
which is the most common value you'll run into when editing other people's code
manuhackbut 4 seems to look better
tpopefor 'sw' and 'sts' yes
but since tabs are never inserted, 'ts' is only relevant when editing code by other people
manuhackso maybe set sw=sts=ts=4, set et?
tpopeyes
that's a fine setting
manuhacktpope, so this will work for python program as well right?
ZaoThe size of the indents doesn't matter, just that they're there.
It's not like it's a Makefile :)
manuhackZao, it wont work with Makefile?
ZaoIt might. I play it safe and disable all kinds of retabbing when editing makefiles due to their weird tab rules.
manuhackit seems to work fine
mOolighthi, how do one specify fenc in modelines?
"vim: fenc=utf-8" works like loading the file in encoding X and :set fenc=utf-8, which will do a conversion
awad_damn
i need to replace all spaces with a new line
trying to do a %s/ /Ctrl-v really messes stuff up
ctrl-v-m isn't it?
ah \r
thanks :)
dindinxyou're welcome
Ironhandhow would I go about adding syntax hilighting for a certain filetype so that any amount of leading spaces on a line get coloured red? (if at all possible from my user config)
albrechehi
i've got g/CodeException/z#.3 but can't manage to write it to a new buffer , anyone knows ?
shlalbreche: not sure but check :help :redir

Page: 3 10 17 24 

IrcArchive

NY Lost Funds