Browse files

took out g:formatoptions setting and added support for more general O…

…rgCustomSettngs() func in vimrc where user can change settings for org buffers
  • Loading branch information...
1 parent f5d1a48 commit 2e75a9c26c1e9317f8b47af87d1e802a2563c451 @hsitz committed Feb 27, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 ftplugin/org.vim
@@ -8411,13 +8411,15 @@ call s:DeleteSigns()
" I think this should go in vimrc so i runs for each buffer load
" :autocmd CursorMoved,CursorMovedI * :if match(getline(line(".")), '^*\*\s') == 0 | :setlocal textwidth=99 | :else | :setlocal textwidth=79 | :endif
set com=sO::\ -,mO::\ \ ,eO:::,::,sO:>\ -,mO:>\ \ ,eO:>>,:>
-if exists('g:org_formatoptions')
- execute 'set fo=' . g:org_formatoptions
- set fo=qtcwn
+set fo=qtcwn
let b:v.current_syntax = "org"
setlocal foldtext=OrgFoldText()
+"user can define OrgCustomSettings() in vimrc to change default settings
+"in org buffers. If syntax or highlight related, though, should
+"make changes in OrgCustomColors()
+if exists('*OrgCustomSettings')
+ call OrgCustomSettings()
" vim600: set tabstop=4 shiftwidth=4 smarttab expandtab fdm=expr foldexpr=getline(v\:lnum)=~'^"Section'?0\:getline(v\:lnum+1)=~'^func'?'<0'\:'1':

0 comments on commit 2e75a9c

Please sign in to comment.