锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产V综合V亚洲欧美久久,久久免费视频观看,国产91色综合久久免费http://m.shnenglu.com/beautykingdom/category/13011.htmlzh-cnMon, 12 Sep 2011 06:38:41 GMTMon, 12 Sep 2011 06:38:41 GMT60vim configurationhttp://m.shnenglu.com/beautykingdom/archive/2011/05/01/145468.htmlchatlerchatlerSun, 01 May 2011 10:31:00 GMThttp://m.shnenglu.com/beautykingdom/archive/2011/05/01/145468.htmlhttp://m.shnenglu.com/beautykingdom/comments/145468.htmlhttp://m.shnenglu.com/beautykingdom/archive/2011/05/01/145468.html#Feedback0http://m.shnenglu.com/beautykingdom/comments/commentRss/145468.htmlhttp://m.shnenglu.com/beautykingdom/services/trackbacks/145468.htmlset showmatch        " Show matching brackets.
set ignorecase        " Do case insensitive matching
set smartcase        " Do smart case matching
set incsearch        " Incremental search
set autowrite        " Automatically save before commands like :next and :make
set hidden             " Hide buffers when they are abandoned
set mouse=a        " Enable mouse usage (all modes)
set nu            " set line no on each line 

 

  • 浣跨敤ctrl + r 鍙互鎼滅儲鍘嗗彶鍛戒護騫舵墽琛?/span>
  • 浣跨敤history鏄劇ず鍘嗗彶錛?span style="line-height: 1.5">!!鎵ц涓婁竴鏉″懡浠わ紝!num鎵ц絎?span style="line-height: 1.5">num鏉″懡浠?/span>
  • 浣跨敤vi鏃訛紝q錛佽皟鍑虹紪杈戝巻鍙?/span>
  • 鍒拌棣?span style="line-height: 1.5">0錛岃灝?span style="line-height: 1.5">$錛岀涓涓潪絀烘牸^
  • 涓嶉鍑?span style="line-height: 1.5">vi鑳界洿鎺ユ墽琛屽懡浠わ紝濡?span style="line-height: 1.5">make
  • V妯″紡錛氭甯革紙v錛夛紝琛屾ā寮?span style="line-height: 1.5">(澶у啓V)錛?span style="line-height: 1.5">block妯″紡錛?span style="line-height: 1.5">Ctrl + v錛?/span>
  • V妯″紡涓嬶紝<>緙╄繘鎵鏈?/span>
  • u鎾ら攢錛?span style="line-height: 1.5">ctrl+r鍙嶆挙閿
  • ctrl+a璺沖埌鍛戒護琛岄錛?span style="line-height: 1.5">ctrl+e璺沖埌鍛戒護琛屽熬
  • :s/src/dest/(g) 鏇挎崲褰撳墠琛岀涓涓垨鎵鏈?/span>
  • :%s/src/dest/g  鏇挎崲鍏ㄥ眬絎竴涓垨鎵鏈夈?/span>
  • bn,bp,bf,bl鐢ㄤ簬鍒囨崲緙撳啿鍖猴紝bd鍒犻櫎緙撳啿鍖?/span>
  • *錛?span style="line-height: 1.5">#錛夌敤浜庢煡鎵懼厜鏍囦綅緗鐨勭紦鍐插尯
  • ctrl+], ctrl+T鐢ㄤ簬璺寵漿瀹氫箟涓庡0鏄?/span>
  • ctrl+p錛?span style="line-height: 1.5">ctrl+n鐢ㄤ簬鍗曡瘝琛ュ叏
  • ctrl+o錛?span style="line-height: 1.5">ctrl+i鐢ㄤ簬榧犳爣鍓嶅悗浣嶇疆璺寵漿
  • !command鍦?span style="line-height: 1.5">vi涓墽琛屽閮ㄥ懡浠?/span>
  • 璋冩暣紿楀彛錛?span style="line-height: 1.5">ctrl+w |瀹藉害鏈澶у寲錛屽姞鍑忓搴?span style="line-height: 1.5"><>
  • 璋冩暣瀹藉彛錛?span style="line-height: 1.5">ctrl+w _楂樺害鏈澶у寲錛屽姞鍑忛珮搴?span style="line-height: 1.5">+-
  • 璋冩暣紿楀紑錛?span style="line-height: 1.5">Ctrl+w =,浣跨獥鍙g瓑瀹?/span>




