Some Vim Tips and Learning Resources

I'm still pretty new to Vim and keep practicing Vim everyday, and also started to learn some VimScript by myself, I found some nice learning resources and some easy but AWESOME key combinations.

Switch to Presentation Mode

I think I'm a show-off person, and usually do presentations to my friends. In this post I mentioned it's cool to make slide with dark theme or something, but sometimes it won't be clear enough while putting on projector, and I have to change various settings everytime, that looks not cool and not professional at all.

Thanks for Mike Skalnik, I stole this idea from his Vim config :)

I recorded this video to demonstrate how it looks like. (You might need to change the video to higher resolution if you wanna know what I typed.)

Just press <leader>z, I can toggle between working mode and presentation mode in a second.

It's actually not a very big deal, you can check the source code to see how to do it. Althought it only works on GUI version Vim (cause I don't know how to modify font size in terminal version Vim programmatically), but still quite convenient for myself.

I'm really SHOW-OFF, huh? :)

My Vimrc

About 3 months ago, I've mentioned I started to use Vim as my primary editor, and now I can only open Vim and Xcode in my daily job(my primary job is coding with Ruby and Rails, and Objective-C is just for fun).

Here is my current vim configuration, feel free to use it, and welcome to give me your suggestion(or criticism). I took some screenshots of my computer and laptop:

MacVim, on iMac with Mac OS X Lion:

Non-GUI Vim, on iMac with Mac OS X Lion:

Ubuntu 11.10:

the icons and fonts of the bottom are pretty nice, right? you can check on this, or download from here, and unzip them to ~/.font.

Windows XP, Vim on Windows? I know.. but it's still working, right?

Keep polishing

Vim is a pretty awesome and interesting editor, hope can keep polishing it in my daily jobs :)

Heroku ─ Ruby 程式語言的最佳雲端環境

你曾經用 Ruby on Rails 開發網站,但在國內找不到可以用的主機空間嗎?或者你是新創公司,但初期還沒足夠資金投資在伺服器的硬體設備上嗎?又或是沒有專職的 MIS 幫你管理伺服器嗎? 讓我們來看看 Heroku 吧!

我的工具箱

先說明一下,我目前主要的作業系統是 Mac OS,工作主要是網站程式開發,前端是 Flash、ActionScript 以及 JavaScript,後端則是 Ruby 以及 Ruby on Rails,應該再過半年左右就會加入 Mac app/iOS app 的專案。以下來獻曝一下我目前比較常用的工具箱,供大家參考。

哈囉,2012!

對於新的東西,寫程式的總是不免俗的要來個 "Hello World"!

今年幹了哪些事

  • 認識了更多的神人/高手,雖然很多目前都還看不到車尾燈,但至少有個方向可以跟
  • 辦了9場的Flash/ActionScript讀書會,每回人數在50~100之間,感謝大家的支持
  • 跟 pct 一起辦了第一屆的PHPConf in Taiwan
  • 有14場公開的表演,其中有的是教育訓練,有的是心得分享,真是愛現!
  • Blog竟然有90篇文章!! 我剛自己算了一下也嚇到

希望更熟悉技能

  • Vim(希望可以練到跟吃飯、呼吸一樣自然就好)
  • Ruby/Rails(往Best Practice前進)
  • JavaScript
  • Cocoa Framework

許願

  • 小朋友(們)可以順利長大
  • 希望可以做出自己的產品
  • 繼續把 Flash / ActionScript 讀書會辦下去
  • 希望可以投稿國外某些知名網站(練英文的時候到了)
  • 希望 COSCUP / OSDC / RubyConf Taiwan / RubyKaigi / PHPConf Taiwan這5個研討會,至少有 2/5 可以上台講,而不是只是坐在底下當聽眾
  • 希望可以像閃光哥一樣,也可以有一本書(我要遺臭萬年用的)
  • 希望體重可以再比現在再少個 5 公斤
  • 公司生意.. 順利就好

許完願了,但光許願是不會實現的,所以我要開始動手寫書的TOC了!

Vim 的操作小技巧

Vim 的操作除了基本的 hjkl 之外,快速鍵組合相當多,不過大概有個規則。以下是我自己個人比較常會用到,而且覺得還滿方便的操作小技巧,寫起來幫自己加深記憶,希望也對有需要的朋友有幫助。