As a 10 Years of developers ,vim It's my favorite editor , But it is not directly provided in wechat developer tools vim Development model . After constant exploration , Finally, we found that wechat developer tools are very useful for VS Code Compatibility mode of plug-ins , So according to the document VS Code vim The plug-in is installed in the wechat developer tool . Sure enough , I'm familiar with vim The pattern is back , This article is for you to share .
stay VS Code install vim plug-in unit
First, in the VS Code Install in vim Simulator , As shown in the figure , I installed 1.18.5 edition . I'm using mac System , After installation , The plug-in will be stored in the user HOME In the catalog $HOME/.vscode/extensions/vscodevim.vim-1.18.5 in .
Install in wechat developer tool VS Code plug-in unit
1、 In the wechat developer tool, click “ Set up ”->” Extended settings ”
2、 Select... In the open window “ Editor custom extension ”, Because I've already installed , So the screenshot already contains vscode.vim plug-in unit
3、 Click on the “ Open the extended folder ”, The wechat developer plug-in directory will be opened , And all you have to do is put vscode Plug in copy past .
But because from Finder Hidden directory cannot be accessed directly in , First select... On the left HOME Catalog .
Use “ Go to folder ” Options , fill .vscode/extensions. take .vscode/extensions/vscodevim.vim-1.18.5 Copy it from the extended directory of wechat developer tools just opened .
4、 After restarting the wechat developer tool , You can be in “ Editor custom extension ” see vim plug-in unit , After starting the plug-in , Exit and restart again , Now the editor is ready to use vim The model .