chatler 2011-05-01 18:31 鍙戣〃璇勮
]]>
vim澶у皬鍐欒漿鎹?/title><link>http://m.shnenglu.com/beautykingdom/archive/2010/09/17/126900.html</link><dc:creator>chatler</dc:creator><author>chatler</author><pubDate>Fri, 17 Sep 2010 10:01:00 GMT</pubDate><guid>http://m.shnenglu.com/beautykingdom/archive/2010/09/17/126900.html</guid><wfw:comment>http://m.shnenglu.com/beautykingdom/comments/126900.html</wfw:comment><comments>http://m.shnenglu.com/beautykingdom/archive/2010/09/17/126900.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/beautykingdom/comments/commentRss/126900.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/beautykingdom/services/trackbacks/126900.html</trackback:ping><description><![CDATA[<div id="moeuceq" class="blogstory" style="float: left; width: 823px; font-size: 14px; line-height: 21px; font-family: verdana, sans-serif; "><div class="smiokug" id="art" width="560" style="margin-top: 15px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px; "><font size="2"><br>vim涓ぇ灝忓啓杞寲鐨勫懡浠ゆ槸<br>gu鎴栬単U<br>褰㈣薄涓鐐圭殑瑙i噴灝辨槸灝弖鎰忓懗鐫杞負灝忓啓錛涘ぇU鎰忓懗鐫杞負澶у啓.<br><br>鍓╀笅鐨勫氨鏄榪欎袱涓懡浠ょ殑闄愬畾錛堥檺瀹氭搷浣滅殑琛岋紝瀛楁瘝錛屽崟璇嶏級絳夌瓑<br><br>1銆佹暣綃囨枃绔犲ぇ鍐欒漿鍖栦負灝忓啓<br>  鎵撳紑鏂囦歡鍚庯紝鏃犻』榪涘叆鍛戒護琛屾ā寮忋傞敭鍏?ggguG <br><br></font><blockquote style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(152, 164, 127); border-right-color: rgb(152, 164, 127); border-bottom-color: rgb(152, 164, 127); border-left-color: rgb(152, 164, 127); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(245, 245, 245); font: normal normal normal 12px/normal simsun; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; background-position: initial initial; background-repeat: initial initial; "><font size="2">瑙i噴涓涓嬶細ggguG鍒嗕綔涓夋gg gu G<br>gg=鍏夋爣鍒版枃浠剁涓涓瓧絎?br>gu=鎶婇夊畾鑼冨洿鍏ㄩ儴灝忓啓<br>G=鍒版枃浠剁粨鏉?br></font></blockquote><font size="2">2銆佹暣綃囨枃绔犲皬鍐欒漿鍖栦負澶у啓<br>  鎵撳紑鏂囦歡鍚庯紝鏃犻』榪涘叆鍛戒護琛屾ā寮忋傞敭鍏?gggUG <br><br></font><blockquote style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(152, 164, 127); border-right-color: rgb(152, 164, 127); border-bottom-color: rgb(152, 164, 127); border-left-color: rgb(152, 164, 127); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(245, 245, 245); font: normal normal normal 12px/normal simsun; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; background-position: initial initial; background-repeat: initial initial; "><font size="2">瑙i噴涓涓嬶細gggUG鍒嗕綔涓夋gg gU G<br>gg=鍏夋爣鍒版枃浠剁涓涓瓧絎?br>gU=鎶婇夊畾鑼冨洿鍏ㄩ儴澶у啓<br>G=鍒版枃浠剁粨鏉?br></font></blockquote><font size="2">3銆佸彧杞寲鏌愪釜鍗曡瘝<br></font><blockquote style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(152, 164, 127); border-right-color: rgb(152, 164, 127); border-bottom-color: rgb(152, 164, 127); border-left-color: rgb(152, 164, 127); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(245, 245, 245); font: normal normal normal 12px/normal simsun; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; background-position: initial initial; background-repeat: initial initial; "><font size="2">guw 銆乬ue<br>gUw銆乬Ue<br>榪欐牱錛屽厜鏍囧悗闈㈢殑鍗曡瘝渚夸細榪涜澶у皬鍐欒漿鎹?br>鎯寵漿鎹?涓崟璇嶇殑鍛戒護濡備笅錛?br>gu5w銆乬u5e<br>gU5w銆乬U5e<br></font></blockquote><font size="2">4銆佽漿鎹㈠嚑琛岀殑澶у皬鍐?br>灝嗗厜鏍囧畾浣嶅埌鎯寵漿鎹㈢殑琛屼笂錛岄敭鍏ワ細1gU 浠庡厜鏍囨墍鍦ㄨ 寰涓嬩竴琛岄兘榪涜灝忓啓鍒板ぇ鍐欑殑杞崲<br>10gU錛屽垯榪涜11琛屽皬鍐欏埌澶у啓鐨勮漿鎹?br>浠ユ綾繪帹錛屽氨鍑虹幇鍏朵粬鐨勫ぇ灝忓啓杞崲鍛戒護<br>gU0        錛氫粠鍏夋爣鎵鍦ㄤ綅緗埌琛岄錛岄兘鍙樹負澶у啓<br>gU$        錛氫粠鍏夋爣鎵鍦ㄤ綅緗埌琛屽熬錛岄兘鍙樹負澶у啓<br>gUG        錛氫粠鍏夋爣鎵鍦ㄤ綅緗埌鏂囩珷鏈鍚庝竴涓瓧絎︼紝閮藉彉涓哄ぇ鍐?br>gU1G      錛氫粠鍏夋爣鎵鍦ㄤ綅緗埌鏂囩珷絎竴涓瓧絎︼紝閮藉彉涓哄ぇ鍐?/font></div><div class="yaymqqq" id="art" width="560" style="margin-top: 15px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px; "><font size="2">from:</font></div><div class="yqkeiqw" id="art" width="560" style="margin-top: 15px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px; "><font size="2"><a >http://blog.csdn.net/guowake/archive/2008/03/25/2217086.aspx</a></font></div></div> <img src ="http://m.shnenglu.com/beautykingdom/aggbug/126900.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/beautykingdom/" target="_blank">chatler</a> 2010-09-17 18:01 <a href="http://m.shnenglu.com/beautykingdom/archive/2010/09/17/126900.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>vi know-howshttp://m.shnenglu.com/beautykingdom/archive/2010/03/16/109825.htmlchatlerchatlerTue, 16 Mar 2010 07:04:00 GMThttp://m.shnenglu.com/beautykingdom/archive/2010/03/16/109825.htmlhttp://m.shnenglu.com/beautykingdom/comments/109825.htmlhttp://m.shnenglu.com/beautykingdom/archive/2010/03/16/109825.html#Feedback0http://m.shnenglu.com/beautykingdom/comments/commentRss/109825.htmlhttp://m.shnenglu.com/beautykingdom/services/trackbacks/109825.htmlThese commands help you move around in a file:
h
Move left one character on the current line
j
Move down to the next line
k
Move up to the previous line
l
Move right one character on the current line
w
Move to the next word on the current line
e
Move to the next end of word on the current line
b
Move to the previous beginning of the word on the current line
Ctrl-f
Scroll forward one page
Ctrl-b
Scroll backward one page
If you type a number before any of these commands, then the command will be
executed that many times. This number is called a repetition count or simply count.
For example, 5h will move left five characters. You can use repetition counts with
many vi commands.

