: Edit otherfilename "edit another file, but you need to save the original file in advance"
: Hide edit otherfilename "edit another file, you do not need to save the original file in advance"
Vim one. C Two. c Three. c "specifies multiple files
The newly installed Vim file is being edited in C/C ++.ProgramWhen the line number is not displayed, pressing enter does not automatically indent, it is inconvenient to use, in this case we can simply configure Vim1. Create a New hidden file named.
To try the English version, you need to solve the problem of Chinese support in many software programs. Vim has been used for a long time. When gedit is used occasionally, there is a problem in Chinese. Today, it cannot be solved simply.
In fact,
After VI/Vim is disabled, garbled characters are generated, that is, all the prompts are garbled.
Solution: The reason is that the terminal name is not standard. Right-click the terminal, select preferences, and change the initial title as follows:
Some time ago, the company opened a new virtual machine, installed rhel5, And suddenly did not install Emacs during the installation. It was difficult to install it, but found that syntax highlighting is also so complicated. In one breath, I also
VIM + ctags configuration in Ubuntu
Ctags can create source tree indexes so that programmers can quickly locate functions, variables, macro definitions, and other locations to view the original shape during programming.The following
For example:
1. How to delete other rows by retaining only Matching content rows?
: V/pattern/d: Help: V2. How to keep Matching content for each row and delete other content in this row: % S/^. * \ (pattern \). * $/\ 1/g3. Delete rows containing
Document directory
Background
Basic knowledge
Preparations
Custom themes
My themes
Summary
Manually expand the vim plug-in-color
By Ma Dongliang (cream Loki)
One man's war (http://blog.csdn.net/MDL13412)Background
Anyone who has used a
It took a long time last night and was modified based on the ielflord color scheme of vim.
The terminal display is modified, and the color is changed .. However, you need to set the color to 256 before the change. The specific settings are Baidu
Install it in Windows:1. Download from www.vim.orgTaglist_45.zip. After decompression, there are two files Doc and plugin. Copy these two files to the install directory Doc and plugin of vim.2. Open Vim: Helptags $ (home)/doc: Help taglistThen you
X Delete the character under the cursor (abbreviated as "DL)X Delete the character before the cursor (abbreviation of "DH)D. delete from the current position to the end of the row (abbreviated as "d $)DW is deleted from the current position to the
The font is nice
G is Vim jump to the last line. gg jump to the top line.
Copy a row: yy P
Copy multiple rows: 1, 4 copy 6
Save command: savees D: 1.txt: %! Xxd ----> switch to hexadecimal display: %! Xxd-r ----> display by text Switch
Chinese
A Vim file can be opened in hexadecimal notation
The edited hello. c
$ Arm-Linux-GCC hello. C-O hello
$ Arm-Linux-readelf-s hello
The offset of the. rodata segment is 4d0.$ Vim-B Hello //-B Indicates special protection for opening a binary
Caps LockFor us, it is basically redundant, and the position on the keyboard is unreasonable. When we accidentally pressCaps LockAnd then an error occurs.ESCThe most frequently used button in vim.Caps LockReplaceESCIt's really good, and you don't
I have been trying to find a command line editor in windows. I always prefer vim. The installation is successful after a slight search. So I made a note.Install
1. Download
In.
2. decompress the package to the appropriate directory. For example,
[Translation]
"Search for declaration of subroutine/function under cursor
"Find the subroutine under the cursor/Function Declaration
: Nmap gx yiw/^/ (sub/ function/)/S/+ "
[Annotation]
: Help: NMAP
: Help IW
: Help
Most of the content in
Vim, as one of the best text editors, uses Vim to compile documents and write code. Every time you learn a new feature of VIM, it will greatly improve productivity. Some people have been using Vim for decades and have not fully mastered the
I have always wanted to familiarize myself with vim. Maybe I am interested in open source, maybe I miss the TC environment in the DOS era (my vim theme uses TC ), perhaps I was amazed at the power of VIM. Maybe I hate to touch the mouse when writing
1. Add the Edit with vim option. Each file opens a new window. Create a reg file with the following code:
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT/*/Shell/edit with vim]@="edit with vim"[HKEY_CLASSES_ROOT/*/Shell/edit with vim/
Vim settings.
Questioner:Shuige pavilion | views: 58
I am a newbie to vim. I just want to enable vim settings. Run bash-3.2 # source./vimrc_example.vi and the result fails. Bash-3.2 # cd/usr/share/vim/vim71/bash-3.2 # source. /vimrc_example.vim bash:
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