On 2014–01–25 Bee wrote: > > This statusline uses %c which operates on bytes instead of > > characters. In my example it displays “5” if the cursor is placed > > on the digit “5”, which is correct. But if you move the cursor > > down one line (the column stays the same, it's still five) it > > displays column “9” which is not what I want. The displayed > > column should be “5” if positioned on the “µ”. > > In your example it looks like you used a tab char and 'set ts=8' > to move the '5' over. If 'set ts=8' then the '5' IS at column 9, > as it would be if you used spaces.
I want to count a tab only once, since it is one character. This is what the %c flag almost does. %c displays “5-9”, five bytes, column nine if tabs are being expanded. I'd like to have a simple character count without dealing with tab expansion, so the “µ” would be character five. Marco -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
