my macvim configuration for the textmate convert
Vim script Ruby C Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 12 commits ahead of jacquescrocker:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
bundle
colors
doc
plugin
ruby
snippets
syntax
.VimballRecord
.gitignore
README
ackrc
gvimrc
readme.md
vimrc

readme.md

ctrl+left = buffer前跳 ctrl+right = buffer后跳

cmd+j = 快速上滚 cmd+k = 快速下滚 cmd+d = 切换NERDTree cmd+e = 开启ctags cmd+[ = 减少缩进 cmd+] = 增加缩进

shift+hjkl = Visual模式选择 ctrl+hjkl = 窗口切换

,h = 上侧打开新的窗口 ,v = 左侧打开新的窗口 ,u = 应用配置 ,r = 回到上一个修改点 ,n = 切换NERDTree ,s = 切换窗口 ,b = 打开buffer explorer ,@ = 返回上一个编辑文件 ,t = 快速定位文件 ,l = 切换可视模式 ,f = 超级查找模式 ,c = 切换Tagbar ,m = 放大、缩小当前窗口

,ew ,es 垂直打开新窗口 ,ev 水平打开新窗口 ,et

==== NeoComplcache 选择 <Ctrl+k><Ctrl+j> 选择 确认选择 Ctrl+CR 展开snippet 或者 选择snippet位置

==== Surround Vs 选择并加上tag cst 换一个tag

,__ 加入block注释 gc 批量注释 [u 把URL转成URLENCODE

==== 插入模式

qq 返回正常模式 ^^ 跳到行头并编辑 ¥¥ 跳到行末并编辑

zencoding

  1. Expand Abbreviation

Type abbreviation as 'div>p#foo$*3>a' and type ','.

---------------------
  1. Wrap with Abbreviation

Write as below.

test1 test2 test3

Then do visual select(line wize) and type ','. If you request 'Tag:', then type 'ul>li*'.

  • test1
  • test2
  • test3
---------------------

If you type tag as 'blockquote', then you'll see as following.

test1 test2 test3
---------------------
  1. Go to Next Edit Point

type 'n' in insert mode.

  1. Go to Previous Edit Point

type 'N' in insert mode.

  1. Remove Tag

Move cursor in block

cursor is here
--------------------- Type 'k' in insert mode. ---------------------
---------------------

And type 'k' in there again.


  1. Split/Join Tag

Move cursor in block

cursor is here
--------------------- Type 'j' in insert mode. ---------------------
---------------------

And type 'j' in there again.

---------------------
  1. Toggle Comment

Move cursor to block

hello world
--------------------- Type '/' in insert mode. --------------------- --------------------- Type '/' in there again. ---------------------
hello world
---------------------

==== Rails ]f 相关文件 [f 替代文件 gf 跳转文件 http://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide/

in NERDTree

C 设定根目录 cd 设定此目录为当前目录 m 菜单 i 垂直打开文件 s 水平打开文件

in Tagbar Enter 打开 Space 详细 o 展开或合上 x 放大