移动光标30 move to the beginning of the line # $ The end of the current row # GG file The first line # G file last line # line number ++ +i return to the position before the jump退出# Enter normal mode #: Q! do not save exit #: Wq after saving删除# x
-The advantages of VIM's encryption function1. After encryption, if you do not know the password, you will not see the plaintext, including the root user can not see-Cons1. Obviously let others know encryption, it is easy for others to destroy the
In Linux, the Vim editor is the system's own text editor, but to modify a text file, it is not like Windows, more novice, into the VI editor, can not exit so that the forced shutdown, in fact, this vim (vi) is very simple.1. Enter the VIM editorVim
Pictures worth a thousand UNIX commands and options:I draw this to my students each semester and they seem to grasp VI afterwards.VI is a finite state machine with only three states.======== ======VIM has 3 modes of Operation:input mode, Command
Note content:L 5.1 Vim Introduction L 5.2 Vim color display and move cursor L 5.3 Vim general mode move cursor L 5.4 Vim general mode copy, cut and paste Note Date:2017.8.45.1 Vim Introduction Vim is a similar toViThe well-known powerful, highly
Some of the commands commonly used by the VIM editor under Linux (what to add)Command mode:: Set Nu #显示行号: Syntax on #语法高亮: Set tabstop=4 #tab back four gridVI has three modes: insert mode, command mode, low line modeInsert mode: You can enter
The text object of Vim is made up of two characters, and the first character is always i or a . In general, text objects that start with the text i selected inside the delimiter, and the a text object that begins with the selection, selects the
I. Management input and OUTPUTin a Linux system, the correct output number is 1, the error output number is 2performed in the system with a normal user "Student"find/etc/-name passwd > fileBecause student does not have the right to view more
Find a lot of online, use up a variety of problems, especially in a variety of formats, find an article here, write down.Insert header file template implemented in pure VimscriptAutocmd bufnewfile *.c Exec ": Call SetHeader ()" func! SetHeader ()
1. Make sure to see the color in the Linux terminal, configure ~/.BASHRC the following uncomment:
# Uncomment the following lines if you want ' ls ' to be colorized:
Export ls_options= '--color=auto '
Eval "' Dircolors '"
Alias ls= '
How to set Vim's personal preferencesThe default VI many features are not open, we can customize the VI as needed, you need to modify the vi configuration file, the global configuration file in/ETC/VIMRC, but generally only need to modify the user's
Let's look at the color configuration scheme provided by the VIM editor:First enter the VIM's color directory (/usr/share/vim72/colors, different system directories, it is recommended to set up in ~/. Vim directory, and then in some directories to
1 pageCtrl+f, turn down to the new page.Ctrl+b, turn up to the old page.2 Vim configuration fileWhat are the configuration files for 2.1 vim?Personal User Scope profile: $HOME/.VIMRCSystem-wide configuration file:/USR/SHARE/VIM/VIMRCYou can also
5.1 Vim Introduction1) Vim is the upgrade version of VI, with color display, also divided into general mode, editing mode, command line mode; Installation Instruction pack, install only oneyum install-y vim> This method installs multiple VIM-related
(articles are extracted from other places and summarized, if there is infringement, please contact the Administrator)
Vim Editor---Bulk comments and anti-annotations
When writing code using VIM, it is often necessary to use bulk
After creating a Python file with vim, such as pw.py, the file header will be filled in automatically, such as: 1 #!/usr/bin/env python 2 #-*-Coding:utf-8-*- 3 # Pw @ 2013-04-15 17:26:33Add the following code to the/ETC/VIM/VIMRC file:function
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service