Change the color of line in buffer using Vim+Python -
i'm using vim python writing plugin, want know how can change color of line number based on vim.buffers
vim module , execute commands specific buffer. skimmed through documentation , tried find methods execute commands specific buffer couldn't find it.
any idea how can this?
in vim there no 1 solution... think simple solution.
function! testing_highlight() highlight mypattern ctermbg=red ctermfg=blue python << eof vim import * myline = 4 eval("matchadd('mypattern', '\%" + str(myline) + "l', 100)") eof endfunction
Comments
Post a Comment