Distinguish between Real Lines and Display LinesUnlike many text editors, Vim makes a distinction between real lines and display lines. When the "wrap" setting is enabled (and it's on by default), each line of text that exceeds the width of the
Meet the Global CommandThe :global command allows us-to-run an Ex-command on the matches a particular pattern. Let's start by studying its syntax. The:global command takes the following form (See:h: g):: The global command allows us to execute the
Intent Act Repeat ReverseMake a change {edit}. UScan line for next character f{char}/T{char}; ,Scan Line for previous character f{char}/T{char}; ,Scan document for next match/pattern n nScan document for previous match?pattern N nPerform
Vim plugin: Https://github.com/ma6174/vimIf the Xshell comes with fonts, some of the plugin's reminders will moveThe following settingsMy favorite Xshell font settings[Comfort Color]text=c0c0c0cyan (bold) =2ad1b8text (bold)
Linux under the opening of some text files will encounter garbled, excerpt a method:1)txt text character garbledIn terminal input gconf-editor, something like The Windows Registry is startedGo to catalogue
Recently you've been learning to develop Ruby using the Vim editor. Follow the online tutorial to install VIM. The address of the official website is difficult to download. Usesudo Install VIM-GTKThe first download does not come down, later I think
I posted my use of vim configuration and plug-in configuration, these things can only be a script stack, no discussion of efficient code reading development.Let's write the frequently used commands, and start with the Configure F-Series shortcut
Vim Wangyunpeng.txt Create a wangyunpeng.txt fileEnter "I" into insert modeDisplay line number, you need to enter ": Se nu" in command modeCp/etc/services/tmp/services Copy the Services file under the ETC directory to the TMP directory name is also
(1): Before installing the new version of Vim, you need to uninstall the old version of Vim, and then execute the following commands under Terminal: sudo apt-get remove vim sudo apt-get remove vim-runtime sudo apt-get remove gvim
Use Vim to edit documents today after connecting to CentOS with XshellBecause there was a temporary closure and no saving.Once again open the VIM prompt to restore, but each time you open the file to restore, so found the following methods and the
ObjectiveHave always been to Linux and vim, in fact, Windows is also very good, because there are some situations in the work can only use Windows to develop, including some APIs or SDK are only Windows version, just use Linux when the feeling and
Just list my usual, richer and more comprehensive please do it yourself GoogleBasic command:u : Undo Step up ActionI: InsertSearch for words:/word : Starts at the cursor position, looking down to a name named word the string? Word: Starting at
1.vim Add PluginGitHub above Yangyangwithgnu written very well, recommended: Https://github.com/yangyangwithgnu/use_vim_as_ideHowever, it seems that some can not be used, of course, when very few lost lost.2.yangyangwithgnu with vim-powerline
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
We can refer to custom templates when using Vim to create new files to avoid repetitive data format processing that takes too much time.The implementation method is simple and requires only 2 steps:1. In the. Vim/template directory, put your own
Original URL: http://blog.chinaunix.net/uid-23525659-id-4340245.htmlNote: If you are writing code with VIM, it is recommended to turn on Vim's file type auto-detection function, so that when the code is wrapped, it will be aligned automatically,
With Vim for some time, I would like to write down some interesting tricks.
Jump
HJKL, left bottom right.
B/E jump to top/next word
^/$ jump to wardrobe/tail
from {, [, (, corresponding},],) jump to each other, you
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/
Change the TAP key unitVi/vim Editor By default, tap is relative to 8 spaces each time it is pressed.(1) Temporary changesAfter opening the file with VI, enter the following command:: Set tabstop=4Command interpretation: Change to the equivalent of
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