The VSCode editor is an all-in-one editor with a very rich set of plug-ins. Currently, I have written markdown files, C programs, python codes, etc. on VSCode editor. Recently I learned that VSCode editor actually supports vim. So, I couldn't wait to install the vim plug-in on VSCode. Nowadays, I feel that the VSCode editor with the vim plug-in installed is the most powerful compiler in the universe, bar none!
1. Install vim in VSCode
It is very simple to install vim in VSCode. Just search for the keyword vim directly in the VSCode extension. After finding the plug-in, just click [install]. The following are some basic syntax of vim, and more complex syntax. You can study further after you are familiar with these basic syntax.
2. Basic syntax
2.1 Paste and copy
Because vim and the system do not use the same clipboard, ctrl c and ctrl v cannot be used directly. Further settings are required.
Under vscode, we only need to set the relevant configuration of vim. The details are as follows:
Set in [Preferences].
"vim.useSystemClipboard": true
After making the above settings. You can use the system clipboard.
Specifically:
2.2 Moving the cursor
One of the best features of vim is the ability to control the cursor accurately and quickly. The specific movement keys are as follows:
2.3 Select function
The selected function is mainly used to cut, copy and paste
Supplement
There is a god-like plug-in in Google Chrome (chrome)viminum. This plug-in can greatly improve the efficiency of web browsing. It introduces vim syntax into web browsing, so that users no longer need a mouse to browse pages efficiently. Highly recommend this plugin!
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of Tutorial on the use of vim plug-in in vscode. For more information, please follow other related articles on the PHP Chinese website!

VisualStudio is suitable for large-scale projects and enterprise-level application development, while VSCode is suitable for rapid development and multilingual support. 1. VisualStudio provides a comprehensive IDE environment and supports Microsoft technology stack. 2.VSCode is a lightweight editor that emphasizes flexibility and scalability, and supports cross-platform.

Yes, some versions of VisualStudio are free. Specifically, VisualStudioCommunityEdition is free for individual developers, open source projects, academic research, and small organizations. However, there are also paid versions such as VisualStudioProfessional and Enterprise, suitable for large teams and enterprises, providing additional features.

Cross-platform development with VisualStudio is feasible, and by supporting frameworks like .NETCore and Xamarin, developers can write code at once and run on multiple operating systems. 1) Create .NETCore projects and use their cross-platform capabilities, 2) Use Xamarin for mobile application development, 3) Use asynchronous programming and code reuse to optimize performance to ensure efficient operation and maintainability of applications.

The ways to format JSON in VS Code are: 1. Use shortcut keys (Windows/Linux: Ctrl Shift I; macOS: Cmd Shift I); 2. Go through the menu ("Edit" > "Format Document"); 3. Install JSON formatter extensions (such as Prettier); 4. Format manually (use shortcut keys to indent/extract blocks or add braces and semicolons); 5. Use external tools (such as JSONLint and JSON Formatter).

Compiling code in VSCode is divided into 5 steps: Install the C extension; create the "main.cpp" file in the project folder; configure the compiler (such as MinGW); compile the code with the shortcut key ("Ctrl Shift B") or the "Build" button; run the compiled program with the shortcut key ("F5") or the "Run" button.

To install Visual Studio Code, please follow the following steps: Visit the official website https://code.visualstudio.com/; download the installer according to the operating system; run the installer; accept the license agreement and select the installation path; VSCode will start automatically after the installation is completed.

The methods to enlarge fonts in Visual Studio Code are: open the settings panel (Ctrl, or Cmd,). Search and adjust "Font Size". Choose "Font Family" with the right size. Install or select a theme that provides the right size. Use keyboard shortcuts (Ctrl or Cmd) to enlarge the font.

How to connect to a remote server through VSCode? Install Remote - SSH Extended Configuration SSH Create a Connection in VSCode Enter connection information: Host, Username, Port, SSH Key Double-click the saved connection in Remote Explorer


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.