習慣了eclipes得刪除一行,複製一行操做的,到Xcode發現竟然沒有這個快捷鍵,因而找了個插件,可是不支持Xcode 6。shell
發現用Xcode自帶的命令進行組合,也能夠辦到。編程
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
而後VIM編輯,在這個XML文件中增長以下字段app
<key>Delete Current Line</key> <string>deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:</string> <key>Duplicate Current Line</key> <string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
保存退出。插件
而後重啓Xcode,打開設置,Key Bindings,找到「Delete Current Line」和「Duplicate Current Line」這兩項,設置爲本身想要的快捷鍵。code
編程效率大大提升。
xml