I have defined a python function in my .vimrc to use it on vim buffers in visual mode. The function has been vnoremap-ed to
.vimrc
vim
vnoremap