Objective
Vim is a considerable force from the UNIX platform of the command line editor, but not to the power, Mac OS x is not a lot of Linux distributions on the top of vim, such as the Cool God Horse Code highlighted AH, automatic indentation and
Vim skills of the four modes _ ordinary mode to see the ordinary mode of not loving ordinary mode below the tough operation what is the operator what is the action command misoperation How to do that operation more cost-effective ordinary mode of
It is now possible to skillfully use most of Vim's basic commands and functions for Project code development, but during the development of the project, there are still some operational inefficiencies, such as the large-scale movement of the cursor
The fourth lesson basic copy, paste operation
Cut and paste
When a piece of text is deleted with command D or x, the deleted text is automatically saved to a special clipboard by VIM. You can then use the P command (put) to paste it behind the
1.vim Editor1. First Knowledge Artifact: Vim(1). Vim Considerations编辑文件时 a.当文件名称存在,那么进入文件直接编辑 b.当文件名称不存在,vim会在退出保存时自动建立文件 c.当vim命令后没有跟任何文件名称时,时无法实现":wq"退出保存的那么可以用":wq filename"(给新建文件命名并保存)(2). When Vim exits abnormally, the system creates.
I. Linux BASIC instructions
Find
-name: Search by file name
File Search
When you do not set a parameter, find finds its subdirectories and files in the current directory by default, and displays all
I. Introduction of VIMWhat is 1.vim?Vim is VI improved, which is a reinforced version of Editor VI.Configuration file for 2.vimThe configuration file for the Windows system is the VIMRC file in the VIM installation directory.Linux systems, Rhel and
The differences between ": X" and ": Wq" are as follows:(1): Wq Mandatory Write file and exit (save and exit write and quite). Force write even if the file is not modified, and update the file's modification time.(2): x write to File and exit.
1, first use VIM to open the binary form of the file, if not binary may produce a conversion error.Vim-b File-to-open.dat2. convert files to hexadecimal format with XXD:%!xxdYou can now view and edit binary files just like normal text.3. Vim Single
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
Vim has an-X option that allows you to encrypt files when you create them. Once you run the following VIM command, you will be prompted to enter a key:$ vim-x file.txt Warning: Weak encryption method is being used; see: Help ' cm ' Input encryption
1, set the location of the fileUnder directory/etc/vim, there is a file named VIMRC, which is the public vim settings file in the system and is valid for all users. In each user's home directory, you can create your own private settings file, named:
The default installation of Vim for a typical Linux system is lite (Vim-tiny), so you cannot configure attributes such as grammar checking or get online help. Need to install Vim-x:x.x.x,vim-common,vim-runtime.: Syntax on start grammar check or: Set
[CTRL] + [f] the screen moves one page down, which is equivalent to a [Page Down] button (commonly used)[CTRL] + [B] The screen moves one page up, which is equivalent to a [page up] button (commonly used)0 or function key [home] This is a number "0":
If the current locale is UTF-8, use Vim to open a gb2312 encoded file, which is garbled. Open it with gedit, but it is displayed normally. Isn't Vim as good as gedit? The small issue of recognition encoding should be a piece of cake for vim. The
Among the well-known plug-ins of VIM code snippet completion are vim-snipmate and ultsnips. In my environment, snipmate cannot be used because of conflicts, so ultisnips is used. They all use the same vim-snippets as the configuration file and store
Tags: vim, linux-tool, edit
This article describes some basic knowledge about vim's multi-byte encoding documentation (Chinese). Note that it does not involveGvim: Refers to vim in character terminals.
1. Basic vim coding knowledge:
1.1 three
Go to: http://zhwen.org /? P = articles/cs1_tags
The linux Source Code provides the make command to create a cssag index file and a tags file.I. Software Installation
Install cscope first:
sudo apt-get install cscope
After installing
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