I use four spaces for indent. I would like to replace the indentation with some UTF-8 chars.
What I have:
1.
def foo(bar):
for jaffa in bar:
print jaffa
2.
var foo = function(bar){
bar.forEach(function(jaffa){
console.log(jaffa);
});
}
What I want:
1.
def foo(bar):
►for jaffa in bar:
►►print jaffa
2.
var foo = function(bar){
►bar.forEach(function(jaffa){
►►console.log(jaffa);
►});
}
I tried using conceal myself, but I couldn't come up with a pattern to match the indentation spaces.
How would I accomplish changing the indentation to UTF-8 chars using vim conceal as described in the examples?
@Muru gave the answer for this question. But what if I want to conceal the last 'block' of the indentation spaces differently than the ones before it? Example:
var foo = function(bar){
►bar.forEach(function(jaffa){
◼►console.log(jaffa);
►});
}