Moving to lines
The following commands help you move to specific lines in your file:
G
Moves to a specific line in your file. For example, 3G moves to line 3. With no
parameter, G moves to the last line of the file.
H
Moves relative to the top line on the screen. For example, 3H moves to the line
currently 3rd from the top of your screen.
L
Is like H, except that movement is relative to the last line on screen. Thus, 2L
moves to the second-to-last line on your screen.

Getting out of vi
One of the most useful things to know about a new editor is how to get out of it
before you do anything you shouldn't do, such as destroying an important
configuration file. You can get out of vi by saving or abandoning your changes, or by
restarting from the beginning. If these commands don't seem to work for you, you
may be in insert mode, which you will learn about in a moment. If in doubt, pressing
Esc will leave insert mode and return you to command mode where these
commands should work.
:q!
Quit editing the file and abandon all changes. This is a very common idiom for
getting out of trouble.
:w!
Write the file (whether modified or not). Attempt to overwrite existing files or
read-only or other unwritable files. You may give a filename as a parameter,
and that file will be written instead of the one your started with. It's generally
safer to omit the ! unless you know what you're doing here.
ZZ
Write the file if it has been modified. Then exit. This is a very common idiom for
normal vi exit.
:e!
Edit the current disk copy of the file. This will reload the file, abandoning
changes you have made. You may also use this if the disk copy has changed
for some other reason and you want the latest version.
:!
Run a shell command. Type the command and press Enter. When the
command completes, you will see the output and a prompt to return to vi
editing.
Notes:
1. When you type the colon (:), your cursor will move to the bottom line of
your screen where you can type in the command and any parameters.
2. If you omit the exclamation point from the above commands, you may
receive an error message such as one saying changes have not been
saved, or the output file cannot be written (for example, you are editing a
read-only file).
3. The : commands have longer forms (:quit, :write, :edit), but the longer
forms are seldom used.
vi modes
The vi editor has two modes of operation:
Command mode
In command mode, you move around the file and perform editing operations
such as searching for text, deleting text, changing text, and so on. You usually
start in command mode.
Insert mode
In insert mode, you type new text into the file at the insertion point. To return to
command mode, press the Esc (Escape) key.
These two modes determine the way the editor behaves. Anything you type in insert
mode is considered text to be inserted into the file. If you are trying to type a
command and nothing happens, or the character appears under the cursor, then you
probably forgot to press Esc to escape from insert mode.
Editing text
Now that you can open a file in vi, move around it and get out, it's time to learn how
to edit the text in the file.
Modifying text
Use the following commands when you need to insert, delete, or modify text. Note
that some of these commands have an uppercase form that is similar to the
lowercase form; see the descriptions below.
i
Enter insert mode before the character at the current position. Type your text
and press Esc to return to command mode. Use I to insert at the beginning of
the current line.
a
Enter insert mode after the character at the current position. Type your text and
press Esc to return to command mode. Use A to insert at the end of the current
line.
c
Use c to change the current character and enter insert mode to type
replacement characters.
o
Open a new line for text insertion below the current line. Use O to open a line
above the current line.
cw
Delete the remainder of the current word and enter insert mode to replace it.
Use a repetition count to replace multiple words. Use c$ to replace to end of
line.
dw
Same as for cw (and c$) above, except that insert mode is not entered.
dd
Delete the current line. Use a repetition count to delete multiple lines.
x
Delete the character at the cursor position. Use a repetition count to delete
multiple characters.
p
Put the last deleted text after the current character. Use P to put it before the
current character.
xp
This combination of x and p is a useful idiom. This swaps the character at the
cursor position with the one on its right.
Searching text
You can search for text in your file using regular expressions:
/
Use / followed by a regular expression to search forward in your file.
?
Use ? followed by a regular expression to search backward in your file.
n
Use n to repeat the last search in either direction.
You may precede any of the above search commands with a number indicating a
repetition count. So 3/x will find the third occurrence of x from the current point, as
will /x followed by 2n. Similarly, 2/^e will find the second line from the current position
that starts with e.
Note that search will wrap around to the top once the bottom of file is reached.
Getting help
Another useful command in vi is the help command, which you invoke by typing
:help. Help will open inside vi; use the :q command to leave help and go back to
your work. If you want help on some particular topic, say wrapping of lines, try
adding a word after the :help command, for example: :help wrap.
Putting it together
We began by wanting to add a line to our count1.sh file. To keep the original and
save the modified version as count2.sh, we could use these vi commands once we
open the file with vi. Note that <Esc> means to press the Esc key.
Listing 3. Editor commands to add a line to count1.sh
1G
O
sleep 20<Esc>
:w! count2.sh
:q
These commands do the following:
1G
Move to the first line of the file
O
Open a new line above it and enter insert mode
sleep 20
The new text that you want to add
<Esc>
Press the Esc key to return to command mode
:w! count2.sh
Write the file to disk
:q
Close vi
Simple when you know how.
This is the last article for Exam 101 - Topic 103: GNU and UNIX commands. See our
series roadmap for a description of and link to other articles in this series.

