The solution of the garbled problem of vim under Windows
Vim default encoding is GB2312, no utf-8 to choose for us, so we have to configure ourselves:
The specific configuration is as follows:
Open the VIM installation directory under the _VIMRC,
About my VIM configuration
Often write code on the server, a friend provided about his vim configuration, here to share to everyone.
Interface Effect Chart:
. VIMRC
The contents are as follows
"===============================================
When using the Vim editor, it is sometimes necessary to annotate or annotate multiple lines of code, unlike we need to enter our own command operations, as in the case of VS, and two methods are described below. Method One: Block selection mode 1.
Vi:visual Interface Visual InterfaceVIM:VI improved: Enhanced version VI recommended use!!!Full screen editor, modal editorVim mode: In different modes, the meaning of the knocked-down thing is not the same.Edit mode (Command mode)Input
I. Introduction of VIMVim is an upgraded version of VI (Vim config file in/ETC/VIMRC)Vim is a color-displayYum Install-y vim-enhancedGeneral mode, edit mode, command modeSecond, Vim color display and move the cursorVim View/etc/passwd
Programmer's favorite editor: Vimfirst figure out the three modes of vim:1. Command mode: Enter the "Vim file name" in the Linux terminal to enter the command mode, but cannot enter the text.2. Edit mode: Press I in command mode will enter the
The use of the VI editor/vim editor for the Kali Linux system differs from CentOS in many ways. The basic use method is as follows1, VI of the basic conceptBasically, vi can be divided into three states, namely command mode, insert mode (and bottom
I am installing Ubuntu under VM, using Vim to write run Hello WorldOpen Terminal in UbuntuTo check if g++ or GCC is installed, enter the command sudo apt-get install gccCheck if Vim is installed, enter command to install sudo apt-get install vimThen
This is an imported old blog, may have a timeliness problem.1. Install Homebrew (Package Manager, used to install vim)& /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"2.安装Vim(系统自带的Vim不是最新版)& brew
ProblemToday simple Match (Chao) Set (xi) a bit tmux, the results found that tmux inside to open vim every time you press ESC to reflect a second, as Ctrl + [ wellSolvePossible causes are: terminal emulator, Nvim, Tmux. Multiple control variables
I used to use vim to edit the Python code, the folding function is no problemLater, when I edited the Go code, I found that I saved, collapsed all disappeared , I am puzzled, I infer that it is related to the plugin I use, because I save the time
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
Only some of the VIM operations that you use most often are recorded. Keep up to dateText manipulation
D cut. Double-click to cut a row
Y copy, double-click to copy a row
P Paste
x Delete the character below the current cursor
When using VI on the putty, when opening numlock, press the numeric key on the keypad and not enter a number, but a letter and then newline (in fact, the command mode corresponds to the upper and lower keys). WorkaroundOption Terminal->features,
First, the editing mode
Keys
Role
I
Insert in current word match either
I
Insert at the beginning of the line where the cursor is located
A
Insert in current word
Reference: HTTP://WWW.CNBLOGS.COM/FAKIS/ARCHIVE/2011/04/14/2016213.HTML1. Folding modeAvailable options to set the folding method:Set fdm=xxx in the Vim configuration fileYou can call the VIM command directly in the file using comments */* Vim:set
The following prompt appears during installation:There are no packages available for Vim now, but it is referenced by other packages.This may mean that the missing package may have been discarded,Or can only be found in other publishing sourcesE:
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:
################################################Vim modeEdit modeInput modeLast-line mode################################################VimOne, open the fileVim +#: Open the file and locate it on line #Vim +: Locate the last lineVim +/pattern:
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.