VIM plugin for fossil

Check-in [3177ebd7dc]
Login

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

Overview
Comment:Initial import
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3177ebd7dc1b332074a599afb4493dcacf525b6b
User & Date: cristian 2012-10-17 19:36:17
Context
2012-10-17
19:41
Added Gstatus command check-in: 9bd0beb81d user: cristian tags: trunk
19:36
Initial import check-in: 3177ebd7dc user: cristian tags: trunk
19:26
initial empty check-in check-in: 1232229392 user: cristian tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added fossil.vim.













































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
" fossil.vim - A fossil wrapper that is shameless, cute and sexy
" Maintainer:   Federico RAmallo <framallo@gmail.com>
" Version:      0.1
"

if exists('g:loaded_fossil') || &cp
  finish
endif
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()

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

function s:FossilVDiff() abort
  :vsplit
  call s:FossilDiff()
endfunction

function s:FossilSDiff() abort
  :split
  call s:FossilDiff()
endfunction

function s:FossilDiff() abort
  call s:createScratch()
  :set ft=diff
  :silent r ! fossil diff
endfunction