from錛?br>IBM Developer works


chatler 2010-03-16 15:04 鍙戣〃璇勮
]]>
VIM鎶宸?/title><link>http://m.shnenglu.com/beautykingdom/archive/2010/02/26/108519.html</link><dc:creator>chatler</dc:creator><author>chatler</author><pubDate>Fri, 26 Feb 2010 14:49:00 GMT</pubDate><guid>http://m.shnenglu.com/beautykingdom/archive/2010/02/26/108519.html</guid><wfw:comment>http://m.shnenglu.com/beautykingdom/comments/108519.html</wfw:comment><comments>http://m.shnenglu.com/beautykingdom/archive/2010/02/26/108519.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/beautykingdom/comments/commentRss/108519.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/beautykingdom/services/trackbacks/108519.html</trackback:ping><description><![CDATA[鑷姩鎺掔増:  gg=G<br>     鍦ㄧ矘璐翠簡涓浜涗唬鐮佷箣鍚庯紝vim鍙樺緱姣旇緝涔憋紝鍙鎵цgg=G灝辮兘鎼炲畾<br><br style="font-weight: bold;">杈撳叆涓嶄簡涓枃鎬庝箞鍔?br>    瑕佹妸vi鐨別ncoding璁劇疆鎴愬悓緋葷粺鐨勭紪鐮佷竴鏍風殑錛岄氬父灝嗗叾璁劇疆鎴恥tf8 , set encoding=utf8<br><br>濡備綍寮ヨˉvi涓嶈兘澶熸湁澶氫釜鏍囩欏墊樉紺?br>    闈炲父涔犳儻editplus鐨勫鏍囩欏碉紝鍙互鍚屾椂鎵撳紑澶氫釜鏂囦歡錛寁i涓嶆敮鎸佹爣絳鵑〉錛屼絾鏄痸i鏈塨uffer鍔熻兘錛寁i涔熷彲浠ユ墦寮澶氫釜鏂囦歡錛屽綋鐒朵竴嬈″彧鑳界湅鍒頒竴涓枃浠訛紝鍦ㄥ懡浠よ妯″紡涓嬩嬌鐢?ls 鍛戒護錛屽彲浠ョ湅鍒版墦寮鐨勫湪buffer閲岀殑鎵鏈夌殑鏂囦歡鍚嶃備緥濡傦細<br>  1 #h   "control.c"                    line 1<br>  2      "queue.c"                      line 0<br>  3 %a + "workcrew.c"                   line 161<br><br>姣忎釜鏂囦歡閮芥湁涓涓爣鍙鳳紝濡傛灉浣犳兂緙栬緫queue.c鏂囦歡錛岃浣忓畠鐨勬爣鍙鋒槸2 錛屽湪鍛戒護琛屾ā寮忎笅杈撳叆<br> :e #2<br>灝卞彲浠ョ紪杈憅ueue.c榪欎釜鏂囦歡浜嗭紝濂藉儚寰堥夯鐑︼紝涓嶈繃榪樻湁綆鍗曠殑鏂規硶錛屽彲浠ュ皢榪欎竴緋誨垪鐨勮緭鍏ユ槧灝勫埌涓涓敭錛?br>渚嬪 F5 , 鍦ㄥ懡浠よ妯″紡涓嬭緭鍏?:<br> :map <F5> :ls<CR>:e #<br>鐒跺悗鎸変笅F5鐪嬬湅鏄粈涔堟晥鏋滐紝鍙互寰堢畝鍗曠殑閫夋嫨瑕佺紪杈戠殑鏂囦歡浜嗭紝鏄笉鏄篃鎸烘柟渚匡紝<br>鎶婁笂闈㈢殑 map璇彞 鏀懼叆 .vimrc鏂囦歡錛?榪欐牱姣忔鍚姩vi錛孎5灝遍兘鐢熸晥浜?br>Vi鍦ㄩ粯璁ょ殑鎯呭喌涓嬪湪buffer閲岀殑鏂囦歡鍒囨崲鐨勮繃紼嬩腑錛屽繀欏昏淇濆瓨褰撳墠鏂囦歡錛屾墠鑳藉垏鎹㈠埌鍏跺畠鏂囦歡錛岃繖鏍蜂笉澶柟渚匡紝鍙互鐢ㄥ涓嬬殑鍛戒護鎼炲畾錛?br>:set hidden<br>榪欐牱灝卞悓editplus鐨勬爣絳鵑〉宸笉澶氫簡銆?br><br>蹇界暐澶у皬鍐?br>vim鐨勬煡鎵懼姛鑳芥槸鍦ㄥ懡浠よ涓嬭緭鍏?:/寰呮煡鐨勫瓧絎︿覆錛岄粯璁im鐨勬煡鎵炬槸鍖哄垎澶у皬鍐欑殑錛屽叾瀹炲ぇ澶氭暟鎯呭喌涓嬮兘鏄兂榪涜蹇界暐澶у皬鍐欑殑鏌ユ壘錛?鍙互浣跨敤濡備笅鍛戒護錛?br>:set ignorecase<br>榪欐牱vim鍦ㄦ煡鎵炬椂灝變細蹇界暐澶у皬鍐欎簡錛?鍙互灝嗗叾鍔犲叆.vimrc ,灝變笉鐢ㄦ瘡嬈¢兘杈撳叆浜嗐?br><br style="font-weight: bold;">濡備綍鍦╲im涓紪璇戠▼搴?br>鍘熸潵緙栫▼搴忥紝鎴戦兘鏄湪vim涓嬬紪杈戯紝鐒跺悗鍦ㄥ彟澶栫殑涓涓粓绔獥鍙d腑榪涜 make ,鍏跺疄鍦╲im涓氨鍙互瀹屾垚make,鑰屼笖鍙互灝嗙紪璇戠殑緇撴灉涔熸樉紺哄湪vim閲岋紝鍏堟墽琛?:copen 鍛戒護錛屽皢緇撴灉杈撳嚭鐨勭獥鍙f墦寮錛岀劧鍚庢墽琛?:make<br>緙栬瘧鍚庣殑緇撴灉灝辨樉紺哄湪浜哻open鎵撳紑鐨勫皬紿楀彛閲屼簡錛岃屼笖鐢ㄩ紶鏍囧弻鍑婚敊璇俊鎭紝灝變細璺寵漿鍒板彂鐢熼敊璇殑琛屻?br><br>vi涓殑蹇熺紪杈戯細 <br><font class="f14" id="zoom"><font color="#000000">鍦ㄩ氬父妯″紡涓?<br>/ 鍚戜笅鏌ユ壘<br>? 鍚戜笂鏌ユ壘<br>* 鍚戜笅鏌ユ壘褰撳墠鍏夋爣涓嬬殑鍗曡瘝<br># 鍚戜笂鏌ユ壘褰撳墠鍏夋爣涓嬬殑鍗曡瘝.<br>f{char} 璺沖埌褰撳墠琛?褰撳墠浣嶇疆鍙寵竟鐨剓char}鐨勪綅緗? 濡?br>using namespace std;<br>鐢╢; 灝嗕細璺沖埌;鎵鍦ㄧ殑浣嶇疆.<br>F{char} 綾諱技f{char},涓嶈繃,鏄乏杈?<br>t{char} 綾諱技f{char},涓嶈繃,鎶婂厜鏍囨斁鍦▄char}鐨勫墠涓涓綅緗?<br>T{char} 綾諱技t{char},涓嶈繃,鏄乏杈?<br>; 閲嶅t T f T 鎸囦護<br>, 鏈濈浉鍙嶆柟鍚戦噸澶峵 T f T 鎸囦護<br><br>鍏? 瀹烇紝浣犲湪浣跨敤*鍜?鐨勬椂鍊欙紝鏄浛鎹負 /鍜?鏉ュ疄鐜扮殑銆?/font></font><br>from錛?br>http://blog.csdn.net/coofive/archive/2006/04/17/666598.aspx <br><br> <img src ="http://m.shnenglu.com/beautykingdom/aggbug/108519.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/beautykingdom/" target="_blank">chatler</a> 2010-02-26 22:49 <a href="http://m.shnenglu.com/beautykingdom/archive/2010/02/26/108519.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>vim濂囨妧娣閥http://m.shnenglu.com/beautykingdom/archive/2009/11/25/101908.htmlchatlerchatlerWed, 25 Nov 2009 07:50:00 GMThttp://m.shnenglu.com/beautykingdom/archive/2009/11/25/101908.htmlhttp://m.shnenglu.com/beautykingdom/comments/101908.htmlhttp://m.shnenglu.com/beautykingdom/archive/2009/11/25/101908.html#Feedback0http://m.shnenglu.com/beautykingdom/comments/commentRss/101908.htmlhttp://m.shnenglu.com/beautykingdom/services/trackbacks/101908.html鎬葷粨涓涓嬭嚜宸辯粡甯哥敤vim鐨勪竴浜涙妧宸у拰鎿嶄綔錛屽緢鍩烘湰鐨勫氨涓嶅啓浜嗭紝寰堥珮娣辯殑榪樻湁寰呬互鍚庤ˉ鍏咃細
  • 鏇挎崲
