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

No comments:

Post a Comment