Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2e75a9c26c1e9317f8b47af87d1e802a2563c451 1 parent f5d1a48
@hsitz authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 ftplugin/org.vim
View
12 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
-else
- set fo=qtcwn
-endif
+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()
+endif
" vim600: set tabstop=4 shiftwidth=4 smarttab expandtab fdm=expr foldexpr=getline(v\:lnum)=~'^"Section'?0\:getline(v\:lnum+1)=~'^func'?'<0'\:'1':
Please sign in to comment.
Something went wrong with that request. Please try again.