:%s/abc/abcc/gc
c琛ㄧず璇㈤棶
:$s/abc/abcc/ge
e琛ㄧず鍗充嬌鏁翠釜鏂囦歡娌℃壘鍒頒竴涓尮閰嶇殑鐩爣涔熶笉瑕佹姤閿?br style="font: 12px song,Verdana;">:.,$s/yes/no
.琛ㄧず褰撳墠琛岋紝$琛ㄧず鏈鍚庝竴琛屻傛諱綋鐨勮鍙ヨ〃紺轟粠褰撳墠琛屽埌鏈鍚庝竴鏍瘋繘琛屽尮閰?br style="font: 12px song,Verdana;">:s+one/two+one or two+g
鐢?鏇挎崲/
:s/good\|nice/handsome/g  
鎶奼ood鎴杗ice鏇挎崲鎴恏andsome
:s/aaa/bbb/g4    
鍙浛鎹?琛?br style="font: 12px song,Verdana;">:4,9s/\d\+/\=submatch(0)+1/
絎?鍒?琛岀殑鏁板瓧鍔犱竴
:%s/^\w/\=toupper(submatch(0))/g
棣栧瓧姣嶅ぇ鍐?br style="font: 12px song,Verdana;">:%s/^/\=line(".").". "/g
鍔犺鍙?br style="font: 12px song,Verdana;">
  • 璺寵漿
