This note records the most basic vim and shell operations.What can shellscript do?Shellscript similar to Windows batch processing, you can put a lot of instructions together, so it is easy to execute multiple commands through an operation. Very
General Mode : Enter the "Vim file name" in the Linux terminal to enter the general mode, but cannot enter the text.edit mode : Press I in general mode will enter the editing mode, you can write the program, press ESC to return to the general
Article turned from: HTTP://WWW.LIUHUADONG.COM/ARCHIVES/68The ultimate solution for vim and Gvim in Chinese garbled under windowsIn Windows Vim's Chinese font display is not good, so we need to adjust the font display encoding utf-8, only in order
By default, VIM is not installed in Debian. APT-Get install vim-y is required. By default, the highlighted syntax is also annotated. You need to cancel the annotation in the configuration file:Vim/etc/Vim/vimrcCancel the following comments:; Syntax
When the cursor inside a function is located in Vim, The talist column displays the current function. However, by default, the refresh takes a long time and is inconvenient. Original link: Www.newsmth.net/nforum /#! Article/Vim/39368 Solution:
The encoding in VIM is mainly related to three parameters: ENC (encoding), fenc (fileencoding), and fence (fileencodings) Fenc is the encoding of the current file, that is, a file that has been correctly displayed in VIM (the premise is that
In Red Hat Linux, the Administrator's vim configuration file is stored in/etc/vimrc. Set nocompatible // remove the VI consistency mode to avoid bugs and limitations of previous versions Set nu // display the row number And so on. You can view
Vim configuration file "Display row number set nu" hidden assistance prompt set shortmess = ATI "syntax highlighting syntax on" using Vim keyboard mode "set nocompatible" No need to back up set nobackup "not saved or file when read-only, the pop-up
1. viminfo
For operations in Vim, VIM automatically records the operations and stores them in ~ /. Viminfo file. To facilitate next processing, for example, when Vim opens a file, the cursor will automatically display it at the last exit. Previously
If you have written a little bit of code, you will be able to know how convenient the integrated development environment (IDE) is. Whether it is Java, C, or Python, it is much easier to write code when ide will help you check the syntax, compile in
Record the following my vim plug-ins
1. ctags
Use the ctags-R command
2. cscope
Not used yet
3. toglist
4. winmanager
5. Pathogen
6. nerdtree
Appendix:
My. vimrc
""My Vim Configuration""Disable compatibleSet nocompatible"Enable syntax
Command
Action
Notes
Vim file + 54
Open File and go to line 54
Any: command can be run using + on command line
Vim-O file1 file2
Open file1 and file2 side by side
Insert
Enter insert mode
So you
The configuration file was found online. I changed the error items
Copy the code to the user directory to create a file named. vimrc.Save to take effect. If you want all users to take effect, modify/etc/vimrc (we recommend that you copy CP first)
"==
Chapter 1
First, we put forward the idea of VIM: how to improve reuse -- easily repeat previous operations.In addition, the author divides Vim operations into two steps:
One is mobile, and the other is operation.
For these two aspects, the
Vim is a powerful editor. Of course we can also configure it with a powerful ide. There are a lot of such tutorials online, so I will not repeat them here.
We often need to check the document for unfamiliar commands and plug-ins. The English
1. move the cursorUpper: KLower: JLeft: l "letter l lower case 』Right: HFirst line of the previous line:-"minus sign 』First line of the next line: +First line: 0 "number 0 』End of line: $Word tail or the last word tail: ENext word: WFirst or first
1 "show row number 2 set nu 3 4" Hide assist prompt 5 set shortmess = ATI 6 7 "syntax highlight 8 syntax on 9 10" file type automatic detection 11 filetype on 12 13 "Use Vim keyboard mode 14 set nocompatible 15 16" No need to back up 17 set nobackup
Use vim (II): common functions1. Common vim functions: common functions of vim, including block selection, copying, multi-file editing, and multi-window functions. 2. Select the vim block to copy and paste a part of the document without processing
Clang_complete vim simple configuration, clang_completevim
Vim is very powerful. You can view it through man vim (man is the manual for viewing commands, and man can view the corresponding usage by adding commands)
Below is a brief description of
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.