You can do
vap, etc to select a paragraph. I want to be able to select/yank/delete the entire file.
One way to do this would be to have:
vnoremap af ggoG$ nnoremap yaf ggVGy nnoremap daf ggVGd
But is there a way to create a new 'text object selector; (like
p for paragraph,
w for word, etc
) but withf` for 'file? E.g. with omap?
dapselects current paragraph - I would like to effectively create a new 'text object selector' (or whatever you would call the
vap). I have reworded the title to hopefully be cleaer
omap af :normal Vaf<CR> vnoremap af ggoG$