Linux && vim Batch Replacement

String substitution for Linux batch filesSed-i "s/oldstring/newstring/g" ' grep oldstring-rl path 'Vim Multi-line substitution:: 1,2s/str1/str2/g replaces only "str1" into "str2" in line 1th through 2nd in the file.: s/vivian/sky/replaces the

[Practical.vim (2012.9)]. DREW.NEIL.TIP21 Study Summary

Vim has three kinds of Visual mode. In Character-wise Visual mode, we can select anything from a single character up to a range of characters within a line or Spanning multiple lines. This was suitable for working at the level of individual words or

Vim Editor Detailed

Vim is a modal full-screen editor:The following three modes are available:Command mode: Typed characters as command processing instead of typing directly into the documentInput mode: Typed characters are entered directly into the documentLast-line

Basic configuration of Vim

Open the VIMRC file.VIMRC files in ubuntu1204 in the/etc/vim/directory, the VIMRC in this directory is the global vim settings, if only one of the users to change the vim configuration, open the user root directory (that is, ~/ directory) under the.

Vim Common commands

When switching windows, vim Automatic command is , ,, Need to press two times keyboardExvim use of the shift+ arrow keys can only press once, it is more useful"Map ctrl-tab to switch windowNnoremap Nnoremap Nnoremap Nnoremap Windows version

Vim and bash profile source files under Linux

1. ~/.VIMRC"Get rid of nasty about VI consistency mode, avoid some bugs and limitations of previous versions set Nocompatibleset Autoread" Automatically load set after file modification Completeopt=longest,menu "Auto End Set history=1000 "Record

Vim Tips Summary

1. v+ move cursor to select text. 2, y can copy the selected text 3, p can be pasted copy one line: YY Copy the current cursor location to the end of the line: y$ Copy the current cursor position to the beginning of the start: y^ copy three lines:

[Practical.vim (2012.9)]. DREW.NEIL.TIP12 Study Summary

Operator+motion=actionIn vim, d{motion} commands can delete a single character dl , or you can delete an entire word daw , the entire paragraph dap . The same can be used c to change words caw or exercise with commands cap . ycommands are similar to

Vim Insert template automatically after new file

I. Title: VIM Insert template automatically after new fileIi. SummaryBoth the Linux system administrator and the Linux development programmer often stop at the VI Editor programming development under the Linux environment. This article shares, the

Liux VIM Command

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

Some uses of vim

HJKL Lower left upper rightB/b move forward one wordw/w Move backward One worde/e Move backward One word0 move to the first non-empty letter^ Move to the beginning of the line $ move to end of line i/i InsertCC/C ChangeO/O inserts a blank line in

[Practical.vim (2012.9)]. DREW.NEIL.TIP10 Study Summary

Use the Counts to does simple arithmeticIn vim, execution and commands can be added or reduced directly to the numbers in the text.If you do not provide a number to directly execute the above command, the default is to add 1 or minus 1 of the

[Practical.vim (2012.9)]. DREW.NEIL.TIP04 Study Summary

Find and Replace by HandIn the text above, we are going to change the content to Word copyMaybe we can use the following command.:%s/content/copy/gThe above command changes all the content words in the text to copy, but we do not want the content in

Let sublime fully support vim function

Not much else to say, is to let Sublime,vim into one!#Download Sublime FirstHttp://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64%20Setup.exeThis is 2.0.2, to other versions on their own Baidu official website!#Download the attachment

Vi-vim Basic Operation

Vi-vim Editor: Full screen editor, modal editorVim mode:Edit mode (Command mode)        Input mode        Last-line mode (bottom-row mode)Mode conversion:        Edit mode--Input mode:                I: Enter in front of the character where the

How to use Vim ctags

First, with a good system to bring software Ctags most of the UNIX system has ctags software, it can work well with vim. Purpose: Generate C language tag file, implement the jump between related C files.      Usage: 1. Generate the label file in the

Ubuntu Vim Installation Javacomplete

has been very tangled Linux under no similar jcreateor lightweight javaide,vim with Javacomplete although there are a lot of imperfections, but to some extent, to solve the problem of the completion of Java code. Installation process:

Using VIM to develop Python under Linux

Vim Normal mode under input:!python%% indicates the current file nameSet number shows rowsReference NetEase BlogAfter adding the following code to the/ETC/VIM/VIMRC, restart Vim to create 4 spaces by pressing TAB:set tabstop=4 set softtabstop=4 set

Join talkVim (21st back: Continuation of the Vim plug-in's NerdTree)

Join talkVim (21st back: Continuation of the Vim plug-in's NerdTree) Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced the NerdTree in Vim Plug-in .. In this case, we will continue to talk

Join talkVim (13th back: Vim method summary)

Join talkVim (13th back: Vim method summary) Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we talked about the removal of the dragon knife: Vim Life knife method. In this case, we will not

Total Pages: 210 1 .... 157 158 159 160 161 .... 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.