Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mod to make format options settable in vimrc using g:org_formatoptions

  • Loading branch information...
commit f5d1a480bb0b2688fae21a0e34efaf5f1ef68995 1 parent 23d5df0
@hsitz authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 ftplugin/org.vim
View
8 ftplugin/org.vim
@@ -3850,7 +3850,7 @@ function! OrgAgendaMove(direction,count)
let date_jul = calutil#jul(g:agenda_startdate)
let ymd_list = split(g:agenda_startdate,'-')
- if g:org_agenda_days == 1
+ if g:org_agenda_days == 1
let g:agenda_startdate = calutil#cal(date_jul + (cnt * 1))
elseif g:org_agenda_days == 7
let g:agenda_startdate = calutil#cal(date_jul + (cnt * 7))
@@ -8411,7 +8411,11 @@ 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:>>,:>
-set fo=qtcwn
+if exists('g:org_formatoptions')
+ execute 'set fo=' . g:org_formatoptions
+else
+ set fo=qtcwn
+endif
let b:v.current_syntax = "org"
setlocal foldtext=OrgFoldText()
Please sign in to comment.
Something went wrong with that request. Please try again.