VIM plugin for fossil

Check-in [ab0d8b8141]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added Fchanges command and Ftimeline function
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ab0d8b8141acbcf3652e430932259477799ca048
User & Date: cristian 2012-10-17 20:40:24
Context
2012-11-04
02:52
Added Fclone, needs the url and repo name. Added Fopen that needs a repo filename as argument Leaf check-in: a8da6b5e52 user: 3I527328 tags: trunk
2012-10-17
20:40
Added Fchanges command and Ftimeline function check-in: ab0d8b8141 user: cristian tags: trunk
20:30
Fcommit was deleted and a command is used instead check-in: bb04664566 user: cristian tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fossil.vim.

10
11
12
13
14
15
16


17
18
19
20
21
22
23
..
40
41
42
43
44
45
46





47
48

" Setting up commands

command -nargs=0  Fdiff  :call s:FossilSDiff()
command -nargs=0  Fvdiff  :call s:FossilVDiff()
command -nargs=0  Fstatus  :call s:FossilStatus()
command -nargs=+  Fcommit  !cd %:h && fossil commit %:t -m <q-args>



function s:createScratch() abort
  :enew
  :setlocal buftype=nofile
  :setlocal bufhidden=hide
  :setlocal noswapfile
endfunction
................................................................................

function s:FossilStatus() abort
  :split
  call s:createScratch()
  :silent r ! fossil status
endfunction















>
>







 







>
>
>
>
>

<
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
..
42
43
44
45
46
47
48
49
50
51
52
53
54


" Setting up commands

command -nargs=0  Fdiff  :call s:FossilSDiff()
command -nargs=0  Fvdiff  :call s:FossilVDiff()
command -nargs=0  Fstatus  :call s:FossilStatus()
command -nargs=+  Fcommit  !cd %:h && fossil commit %:t -m <q-args>
command -nargs=0  Fchanges  !fossil changes
command -nargs=0  Ftimeline  :call s:FossilTimeline()

function s:createScratch() abort
  :enew
  :setlocal buftype=nofile
  :setlocal bufhidden=hide
  :setlocal noswapfile
endfunction
................................................................................

function s:FossilStatus() abort
  :split
  call s:createScratch()
  :silent r ! fossil status
endfunction

function s:FossilTimeline(...) abort
  :split
  call s:createScratch()
  :silent r ! fossil timeline 
endfunction