How to move the cursorh or LEFT ARROW key (←) The cursor moves one character to the leftJ or DOWN ARROW key (↓) cursor moves down one characterK or Up ARROW key (↑) The cursor moves up one characterL or right ARROW key (→) The cursor moves one
Moving from my blog: http://www.xgezhang.com/vim_command_useful.htmlVim this thing is to use more practice, a period of time after the summary. Here is a list of some of the most useful and less skilled commands to use as a record review.o Insert a
1. Common mapping Setting method": Combination of actions performed by map map key combination": Set key mapping": Noremap the characters in the map key combination mapping Key": Cancels nested mappings for a character": Unmap Map key combination":
vi : visual interface Visual Interface Because we frequently write scripts and configure the server, we need a powerful text editor. Vim:vi improved vi enhanced Vim is a full-screen, modal editor with three modes of VIM mode: Edit mode
Under Win, code debugging or VS is the most convenient, when using vs open exe, vs need to quickly locate the file, in source Insght, write a macro, with a shortcut key implementation. But how do you do it in vim? Looked for again, did not find
In vim at random to create a new HTML document, the input Chinese, and the Web page is displayed as garbled, and began to think it is a vim configuration file problems, change multiple invalid. The final discovery is that the HTML header does not
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 directlyVim filename opens vim
Problem one: Using SECURECRT telnet machine, using Vim Viewer program, is garbledWorkaround: In SECURECRT settings, set the character encoding to utf-8650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/57/0A/
Speaking of the text editor, you have to say that the vim of the old age, say, but also Hale, still have a lot of advocates. It is true that vim is practical, and the advantages of VI are listed first.1, if the master of vim, you can save the mouse.2
zhanhailiang 日期:2014-12-17The default Vim lookup is case-sensitive and can be implemented by ignoring case lookups in two ways:set ic?noignorecase1 instruction setting::set ic(ignorecase 的缩写) 忽略大小写:set noic(noignorecase 的缩写) 不忽略大小写Enter the
The default color of the "go"Ubuntu VIM is ugly, and the blue annotations are basically invisible.See how many color schemes you have:$?ls?/usr/share/vim/vim72/colors? The following files were foundBlue.vim?????? Delek.vim???? Evening.vim??
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 directlyVim filename opens vim
Test environment: Ubuntu 14.04 version KylinVim itself does not have golang syntax highlightingSolution:In the/usr/share/vim/vim74/There are so few folders: syntax, Ftplugin, indent, compiler, etc.,We see syntax can see there are gcc.vim and other
A. Mobile:H,j,k,l: Left, bottom, top, right.W: The first word of the next word.E: The ending of the next word.B: The word head of the previous word.Two. Jump:%: Can match {}, "", (), [] jump between.H, M, L: Jumps directly to the top, middle, and
1. Create a. vimrc file under your home directory (///). Console input vi ~/.VIMRC carriage return.2. Enter the following text in the. vimrc file:Set tabstop=4Set softtabstop=4Set shiftwidth=4Set NoexpandtabSet NuSet AutoindentSet
using a VIM script, using a template, a few lines of code can be implemented very useful. code in the ~/.VIMRC"Auto Add Pyhton header--startautocmd bufnewfile *.py 0r ~/.vim/vim_template/vim_pyhton_headerautocmd BufNewFile *.py ks |call FileName () |
N. ° vi ° Í vim ± à ¼ ÷ £ 6 £\° ex ±?
Vi ± à ¼ Æ Ê Ó ózäµ×² ±? please refer to vi ± à ¼ Æ Ç çex Ð ± à ¼ ÷ %% ************************ äã» â ú ¯ Ð Ô ü Ü ü £ £ä äáá¦ Ç üçµ µä± à ã ü üáî £ £ex Ò Ð î ª µ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Multi-line comment (especially for python code) in the vim compiler, vimpython
------------------------------------------------------ Multiline comments in the vim compiler --------------------------------------------------------
When writing a
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.