/^abc 
杞埌浠bc寮濮嬬殑琛?br style="font: 12px song,Verdana;">ctrl+-> /  ctrl + <-  
涓嬈$Щ鍔ㄤ竴涓崟璇?br style="font: 12px song,Verdana;">30+ /  30-  
鍚戝墠/鍚戝悗縐誨姩30琛?br style="font: 12px song,Verdana;">ctrl+o / ctrl_i  
璺沖埌鏇磋佺殑浣嶇疆/璺沖埌鏇存柊鐨勪綅緗?br style="font: 12px song,Verdana;">{ 
璺沖埌涓婁竴孌?nbsp;    
} 璺沖埌涓嬩竴孌?br style="font: 12px song,Verdana;">‘“ 
璺沖埌涓婃鍏抽棴鏂囦歡鏃訛紝鍦∟OMAL妯″紡涓嬬殑鍏夋爣鎵鍦ㄨ
’^ 
璺沖埌涓婃鍏抽棴鏂囦歡鏃訛紝鍦↖NSERT妯″紡涓嬬殑鍏夋爣鎵鍦ㄨ
  • 瀹?/li>
qa 
寮濮嬭褰曞畯錛堣繖閲岀殑a鍙互鐢ㄤ換鎰忎竴涓瓧姣嶄唬鏇匡級
q  
緇撴潫瀹忚褰?br style="font: 12px song,Verdana;">@a 
鎵ц鍚嶅瓧涓篴鐨勫畯
  • 鏍囪
