Vim,gvim's Utf-8 garbled solution
Use Vim when found that if you open the Utf-8 file will appear garbled problem, you can click Edit-> startup settings, in the configuration file to add the following configuration information can be:
First, you
Using 4-Space tab in most files, a true 8-width tab is used in Makefile, and colleagues are automatically indented based on the type of file.
Edit
Vim ~/.VIMRC
If the file does not exist new, the file already exists, append to the tail
Add to
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
Dos/windows-based text files have a CR (carriage return) and LF (line wrapping) at the end of each line, and UNIX text has only one line break, that is, win each line ends with \ r \ n, and Linux has only one \ nIf the document on win is uploaded to
Personal plugins and configurationsSetNocompatible"To Remove the VI consistency, you must addFileType off"you have to add"Advanced Keys": qa! Close all the tabsSetCursorlineSetNu"parameter for CtagsSetAutochdirSettags=tags;"parameter for
Turn from:http://blog.csdn.net/love__coder/article/details/66591031, install Nerdtree plug-inDownload First, official website: http://www.vim.org/scripts/script.php?script_id=1658 After decompression, copy the Plugin/nerd_tree.vim and Doc/nerd_tree.
Vim is a text editing tool under the Linux operating system. It is an upgraded version of VI. Unlike VI, when you open a file with Vim, the character color is clearly displayed. The default system does not have vim tools and can be installed via the
In Vim, ESC is a common key, but we need to move so much to touch it, so how can we use it more conveniently?There are a lot of methods on the net, alt-[and DF Key mapping is the two methods I have used, now let's talk about their problems,DF Key
This article mainly teaches you how to use the Vim split screen function.Split screen start vim
Use the uppercase O parameter to split the screen vertically.vim -On file1 file2 ...
Use the lowercase o parameter to split the screen
grep: Text Filtering (Pattern: pattern) tool includes: grep, Egrep, fgrep (regular expression search not supported)Usage format: grep [OPTIONS] PATTERN [FILE ...]Patterns: Filter conditions written by regular expression characters and text
Before introducing the Nano editor, Vi/vim is more powerful in functionality, so it is common to write scripts using the Vi/vim editor. Vim adds a more friendly editing interface to the VI and makes it easier to find errors.It can also be called
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
1. InsertPress "I": Enter the file starting at the cursor's current position.Press "I": Insert at the beginning of the line where the cursor is located.Press "a": Enter text from the next position where the cursor is currently located.Press "A":
View file encodings in vim: Set fileencodingYou can display the file encoding format.If you just want to see other encoded files or to solve the problem of using Vim to view files garbled, thenAdd the following to the ~/.VIMRC file:Set encoding=utf-8
One, view hard disk or directory capacity1.DF [-hmkit]-H View System disk usage-M using MBytes to display results-K displaying results using Kbytes-I view Inode-T view type2.du [-abhkms] [directory name]-S only lists the total value of the last
Previously working in VIM requires copying things between vim and other editors, using Shift + Ctrl + v/c. Feel this is inconvenient, today in the online search for the following can be used "+y/p, but their own experiment how also do not, in
Vim is a more powerful, full-screen text editor than VI. Vim has three modes during its work: edit mode, insert mode, and last line mode.Edit mode (default): Also known as the command mode, its work includes moving the cursor, cut, paste, delete
The first step:Open terminal, enter on terminal, vim ~/.vimrc return.Step Two:Input:set helplang=cn "Chinese help document (if the Chinese package is down) syntax Enablesyntax on" Automatic syntax highlighting set number Show line number
Recently, I started to pick up the C language. I will take a look at the C language as an example. Then I found that each time I wrote an example, I had to write a few characters to compile and execute it. Then I wanted to see if I could use vim's
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