# Map a shell command to execute it into vim

I intend to map, in my ~/vimrc documents, the key <F4> in vim in order to execute the indent program on the documents which I'm presently editing and enhancing. Just how can I do it? If I do this, the compatibility with vi will be damaged?

Many thanks beforehand.

1
2022-07-25 20:42:17
Source Share