PIXNET Logo登入

My Humble House

跳到主文

我的狗窩

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 09 週三 201415:55
  • Copy all to clipboard

gg"*yG
 
gg     移動到檔案起點

"*y    從此起點開始 yank to register *
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(16)

  • 個人分類:vi
▲top
  • 5月 21 週三 201415:56
  • vi 常用指令

/KEYWORD : search forward to find KEYWORD
n : find next
?KEYWORD : search backward to find KEYWORD
N : find previous
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(15)

  • 個人分類:vi
▲top
  • 10月 18 週五 201311:38
  • vi 常用指令

/KEYWORD : search forward to find KEYWORD
n : find next
?KEYWORD : search backward to find KEYWORD
N : find previous
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:vi
▲top
  • 8月 23 週四 201217:12
  • vi cut / copy / paste commands

Using markers and buffers


CommandDescription

mf
set marker named ``f''


`f
go to marker ``f''


´f
go to start of line containing marker ``f''


"s12yy
copy 12 lines into buffer ``s''


"ty}
copy text from cursor to end of paragraph into buffer ``t''


"ly1G
copy text from cursor to top of file into buffer ``l''


"kd`f
cut text from cursor up to marker ``f'' into buffer ``k''


"kp
paste buffer ``k'' into text


(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(35)

  • 個人分類:vi
▲top
  • 8月 23 週四 201211:29
  • vi : delete/move using marker

ma : set a marker at cursor position
`a  : move from here to marker a
'a   : move from here to line marked a
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(16)

  • 個人分類:vi
▲top
  • 8月 21 週二 201212:22
  • vi 如何複製部分a檔案內容至b檔案 (copy part of file a to file b)

Linux command: 
cp a tmp.txt
vi tmp.txt
 
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(247)

  • 個人分類:vi
▲top
  • 8月 21 週二 201211:18
  • vi 的顯示行數與隱藏行數

顯示行數
:set number

隱藏行數
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(17,951)

  • 個人分類:vi
▲top
  • 8月 14 週二 201214:51
  • vi/vim delete commands

 
 
http://www.devdaily.com/linux/vi-vim-delete-line-commands-to-end
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(56)

  • 個人分類:vi
▲top
  • 7月 30 週一 201212:01
  • vi 如何全部取代 (search and replace all)

:g/AAAA/s//BBBB/g   
就會將全文中出現的AAAA用BBBB取代.
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(2,610)

  • 個人分類:vi
▲top
1

個人資訊

bamil
暱稱:
bamil
分類:
生活綜合
好友:
累積中
地區:

熱門文章

  • (66,581)Excel 2007 如何畫出有兩個y軸的圖 (兩個y座標軸)
  • (17,951)vi 的顯示行數與隱藏行數
  • (14,169)Linux 如何比較兩個資料夾內的所有檔案 (Linux command to compare all files in two directories)
  • (4,690)NCVerilog 錯誤訊息 Illegal operand for constant expression [4(IEEE)] 的解法
  • (3,993)[NC-Verilog] ncelab: *F,CUMSTS: Timescale directive missing on one or more modules. 錯誤訊息的原因
  • (1,483)Syntax error: Bad fd number 的解決方法
  • (714)Xterm 的 copy / paste
  • (426)Windows 和 Exceed (X window) 之間的 copy / paste
  • (247)vi 如何複製部分a檔案內容至b檔案 (copy part of file a to file b)
  • (241)ncvlog: *E,UNBERR: (1) unbound instance(s). 的解決方法

文章分類

  • EDA (5)
  • Verilog (1)
  • Matlab (3)
  • Linux/Unix (12)
  • Windows / MS-DOS (3)
  • vi (9)
  • 未分類文章 (1)

最新文章

  • [Design Compiler] "hdl-193" warning: cannot find the design 'XXX' in the library 'work'. (lbr-1)
  • [Vi] 游標跳至列首 (move cursor to beginning of the line)
  • [Vivado] How to change firmware ROM by modifying bitstream (updateMem)
  • [linux] connect to another server with local display (連到另一台主機, 同時把Display參數帶過去)
  • [MATLAB] Pass float/char type data to a C MEX function
  • [MATLAB] MTIMES is not fully supported for integer classes
  • [Linux] How to copy several specific files to one directory (複製多個特定檔案到別的資料夾)
  • [linux] search keyword in files
  • [vi] 統計string出現次數 (count string in vi)
  • [EDA] ERROR:Portability:3 - This Xilinx application has run out of memory

最新留言

  • [22/05/06] 訪客 於文章「Excel 2007 如何畫出有兩個y軸...」留言:
    回饋您這方面資訊,我是從 PTT搜尋引擎的排名,看...
  • [20/11/23] 訪客 於文章「Linux 如何比較兩個資料夾內的所有檔...」留言:
    您好,想請問如果我兩個不同資料夾內的檔案名稱不同,但其餘皆相...
  • [18/07/28] 訪客 於文章「Linux 如何比較兩個資料夾內的所有檔...」留言:
    this post is very use ful h...
  • [16/05/11] bamil 於文章「[EDA] ERROR:Portabil...」留言:
    To restore the setting: bcd...
  • [15/03/05] 有同樣的問題 於文章「[Windows] Chrome 瀏覽器...」留言:
    應該不是這個問題= =...
  • [14/02/07] seetha sweety 於文章「[Matlab] Comment mul...」留言:
    Here's some great news for tho...
  • [14/02/07] KS. KAVITHA 於文章「[Matlab] Comment mul...」留言:
    Some people are naturally bett...
  • [09/05/02] 咖啡達人 於文章「來自香港的 Thomas Wong "教...」留言:
    歡迎來我的部落格坐坐喔 這裡有好康的事情要告訴大家喔 ...
  • [09/01/12] bb 於文章「漢語拼音...」留言:
    恭喜狗窝开张!...

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: