2011年4月20日 星期三

vim + snipmate

snipMate.vim aims to be an unobtrusive, concise vim script that implements some of TextMate's snippets features in Vim. A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a

2011年4月18日 星期一

vim 常用的功能(未完

1. 
Q.How To Show Line Numbers In vi / vim Text Editor
    [esc]+:set number
    ps:可在~./vimrc 中加入set number


2.
Q.VI / VIM: Insert Current Date / Time
    [esc]+r + !date

3.
Q.分割視窗,改變視窗大小
   [esc]+: + sp [filename] .沒加filename時,其以原文件分割,(同一文件,可不同位置)
   [esc]+: + vsp[filename] .以vertical  windows.
   改變分割視窗大小
   [esc] + : + res N
   [esc] + : + vertical res N

4.
 Q.在分割視窗下,改變其位置
 ctrl + W + H[J,K,L]

5.複製,到不同的clip上(reg)
   可以用 "1y10y  此為將游標下10行,copy 到 reg1中,而貼上時,"1p

6.GUI clip,vim ??

5.windows move,? windows buffer?
   http://www.cyberciti.biz/

更新應用程式on ubuntu

前因:
一直以後,在使用firefox時,其原來內建於ubuntu.版本為3.6
雖然有用其ubuntu中的程式管理"ubuntu軟體管理中心"這個去找
新的firefox,或是在原本的firefox的功能.
來嘗試來更新,但一直沒有找到相關的.orz
(而且,firefox 3.6 在跑大量flash時常crash)

2011年4月2日 星期六

screen blanking

前題:
因為,在我的Ubuntu下.雖然有選項可以鎖往螢幕.但其螢幕只是全黑.而非關閉螢幕.
前陣子,找到一篇在講在X下設定的文章.目前會先關閉螢幕,再由系統來進入鎖住的動作