In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to use Pycharm as a Vim editor". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use Pycharm as an Vim editor.
1. Theme
If you are a fan of Vim and do not plan to use other types of editors, then this tutorial will be more suitable for you. Here is a detailed description of how to download, install, and use Vim with the help of the Pycharm IdeaVim plug-in. For more information about Python programming and the use of Vim, see official website, Vim documentation.
2. Preparatory work
Install version 2.7 or later of Pycharm
3. Download and install the IdeaVim plug-in
Click the Settings button in the main toolbar of Pycharm and select the Plugins page under the IDE Settings interface. All plug-ins installed on the current platform will be displayed. However, IdeaVim is not among them, so you need to click the Browse JetBrains plugins button and type vim in the search bar to find the corresponding plug-in:
Install the plug-in:
After restarting Pycharm, you can use:
4. Changes after restart
Vim and Pycharm are text editing software based on keyboard input, and the shortcut key settings of the response IdeaVim plug-in are likely to conflict with the shortcut key settings of Pycharm, which is why Pycharm needs to recreate a Vim version of the shortcut key scheme according to the existing shortcut key configuration.
When Pycharm restarts, you will see the Vim Keymap settings dialog box, where you will select a shortcut key configuration scheme as the shortcut key scheme in the current Vim environment:
We choose the default configuration here, click OK, and you can see that Pycharm has created a new shortcut configuration:
Next, take a look at the shortcut key settings interface again. Click the Settings button to enter the Settings dialog box and click the Keymap page under IDE Settings. A scheme name named Vim appears in the corresponding shortcut key configuration drop-down list, which defines some default shortcut key combinations, such as Ctrl+V for paste, and so on:
However, there is a more important Pycharm interface setting, by clicking Tools in the main toolbar and selecting the Vim Emulator command:
When you install the IdeaVim plug-in, this command is selected by default (preceded by a check mark), which means that the current Vim emulator is available. If you uncheck it, Pycharm will return to the normal shortcut key; if you check it again, Pycharm will reload the Vim version of the shortcut key configuration:
5. Edit mode
Now we can edit in Vim mode, and our input cursor is a small black block, which means we are currently in Normal mode:
If you want to change to Insert mode, press the I key and the cursor will change to a vertical bar:
In this mode, rice can enter new code or modify the current code. Of course, you can also choose other modes, such as pressing r to enter Replace input mode.
By the way, in order to quickly enter the Vim simulation, you can check the relevant prompt message in the status bar: Status bar
Press the ESC key to return to normal editing mode.
IdeaVim has many VIm editor features, such as abbreviations, shortcut key combinations, various commands, and so on.
At this point, I believe you have a deeper understanding of "how to use Pycharm as an Vim editor". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.