Tag:vim

  • Linux VIM delete, copy, paste shortcuts

    Time:2021-12-18

    delete X = lowercase x means to delete a character backward, that is, to delete the character where the cursor is locatedNx ^ n represents a number, which means to delete each character backward. For example, 10x represents to delete the next 10 characters including the cursorX  capitalized x means to delete a character […]

  • Linux VIM cursor movement shortcut

    Time:2021-12-13

    Cursor movement H or left arrow: move the cursor one character to the left, and numbers and letters are used together. 5h means moving five characters to the left, and so on J or right arrow: move the cursor down one characterK or up arrow: move the cursor up one characterL or down arrow: move […]

  • Linux VIM find and replace operations and shortcut keys

    Time:2021-12-12

    lookup /CSDN} looks down a string named CSDN? CSDN} looks up a string named CSDNN ^ n is an English letter, which means to continue to find the previous search operation(Use in conjunction with the above operation)N ^ n is an English letter, which means to continue to find the operation of the previous search […]

  • How to use VIM to build Lua development environment

    Time:2021-9-30

    preface Spacevim is a modular VIM ide. Support for Lua mainly depends on lang#lua module and other related modules. This article mainly introduces how to use spacevim to build Lua’s development environment, focusing on the skills related to Lua development. Before reading this article, let’s take a look at the basic development environment built by […]

  • How to install VIM editing tool in CentOS system

    Time:2021-7-12

    After installing CentOS, the VI editor is installed by default, but VIM is not installed, so when we use VIM test.txt, we will prompt: VIM command not found… This means that our linux environment does not have the VIM editor installed. Let’s talk about how to install this editor The VIM editor requires three packages […]

  • How to use VIM to set up network on CentOS so that CentOS can connect to the Internet

    Time:2021-6-4

    After installing the CentOS system, it is necessary to set up the network related to the CentOS system, so that CentOS can be connected to the network. The following small series introduces the methods of CentOS using VIM to manually configure the network related, which will involve the use of some commands. If you are […]

  • Linux VIM edit command mode

    Time:2021-5-7

    VI (VIM) is a very common editor on Linux. Many Linux distributions install VI (VIM) by default. VI (VIM) commands are various, but if used flexibly, it will greatly improve efficiency. VI is the abbreviation of “visual interface” and VIM is VI improved. In general system management and maintenance, VI is enough. If you want […]

  • Four modes of vim and mode switching

    Time:2021-3-12

    VIM is different from Notepad or word. You can’t enter text as soon as you open it. At this time, it is in normal mode. There are four modes of vim · normal mode · insert mode · command mode · visual mode Normal mode After starting VIM, it is in normal mode by default. […]

  • The difference between VI and vim and the detailed explanation of command

    Time:2021-3-5

    VI has three modes: insert mode, command mode and low line mode. Insert mode:In this mode, you can enter characters and press ESC to return to command mode. Command mode:You can move the cursor, delete characters, etc. Low row mode:It can save files, exit VI, set VI, search and other functions (low line mode can […]

  • How to make VIM our artifact (summary)

    Time:2021-2-11

    VIM is an ancient artifact, which may be difficult for students who have just come into contact with it. This article mainly leads you to get started quickly and continue to share some popular VIM plugins. Interested students can also refer to the to VIM TMUX Zsh warehouse to continue to study TMUX and Zsh. […]

  • Multi window using skills of vim under Linux system

    Time:2020-12-5

    Using the VSP command:For example, there are files in a folder: Copy code The code is as follows: vector.cc, substr.cc 1. Use the VIM command to open any file: vim vector.cc Open the first file. As shown in the figure below: 2. Press “ESC” key + “:” and enter Copy code The code is as […]

  • Summary of new usage of VI (VIM) in Linux

    Time:2020-11-30

    I have been using VI editor for several years, but I still haven’t used some practical usages. After listening to the introduction of Linux in Python video, I still learned some new tricks 1. Set Nu displays the line number 2. GG ——– to the beginning of the file 3. G — to the end […]