Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tweaks to completion including clang support for objc

  • Loading branch information...
commit 5e5845adad0c131c4d9c40cfa7c5c427c807e573 1 parent 213047f
@kballenegger authored
Showing with 13 additions and 2 deletions.
  1. +2 −2 .vim/after/plugin/snipMate.vim
  2. +11 −0 .vimrc
View
4 .vim/after/plugin/snipMate.vim
@@ -5,8 +5,8 @@ if !exists('loaded_snips') || exists('s:did_snips_mappings')
endif
let s:did_snips_mappings = 1
-ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
-snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
+ino <silent> <m-tab> <c-r>=TriggerSnippet()<cr>
+snor <silent> <m-tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
View
11 .vimrc
@@ -93,6 +93,17 @@ set hidden
" better completion
set wildmode=list:longest
+let g:SuperTabDefaultCompletionType = "context"
+
+" snipmate
+let g:snips_author = 'Kenneth Ballenegger'
+
+" clang osx
+let sdk_path = 'echo -n `ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs | head -1`'
+let g:clang_complete_copen = 1
+autocmd FileType objc let g:clang_use_library=1
+autocmd FileType objc let g:clang_user_options = '-fblocks -isysroot ' . sdk_path . ' -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300'
+
" scroll by three lines when cursor moves off screen
set scrolloff=3
Please sign in to comment.
Something went wrong with that request. Please try again.