2009/03/04

Put Searched results into a split window under VIM

R8074030 (by plateaukao)
Benthuizen.Netherlands

荷蘭什麼不多,草地最多。
放眼望去,四處都是沒有起伏的草坪。
遠方偶有幾座風車和倉庫。

天空畫爛了,刻意不拍出來…
不然荷蘭的天空也是很有特色的。

****

My main editor is Vim. Even when I am developing WM softwares by Visual Studio, I use Emuvi to simulate the behavior of vi. Vim works quite well for me in most situations. However, for a long time, I have no idea how to put searched lines into a separate winow for better reading. This feature will be very very useful for investigating logs that has some specific patterns. By filtering out lines with a certain pattern, I can be more concentrated on the point.

I did some search on the internet about this long existing feature on Ultraedit yesterday morning. And fortunately, I found a script in the vim official site!! It's called Compview. Although the speed is not optimized, I am quite happy with this little plugin now. I also shared this plugin with two colleagues that I happens to know they use vim too. As I thought, they are looking for this feature too~~ Don't know why there's no obvious way for this handy feature in vim.

I will keep looking for a more intuitive way for this feature.

REF:
http://www.vim.org/htmldoc/map.html#%3CLeader%3E
http://www.vim.org/scripts/script.php?script_id=1803
http://www.axisym3.net/jdany/wp-content/vim/compview.vim

沒有留言:

張貼留言

中國 App 商業模式 -- 王泌

很有系統地介紹了中國近幾年比較大的幾十個 app,包含他們主要的商業模式,投資者,和特色在哪裡。對於想要了解中國 App (網路服務) 市場的人來說,會是個很好的入門書。雖然已經是兩三年前的資料了,這兩三年又有了很大的變化,但依然是個很好的起點。