vim how to set good indet without syntax highlighting? -


i have mapped f8 :set syntax=off<cr>.

i editing without syntax highlighting, if switch syntax off, indent rules switched off. how can have indent without syntax highlighting?

if vim autoindent ok , can

set autoindent 

after "syntax off".

on other hand, if use own index function. try run following command, may help.

set indentexpr=<your function> 

or check indent function by:

set indentexpr? 

and reset result after "syntax off"


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -