VIM plugin for fossil

Check-in [bb04664566]
Login

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

Overview
Comment:Fcommit was deleted and a command is used instead
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bb04664566bcc87defefb2506d8d22b447300b7a
User & Date: cristian 2012-10-17 20:30:43
Context
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
20:21
a:000 check-in: c2291a7f07 user: cristian tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fossil.vim.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
let g:loaded_fossil = 1

" 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  :call s:FossilCommit(<f-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

function s:FossilCommit(...) abort
  :split
  call s:createScratch()
  :! fossil commit -m a:000 
endfunction









|







 







<
<
<
<
<


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
40
41
42
43
44
45
46





47
48
let g:loaded_fossil = 1

" 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