normal mode
2. Windows Operation exercisesOpen the practice file$ vim 1.txt
command-line mode input :new open a new vim window
Command-line mode enter :sp 2.txt open new Landscape window to edit 2.txt
Command-line mode enter :vsp 3.txt open new Landscape window to edit 3.txt
If you use a non-Chrome browser, you can use Ctrl+w the jump between windows
Enter :q! exit multi-windo
what is VIM? Vim has the ability to edit the program, can be active in font color to identify the correctness of the grammar, convenient programming.Vim is a text editor developed from VI. Code completion, compilation and error jumps and other convenient programming features are particularly rich, in the programmer is widely used.Install Vim:sudo apt-get install
certain permissions
/mnt
Default mount for CD-ROM and floppy drive directories
/boot
Store boot-related files
/etc
Storing configuration-related files
/var
Storage of frequently changing documents
/usr
Default installation path for software
3. Use of the Vi editor
Vi Hello.jave
I Ente
)
}
Operation Result:
Black
Red
8. Write an enumeration that describes the 8 corners of an RGB cube. ID uses color values (for example: Red is 0xff0000)Description: RGB If the 8-bit representation, red is 0xff0000, Green is 0x00ff00, Blue is 0x0000ff. And so on, 8 vertices were (0,0,0) (0,0,1) (0,1,0) (0,1,1) (1,0,0) (1,0,1) (1,1,0) (1,1,1)Program code:
Objectrgbextendsenumerationwithapp {
valred=value (0xff0000, "RED")
valblack =value (0x000000, "Black"
to enter the visual block mode, then press J or K to select multiple lines, and mark the lines to be annotated
2. Press the uppercase letter I and insert the annotator, for example //
3. Press the ESC key and all comments will be made.
Cancel multi-line comment:
1. Enter the command line mode, press Ctrl + V to enter the visual block mode, and press the letter L to select the number of columns horizontally, for example, // you need to select two columns
2. Press the letter J or K to select the
1. Copy the/etc/rc.d/rc.sysinit file to the/tmp directory and add # to the beginning of the line with at least one whitespace character in the/tmp/rc.sysinit file;cp/etc/rc.d/rc.sysinit/tmp/Vim/tmp/rc.sysinit:%s/^[[:space:]]/#/:%s/\ (^ \)/#/gmatch format: s/What to look for/what to replace/g global2, copy/boot/grub/grub.conf to/tmp directory, delete the blank character of the beginning of the/tmp/grub.conf file;cp/boot/grub/grub.conf/tmp/
Vim-the Ubiquitous Text editorVim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is the included as "VI" with the most UNIX systems and with the Apple OS x.Vim is rock stable and are continuously being developed to become even better. Among its features is:
Persistent, multi-level undo tree
Extensive plugin system
Support for hun
Since VIM has been used for a long time, it has never been thought of as convenient and fast as VIM.
I thought for a moment, probably because I have always been dependent on the VIM editing mode.
This is no different from using other simple editors.
The efficiency advantage cannot be reflected.
So I summarized some com
Tags: vimI. Introduction of VIMVim is an upgraded version of VIis the vi with color displayDivided into general mode, edit mode, command mode.yum install -y vim-enhancedInstall VimUse VIM to open passwd after installation is completevim /etc/passwdAnd before with the VI open there are obvious differences,
One, old version jdk uninstall1. Uninstalling the system comes with JDK version#rpm-qa|grep GCJSee the following information:To uninstall the default installation JDK:#rpm-E--nodeps java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115 2. Uninstalling the installed JDK#rpm-qa|grep JDKSee the information below: To uninstall a self-installing JDK:#rpm-E--nodeps Jdk-1.6.0_29-fcsIi. Installation of JDK 1. Download the JDK on the website (download the JDK according to your own situation, this does not say
Common options for the Vim text editor under Linux.VIM (Visual interface improved) is an enhanced version of the VI editor, small but powerful, is the most frequently used Linux system Text editor, so learning Vim is also a necessary skill to learn Linux!VIM's command format:vim [options] [File ...]eg[Email protected]
5.1vim IntroductionVim is an upgraded version of VI with a color display that installs the package firstYum install-y vim-enhancedVim is divided into three modes: General mode, edit mode, and command mode.
5.2vim color display and move cursorThe same file information is displayed differently in different directories.The same content, different file names, the display color will also vary.Vim's configu
trouble. When I face the new vim environment, the first thing I do is to add the following mappings6. Re-mapping Vim's Leader keyIf you are not familiar with the leader key, and do not know what it can do for you, then you begin to understand it. It is essentially the activation key for your shortcut key, and you can customize which key to use as your leader key. So, you can:This allows you to press the leader key combined with the uppercase ' J ' af
Tags: vim linux text editorVim is an upgraded version of VI, which is displayed according to the text attributes, with the following details:General mode:1. Cursor Positioning:Move left and right one character, H LMove one character up or down, K JLeft and right down, around on both sides, down in the middle so rememberCursor positioned at the beginning of shift+6 ^Cursor positioning line End shift+4 that i
Why should I learn vim?
All Unix like systems have their own VI editor
Some software's editing interface will automatically adjust the VI
As an upgraded version of VI, VIM has the program editing function, but also has the code color highlight, the identific
Why should I learn vim?
All Unix like systems have their own VI editor
Some software's editing interface will automatically adjust the VI
As an upgraded version of VI, VIM has the program editing function, but also has the code color highlight, the identific
beginning and you execute2And then you move the cursor to 1988 of 1,Execute 234. ~ g~ gu gu case conversion action ~-+action-+ action-+ action-+ action-+ Action-You can implement an entire line of uppercase conversions5. AP paragraph CommandsIt can manipulate the entire paragraphFor exampleAAA BBB CCCAAA BBB CCCThe cursor is in the first line, and then we execute the DAPYou will find that you have deleted these two lines, including the following blank lineThat is, it will take these two lines a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.