ma   
鏍囪姝よ涓篴
‘a   
縐誨埌鏍囪涓篴鐨勮
mA/'A  
鍙互璺ㄦ枃浠惰繘琛屾爣璁?br style="font: 12px song,Verdana;">
  • 琛ュ叏
Insert妯″紡涓?ctrl+n  / ctrl+p  
琛ュ叏
ctrl+a         
閲嶅涓婃鍦↖nsert妯″紡涓嬬殑鍔ㄤ綔
Insert妯″紡涓嬶紝ctrl+y / ctrl+e  
閲嶅涓婁竴琛?涓嬩竴琛屽厜鏍囧鐨勫瓧絎?br style="font: 12px song,Verdana;">:iab xl xulei 
褰撻敭鍏l(絀烘牸)鏃訛紝浼氳鏇挎崲鎴恱ulei
ctrl+x ctrl+n
鍦ㄦ枃浠朵腑琛ュ叏浠ュ墠鍑虹幇榪囩殑鍗曡瘝
ctrl+x ctrl+p
鍦ㄦ枃浠朵腑琛ュ叏浠ュ墠鍑虹幇榪囩殑鍗曡瘝
ctrl+x ctrl+l
鍦ㄦ枃浠朵腑琛ュ叏浠ュ墠鍑虹幇榪囩殑涓琛?br style="font: 12px song,Verdana;">ctrl+x ctrl+f
琛ュ叏鏂囦歡鍚?br style="font: 12px song,Verdana;">ctrl+x ctrl+k
鍗曡瘝琛ュ叏
ctrl+x ctrl+t
鍚屼箟璇嶈ˉ鍏?br style="font: 12px song,Verdana;">
  • 鍏朵粬
