Open the .doc file in Word in Vimfiler

Asked 2 years ago, Updated 2 years ago, 59 views

Environment: Mac (El Capitan)

In order to open the .doc file in Word in Vimfiler, we set .vmrc to link.

call vimfiler#set_execute_file('doc, docx', '/Applications/Microsoft Word.app')

On the other hand, if you press a after selecting a file in Vimfiler, you will not find an option that corresponds to the action list.(For example, if you select open from the action list, Word will not start.)

Please let me know how I can open the .doc file in Word.

macos vim

2022-09-30 19:16

2 Answers

I am the author of vimfiler.

vimfiler#set_execute_list(), but as you can see from the vimfiler documentation, if you don't use the <Plug>(vimfiler_execute_vimfiler_associated) mapping, the effect is
No, it does not appear in the action list if you press a because there is no special action.
This mapping has not been mapped anywhere due to historical reasons, so please map it to a key somewhere to use it.

<Plug>(vimfiler_execute_system_associated), but this is not vimfiler#set_execute_list() but refers to system associations.
It works very differently.

In this case, the doc file happened to be associated with WORD, and the behavior is the same, so you must have misunderstood.


2022-09-30 19:16

Resolved.

Press a after selecting a file in Vimfiler to display the action list, but select x among them to launch Word and display the file.

x<Plug>(vimfiler_execute_system_associated)


2022-09-30 19:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.