From 19e20af6cee9e97349ff5699514829ec07314121 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 30 Apr 2015 11:36:38 -0700 Subject: [PATCH] [vim] Add filetype hook for Xcode pbxproj files --- vim/after/ftplugin/xcodepbx.vim | 4 ++++ vimrc | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 vim/after/ftplugin/xcodepbx.vim diff --git a/vim/after/ftplugin/xcodepbx.vim b/vim/after/ftplugin/xcodepbx.vim new file mode 100644 index 0000000..7041eda --- /dev/null +++ b/vim/after/ftplugin/xcodepbx.vim @@ -0,0 +1,4 @@ +" xcodeproj.vim +" Eryn Wells + +setl nowrap diff --git a/vimrc b/vimrc index 44a7aae..5dced6c 100644 --- a/vimrc +++ b/vimrc @@ -352,6 +352,11 @@ if has('autocmd') autocmd InsertEnter * setlocal nocursorline autocmd InsertLeave * setlocal cursorline augroup END + + augroup XCodeProjectFileType + autocmd! + autocmd BufRead *.pbxproj setf xcodepbx + augroup END endif " }}}