鐢╲閫変腑澶氳錛?鐒跺悗 !sort         
鍙互瀹炵幇鎺掑簭
g ctrl+G(鍏堟寜g鐒跺悗鎸塩trl+G)     
緇熻瀛楁暟錛堟垨鍏堢敤v閫変腑閮ㄥ垎闇瑕佺粺璁$殑鏂囧瓧錛?br style="font: 12px song,Verdana;">灝嗗厜鏍囩Щ鍒頒竴涓嚱鏁頒笂錛孠錛堝ぇ鍐欙級    
灝嗚嚜鍔╩an姝ゅ嚱鏁?br style="font: 12px song,Verdana;">鍦ㄤ竴涓獀im鏂囦歡涓?grep abc *      
灝嗗尮閰嶅埌鎵鏈夊寘濂絘bc鐨勬枃浠?:cn涓嬩竴涓?nbsp; :cp涓婁竴涓?nbsp; :cl鏂囦歡鍒楄〃
vim `grep -l abc *`           
鎵撳紑鍖呭惈abc鐨勬墍鏈夋枃浠?br style="font: 12px song,Verdana;">ctrl+c=esc
:history                      
鍛戒護璁板綍
q:                            
鎵撳紑鍛戒護琛屽巻鍙茬獥鍙?br style="font: 12px song,Verdana;">q/                            
鎵撳紑鏌ユ壘鍘嗗彶紿楀彛
:w filename                   
鍙﹀瓨涓?br style="font: 12px song,Verdana;">錛?錛?w filename              
1-3琛屽彟瀛樹負
Insert妯″紡涓嬶紝ctrl+w  
鍒犻櫎鍓嶄竴涓崟璇?br style="font: 12px song,Verdana;">Insert妯″紡涓嬶紝ctrl+u  
鍒犻櫎姝よ鍏夋爣鍓嶆墍鏈夊崟璇?br style="font: 12px song,Verdana;">:set showmatch  
褰撻敭鍏f(i>0)鐨?鐨勬椂鍊欙紝鍏夋爣浼氳煩鍒?澶勫仠鐣?/10縐掞紝鍐嶅洖鏉?br style="font: 12px song,Verdana;">:set cindent shiftwidth=4   
璁劇疆緙╄繘
=a{     
璋冩暣{}涔嬮棿鐨勭緝榪涙牸寮?br style="font: 12px song,Verdana;">gu  
鍙樺皬鍐?nbsp; 
gU 
鍙樺ぇ鍐?br style="font: 12px song,Verdana;">鍏夋爣瀹氫綅鍦ㄦ暟瀛椾笂ctrl+a 
澧?



杞嚜錛?/span>


chatler 2009-11-25 15:50 鍙戣〃璇勮
]]>
久久99热精品| 欧美亚洲色综久久精品国产| 国产成人久久精品一区二区三区 | 99999久久久久久亚洲| 久久伊人精品一区二区三区| 奇米影视7777久久精品人人爽| 国产精品成人精品久久久| 国产成人久久精品二区三区| 国产精品99久久不卡| 国产一区二区三精品久久久无广告 | 97久久天天综合色天天综合色hd| 久久青青草原亚洲av无码app| 99精品国产综合久久久久五月天 | 麻豆久久久9性大片| 无码人妻少妇久久中文字幕| 久久综合五月丁香久久激情| 久久久久免费精品国产| 久久精品无码一区二区无码| 久久国产精品一区二区| 国内精品久久久久久久涩爱| 亚洲国产成人精品女人久久久 | 国产美女久久精品香蕉69| 欧洲人妻丰满av无码久久不卡| 精品国产91久久久久久久| 国产成人99久久亚洲综合精品| 一本一道久久a久久精品综合| 狠狠色婷婷久久综合频道日韩| 国产产无码乱码精品久久鸭| 国产999精品久久久久久| 三级三级久久三级久久| 成人综合伊人五月婷久久| 久久久久国产精品麻豆AR影院 | 久久精品无码专区免费东京热| 国产精品99久久不卡| 99精品久久久久久久婷婷 | 色综合久久中文综合网| 久久露脸国产精品| aaa级精品久久久国产片| 四虎影视久久久免费| 97精品久久天干天天天按摩| 综合久久精品色|