I have a python script called showdate.py which I want to map to
I do this by:
map <F2> :r! showdate.py
in my _gvimrc file.
The problem is that I have to press enter when I press F2 to execute instead of executing immediately. Any ideas?
Thanks!
在映射末尾添加换行符:
map <F2> :r! showdate.py<CR>
I'm not sure if this will work in your case but I remember using '' to simulate a carriage return. So your line will look like:
map <F2> :r! showdate.py <CR>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.