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

沒有留言:

張貼留言

乩童警探 一二集

接連看了兩集。第一集還算新鮮,到了第二集就看得比較慢了。一來,劇情雖然常會提到乩童,但真的跟乩童又沒有什麼關係。第二集後半大概就猜出是怎麼一回事了,但還是很享受在作者解釋的過程。只是前面舖陳有點久,而且人物有點多,再加上我是斷斷續續的看,看到後來都快忘了誰是誰,或是誰曾經出過什麼...