vim and compiler - Linux

Agatha avatar
By Agatha
at 2009-12-22T19:15

Table of Contents

Read the Friendly manual XD

VIM IS... NOT *design-not*

- Vim is not a shell or an Operating System. You will not be able to run a
shell inside Vim or use it to control a debugger. This should work the
other way around: Use Vim as a component from a shell or in an IDE.
A satirical way to say this: "Unlike Emacs, Vim does not attempt to include
everything but the kitchen sink, but some people say that you can clean one
with it. ;-)"
To use Vim with gdb see: http://www.agide.org and http://clewn.sf.net.


基本上我用debugger時都沒有跟vim混用
反正gdb也可以看source :p
或是用漂亮的cgdb(彩色的gdb加分割視窗!)
不過cgdb對於要一直輸入東西進去的程式debug起來很麻煩
要一直切換mode ~"~
所以後來就比較少用了...

c9s大有包一個vimgdb的檔
http://github.com/c9s/vimgdb-deb-builder



另外可以看看vimshell
http://github.com/Shougo/vimshell
這個是放在.vim資料夾內,不過我沒試過@ @

另一個有名的vimshell:(已停止開發)
http://www.wana.at/vimshell/
這個我安裝過,他是用patch,vim7.2會patch失敗(我太嫩了> <)
只能用vim7.0
還有中文會炸掉..所以系統LENG要弄成C

第三種vim shell
http://www.vim.org/scripts/script.php?script_id=2771
這個我也安裝過,他也是plugin的方式
不過有些動作會怪怪的,所以後來刪掉了..



: 有人要解釋一下 emacs 是什麼鬼嗎
: http://unix.rulez.org/~calver/pictures/curves.jpg
: ---
: 我要去連署編輯器版了
: 酷斃了
我也想知道emacs是什麼意思XDDDD

有人是這麼說得:

So the rumors have been confirmed: the latest version of emacs
includes a time-travel function. Unfortunately this means the
learning curve cannot be expressed in two dimensions, though the
above is a valiant effort.
I wonder how someone would get “good” at pico.

Tags: Linux

All Comments

Mia avatar
By Mia
at 2009-12-26T07:18
看起來很好玩!!

task queue

Erin avatar
By Erin
at 2009-12-22T19:15
各位好! 我現在有一台ubuntu 9.10 server,想要限制一次只有一個人可以在上面跑程式 不知道是不是有task queue的軟體(或是SCRIPT)讓USER只能把它的程式丟到TQ 進行排程? USER對其家目錄的所有程式都沒有執行的權利 或是一旦私自執行,系統就會寄EMAIL通知管理員 此外, ...

Ubuntu中文問題

Gary avatar
By Gary
at 2009-12-22T19:06
請問有用Ubuntu 9.10的人有沒有發現,中文字的「閃」變成「門」了 XD 我發現可能是and#34;WenQuanYi Zen Hei Monoand#34;這個字體有錯字。 請看以下網址,你看到的是「閃」,還是「門」? http://www.libertytimes.com.tw/2009/new/ ...

vim and compiler

Tom avatar
By Tom
at 2009-12-22T18:29
偶然的機會看到有人用 emacs 開水平分割視窗 上面是 編輯器 本身 下面是 compiler or debugger (上下沒有硬性只是說兩個視窗) 然後 在下面輸入指令 debug 的時候 很酷的是上面 emacs 還會出現像指標般指出 bug 行 這時候就可以看著下面的 error 行 在上面 ...

監控不到RAID 1的磁碟使用率

Ida avatar
By Ida
at 2009-12-22T14:51
恩 我的作業系統是UBUNTU 然後是用上面那個面板按右鍵附的系統監控 版本是寫2.28.0 然後我發現我把他所有螢幕都打開 然後硬碟的表始終沒變化 順便問一下 上面的and#34;系統負載and#34;是怎麼算的 是說 每次他一旦開始有反應 系統就真的開始變慢這樣. ...

想學Linux的超新手

Ula avatar
By Ula
at 2009-12-22T13:57
想請教版友 一個完全不會,沒用過Linux的人,靠自習學的會嗎atat 因為需要用到Linux CentOS,所以想要自學 剛去書店看好像沒有找到適合的書 想請問有沒有適合新手讀的Linux CentOS的書?(最好是有附光碟的) 想要邊操作邊學習 - ...