VIM commonly used commands (it is suitable for entry)

2011-06-20  来源:本站原创  分类:OS  人气:58 

0 into the VIM

vim test.txt

1 out of order

: Q quit

: W Save

: W + file name saved as the specified file

: W! + file name saved as the specified file, if the file already exists, overwrite the existing file

: Wq save and exit

: Q! exit without saving

: Wq! Force save and exit

: ZZ Save and exit Vi

2 switch command mode and edit mode

i

3 Move command (command mode and edit mode are available)

Directly by the four arrow keys keyboard

Like a professional can be H (left) J (under) K (on) L (right)

3 Delete command

: Ldd or: delete the cursor to delete the line, the next line automatically move

: LDD the cursor to delete the line, the next line does not move

: L to delete a character

: Lx Delete cursor character

: LX delete the character before the cursor

: L to delete n characters

: Lnx remove the character from the cursor n characters

: LnX removed from the starting line first n characters

: L to delete from the cursor at the beginning to the end of all our characters

4 Copy and Paste commands

lyank and put corresponding to the Copy and Paste in Windows

: Lyy duplicate the current line

: Lnyy copy multi-line

: Lyw copy a word

: Lp paste after cursor

: LP paste before the cursor

: L multi-line copy, paste in window mode only

相关文章
  • VIM commonly used commands (it is suitable for entry) 2011-06-20

    0 into the VIM vim test.txt 1 out of order : Q quit : W Save : W + file name saved as the specified file : W! + file name saved as the specified file, if the file already exists, overwrite the existing file : Wq save and exit : Q! exit without saving

  • vim commonly used commands 2010-10-29

    vim (vi) is Linux, a powerful editing tool. vim has 3 main modes: 1.normal mode: When entering vim, the default mode is the normal mode. In this mode, you can not enter any text, but can use the key commands to perform many operations command, such a

  • VI / VIM commonly used commands 2011-07-19

    Wrote Vi is the "Visual interface" for short, it's position on Linux seems to Edit on the same program on the Dos. It can perform the output, delete, find, replace, block operations, and many other text operations, and users can customize their

  • SSH commonly used commands Daquan [transfer] 2010-12-10

    SSH commonly used commands Daquan rm-rf mydir / * mydir directory to delete * / cd mydir / * mydir directory entry * / cd - / * Top level directory * / cd ~ / * back to the root directory * / mv tools tool / * the tools directory renamed tool * / ln-

  • linux debian commonly used commands 2010-12-01

    Debian (Ubuntu) commonly used commands Daquan [records] Submitted by pirate on 2007, August 19, 8:57 AM. Linux learning This article describes the version from ubuntu 5.10 after the system on behalf of the command parameters, dapper, edgy, and 7.04 v

  • LINUX commonly used commands (reproduced) 2011-06-17

    LINUX commonly used commands (basic) 1. Man you are familiar or not familiar with the command help to explain eg: man ls ls can view the usage of related note: press q or ctrl + c to exit, in linux you can use ctrl + c to terminate the current run. 2

  • Ubuntu's rookie commonly used commands 2011-08-24

    [The rookie is only a collection of commonly used commands Ubuntu's rookie , novice to facilitate the entry, HX type creatures do not read, so as not to be mine to lol] All commands in alphabetical order only on the most commonly used parameters, suc

  • MYSQL database, a collection of commonly used commands 2010-05-05

    Mysql database is a multi-user, multi-threaded relational database is a client / server architecture of the application. It is the personal users and business users is free. Mysql database has the following advantages: 1. Simultaneous access to an un

  • Ubuntu Linux Operating System details commonly used commands 2010-05-24

    Ubuntu Linux Operating System details commonly used commands Udo apt - get install software, install the software command name sudo nautilus to open the file (with root permissions) su root switch to the "root" ls list the current directory file

  • Maven2 commonly used commands 2010-06-17

    from: http://guooo.javaeye.com/blog/280604 Maven2 commonly used commands Maven2 running command: mvn, Common commands are: mvn archetype: create: create a Maven project mvn compile: compile the source code mvn test-compile: compile the test code mvn

  • Detailed Screen commonly used commands 2010-09-23

    screen for multiple window management procedures. 1. Installation: rmp-ivh screen-4.0.2-5 2. Start: screen The default screen will start a process to read / etc / scrennrc configuration file, ~ /. Screenrc configuration file (if any) 3.screen can bri

  • Git commonly used commands 2010-10-12

    The first step: install the software on this machine ----------------------------------- (1) sudo apt-get install git-core curl The second step, identify themselves to the git -------------------------- $ Git config - global user.name "Your Name Come

  • Under the commonly used commands vi editor linux command Daquan 2010-10-16

    Under the commonly used commands vi editor linux command Daquan Text editor is the most commonly used of all computer systems as a tool. Under UNIX editor has ex, sed, and vi and so on, which is the most widely used vi, the vi command range, the foru

  • LINUX commonly used commands 2010-10-18

    LINUX commonly used commands (basic) 1. Man you are familiar or not familiar with the command help to explain eg: man ls ls related to the usage can be viewed Note: Press q to exit key or ctrl + c, may be used in linux ctrl + c to terminate the curre

  • [Transfer] DOS Detailed commonly used commands 2010-10-18

    Detailed commonly used DOS commands - - Site: http://itbbs.pconline.com.cn/diy/2838125.html DOS: disk operate system, disk operating system, DOS commands and sub-internal commands and external commands. Internal command, also known in machine orders,

  • MySql5.0 commonly used commands 2010-10-21

    MySql5.0 A commonly used commands, open a connection ............................................ ...................................... 1 Second, increase the user .............................................. .................................... 1

  • UNIX systems commonly used commands 2010-10-28

    [Size = small] [/ size] UNIX systems commonly used commands log in and out chap 1 Log in Step 1 Step 2 new terminal telnet 192.168.0.23 Login Step 3 Step 4 the user login name password password user login successfully. At this time, the screen will s

  • find grep commonly used commands 2010-11-02

    find frequently used commands find [-H] [-L] [-P] [path ...] [expression] 1. To find the name of the matching files (look for names in the current path matches *. Log files) find.-name *. log grep commonly used commands Syntax: grep [options] PATTERN

  • (R) Quick Reference: DB2 command line processor (CLP) in the commonly used commands 2010-11-11

    http://www.ibm.com/developerworks/cn/data/library/techarticles/0211yip2/ Quick Reference: DB2 command line processor (CLP) in the commonly used commands Maintained by the Paul Yip , IBM Toronto Lab Profile: Readers of this article are those of person

  • Finishing CentOS commonly used commands 2010-11-13

    A: Use common command to see cpu CentOS more / proc / cpuinfo | grep "model name" grep "model name" / proc / cpuinfo [Root @ localhost /] # grep "CPU" / proc / cpuinfo model name: Intel (R) Pentium (R) Dual CPU [email protected]