Solve the file garbled by VIM.

When you use Vim to open a file and edit it, Chinese garbled characters appear in the bottom taskbar, seriously affecting the compilation.CodeThe reason is that Vim does not support the default language. By modifying the/etc/vimrc configuration file,

Replace ^ m with vim

Cause: Press enter to indicate:In dos, press enter (Cr, ASCII 13, r) to wrap (LF, ASCII 10, n. There is only one in Linux. In Linux, you can use VI to view some text files created in windows. Sometimes you will find some "^ m" at the end of the

Ubuntu Vim configuration file

Ubuntu Vim configuration file description Favorites After I installed ubuntu8.04beta, my vim became "loose" because I didn't set attributes in the configuration file. My ubuntu6.06 was configured by David for me, which was very fast, I have

Vim's general usage skills

Vim's general usage skills Author: Geminis published on: 复制链接 --> In each user's home directory, there is a VI Configuration File ". vimrc "or ". exrc ", you can edit it so that these settings are valid

Vim entry and basic usage

From: http://www.lupaworld.com /? Uid-296380-action-viewspace-itemid-118973 VI/Vim basic usageThis article introduces the basic usage of VI (Vim), but it is enough for common users! The differences between I and Vim are simple. They are all

Painful conversion to VIM + GDB + GPP

Recently, I was a beginner in vim and wrote a very ugly vimrc. I will post it and see it .. Set nocompatiblesource $ vimruntime/vimrc_example.vimsource $ vimruntime/mswin. vimbehave mswin "I just learned Vim. This configuration file will be

Vim configuration Summary

After calling gsensor this afternoon, there are still some bugs. I want to change my mind for the time being. I accidentally think of VIM. Vim is nothing more than configuring it. I used to configure some of it, it took another afternoon to add

Vim copy and paste

gtk

Copy From Vim to system clipboard: "+ YCopy From system clipboard to VIM: "+ P or shitf + insert In vim, the system clipboard is associated with the vim register +. Therefore, any copy and paste of register ++ directly affects the system

Simple use process of csflood, ctags, and VIM

1. First put all source code file paths in the project into cs5. files: $ Find/home/jzj/myproject-name "*. h"-o-name "*. C"-o-name "*. CC"> cscope. Files #Note:Use absolute path in the find command, otherwise the tag will not be found once the

When using vim, press Ctrl + S. What should I do?

I used to use the editor in windows. Today I used vim and accidentally pressed Ctrl + S. As a result, VIM does not work when I press any key. in the past, we also encountered this problem. The solution was to directly shut down the SSH client

Use Vim to compile projects: three plug-ins and others are recommended.

Recently I want to write scala code. I originally wanted to use its Eclipse plug-in. But Scala is a newer language, and the Eclipse plug-in's complementing function is too weak (or is it not configured properly ?), So switch to

Vim ultra-practical highlights

1. unindent does not match any outer indentation levelThe reason is that the file contains a mix of tabs and spaces (refer Http://blog.csdn.net/shell_picker/article/details/6033023) Solution: Use spaces. Set tabstop and shiftwidth to the same

Vim replacement function

1. Substitute) : [Range] S/pattern/string/[C, E, G, I] 5. 1   Range It refers to zookeeper. 1, 7 refers to the entire article from the first row to the seventh row, and 1, $ refers to the entire article from the first row to the last

Run the following Vim command to switch to Linux.

 1. Outside of the insert mode Basically, you should stay in the insert mode as little as possible, because in the insert mode, VIM is like a "dumb" editor. Many new users will stay in the insert mode because it is easy to use. But Vim is powerful

Vim basic editing and mobile commands

1. move cursor: H: left L: Right K: Top J: bottom 2. delete a row: DD 3. delete A character: x4. delete a line break: j5. create a new line under the cursor and enter the insert mode: O (lowercase letter O) 6. create a new row above the cursor and

Common configurations of my vim

"The file is automatically updated when it is modified externally.Set autoread "Highlight the current rowSet cursorlineHi cursorline guibg = #222222Hi cursorcolumn guibg = #333333 "Enable foldSet nofenSet FDL = 0 "Set the tab key to 4 spaces.Set

Vim Common commands (original address http://dozb.bokee.com/4767885.html)

Common Vim commands  Original article addressHttp://dozb.bokee.com/4767885.html   Access the VI commandVI filename: open or create a file and place the cursor at the beginning of the first lineVi + N filename: open the file and place the cursor at

Compile and install Vim 11.10 and vimgdb in Ubuntu 7.3

Document directory Solve the problem of "pixmap" prompt Author: mouhua First install the dependency: Sudo apt-Get install build-essentialSudo apt-Get build-dep vim-gnome Install the vimgdb patch. For details, see readme. RST in the

Vim Chinese tutor

Vim Chinese tutor Vim is a powerful editor with many commands. This document will not be detailed in this tutorial. The purpose of this tutorial is to describe some necessary basic commands. With these commands, you can easily use Vim as a universal

Programming tool VIM + ctags + taglist + cppcomplete + cs.pdf + global in Linux

Main functions of each tool: VIM: This is a very powerful editor in Linux.Ctags: Command for generating tag files. This is the basis of other tools.Taglist: The function list and global parameter list are listed directly on the left

Total Pages: 210 1 .... 159 160 161 162 163 .... 210 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.