ok ....
function! TabCursor()
let currentchar = getline('.')[col('.')-1]
if currentchar == ' '
highlight Cursor guibg=#0FF74A
else
highlight Cursor guibg=#7F97AA
endif
endfunction
au CursorMoved * :call TabCursor()
I discovered getline from this post
http://vim.1045645.n5.nabble.com/How-to-get-the-charactor-under-cursor-in-vimscript-td1181648.html
This will have to do , I like the fact that tabs are invisible, but I also
like knowing where i and a will go.
--
View this message in context: http://vim.1045645.n5.nabble.com/Possible-to-stretch-cursor-on-tab-character-tp5713419p5713426.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
--
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
No comments:
Post a Comment