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
On the Linux platform, there are many good shell command combinations to do multiple file lookups/replacements, such as these commands: Find,sed,grep,awk,perl. But other platforms such as windows are less convenient, and Vim's built-in multiple file
: s/vivian/sky/replaces current line first Vivian for Sky
: S/vivian/sky/g replaces current line all Vivian for Sky
: N, $s/vivian/sky/replaces the first n line to the top Vivian for each line in the last line of Sky
: 2, $s/vivian/sky/g replaces
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
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
The command to edit the file on Mac always can't remember, leave a reference!!!If it is vim, then: ESC exits edit mode and enters the following command:: Wq after saving exit VI, if: wq! After forcing the store to exit (common): W Save but do not
You can use the: s command to replace a string in Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query.: s/vivian/sky/replaces the current
In Linux without a desktop environment, the command-line mode terminal operation is inevitably a bit difficult, but learning to use some shortcuts will do more with less. Common shortcut keys under the Linux command line are:Delete:CTRL + D deletes
/************************************************************************* * Ubuntu Vim Copy to System Pasteboard * Description: * The content of Vim is copied to another application, before the general use of the mouse, now or instead of using the
Normal mode (press ESC or ctrl+[) the lower-left corner displays the file name or is emptyInsert mode (press the I key to enter) the lower left corner shows--insert--Visual mode (Press v key to enter) the lower left corner shows--visual--I inserted
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
Source: Vim Command Collection 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
Record your own youcompleteme installation steps:Vim does not have the code auto-completion function is very uncomfortable.1, first clear: The MAC comes with Vim is 7.3 version, and Youcompleteme installation requires more than 7.3 version of Vim.
Experimental system version and VIM version System: CentOS6.3 vim:7.2 Plug-in introduction (Attach a photo) Nerdtree (plugin for navigating the directory structure on the left side of the window) Solarized (a vim theme that you think is more
" This article declined to reprint Original from http://990487026.blog.51cto.com"Steps:1,windo ws platform installation notepad++2,notepad++ Installing the FTP plugin3, Set login properties4, create file, set encoding5, edit the file, compile and
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 so-called "to do a good job, you must first sharpen the tool", the so-called "sharpen the knife without mistaken cut firewood".In Linux, vim is the most common editor, and many linux distributions come with their own (however, Ubuntu must be
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