First in the terminal input VIM test.c Enter the VIM editor, click a key, enter the editing state, and then enter the following C language statement: #include
int main () {printf ("Hello world!/n");} To do this, press ESC to exit the edit state,
Vim garbled Solution:
To change the encoding of the current file, simply enter it in command mode:
The code is as follows
Copy Code
: Set Encoding=utf-8: Set Fileencoding=utf-8
Create a new. vimrc file in the
A detailed introduction to VIM coding
Vim, like all popular text editors, is a good way to edit a variety of character-encoded files, including, of course, popular Unicode encodings such as UCS-2 and UTF-8.
Vim has four options related to
Replace with the content of the copy
When there is a spelling error or if you want to rename an identifier, you need to replace the current name with the contents of the copy. For example, when invoking a function, the error is written:
Vi/vimCommand modeInsert Mode AIOEdit mode:AIO is the insertion mode of Vi/vim.Command functionA append text after the cursorA at the end of the bank additional textI insert text at the cursor moneyI start inserting text at the banko Inserting rows
Vi/vim EditorOpen File:#vi [Option][file ...]+#: After opening the file, the cursor is directly at the beginning of line #;#/pattern: After opening the file, the cursor is directly at the beginning of the first line that is matched to the PATTERN;(1)
These are the most commonly used commands of VIM! Remember the "Mr.robot" that will improve efficiency----------------------------------------------------The common commands that VIM requires:D G Delete allI currently edito New Line EditGG
Question 1:Supplement, upgrade gcc,g++ to more than 4.7 version to install successfullyGitHub websiteGitHub https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64Question 2:./install.py--clang-completerUsing Clang
This blog record is my own learning of Vim's common commands in the process, the sequence of commands gradually familiar (some of the already familiar commands are not listed), the VIM editor itself has some settings of the record1, G quickly switch
First confirm that in normal mode, if you do not confirm, press ESC several times.: Sy on/clearSY indicates syntax highlighting, on is open, clear is canceled.: Set go=Set represents the general setting, go is the abbreviation of GUI option, is the
I. Introduction of VIMInstalling Vim:yum install–y vim-enhancedVim mode: Normal mode, edit mode, command line modeSecond, VIM's shortcut keys number 0 move to the beginning of line shift+4 Move to end of line shift+a Move to end
A mobile class1. Move to the first line of the file GG2. Move to the last line of the file G3. Move to the top line of the current screen H4. Move to the last line of the current screen LTwo editing classes1. Replacement character R2. Delete
Classic versionThe following is the most commonly seen in the classic version of the map.The corresponding Simplified Chinese versionIn fact, the classic version is a series of introductory tutorials on the combination of keys, the following is a
About VIMVim is a powerful full-screen text editor, which is the most common text editor on Linux/unix, which is used to create, edit, and display text files.Vim has no menu, only commandsThree modes of VIM: Command mode, insert mode, edit
: s/str1/str2/replaces the current line the first str1 is str2: S/str1/str2/g replaces the current line with all str1 as str2 (note that the S/XX/XXX/G statement starts with S and the middle space is treated as part of the string): N,n2
Vim is a common editor/text editor for Linux systems. Many people, because they do not understand how to configure, add a lot of trouble worries.Today, we introduce a self-configuring spf13, directly download the configuration and make the
If you've just started using vim and run vimtutor a few times, will it feel good vim is too clumsy to understand why it's so crowded, and even Visual Studio provides vim plugins. That's because you're still not getting rid of the mouse dependency,
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