Linux learning (vim)

1. Download vim

  In a terminal directly vim, there will be prompted to download, then follow the prompts to download it

2. Create a file

  Enter "vim file name", you can enter and edit files created page (eg: vim one.txt)

3. Exit

  Press the ESC key and do the following ->

  Save and exit ": wq"

  Exit without saving ":! Q"

4. After entering the file operation (press the ESC key operation may then be performed below)

  (1). Edit "i" or "s", can edit a

  (2) Move the cursor "line number gg", (line number gg, reaches the desired position can be reached)

  (3). ESC press into the command line, according to H, J, K, L, W, B may be cursor movement

    H: Left

    J: Up

    K: down

    L: Right

    W: move right away once a word

    B: a moving distance of a word to the left

  (4) Copy Operation

    Press the ESC into the command line, then the input v, according to H, J, K, L to move the cursor to select

    Y then copy and paste press p

to be continued......

 

Guess you like

Origin www.cnblogs.com/mu-ran-2501590635/p/11922942.html