1
0
mirror of https://github.com/gryf/.vim.git synced 2026-02-13 14:25:50 +01:00

Added branch pathogen

This commit is contained in:
2012-02-13 21:19:34 +01:00
parent b989a7b269
commit 5047146e53
261 changed files with 5724 additions and 3107 deletions

View File

@@ -0,0 +1,67 @@
README for fitnesse.vim (Version 0.1) / May 22 2009
* INSTALLATION
* RELEASE NOTES
* CREDITS
fitnesse.vim is a syntax file (and eventually some filetype specific functions)
for editing FitNesse tests using Vim. It was created to make it easier to work
with fitnesse files. It works great in conjunction with "It's All Text" a
plugin for FireFox (found at https://addons.mozilla.org/en-US/firefox/addon/4125).
FitNesse is a collaborative testing tool that uses Wiki markup to create test
scripts as web pages. See http://fitnesse.org for more information.
This release is very Slim centric.
INSTALLATION
------------------------
The files in the Zip file are stored in the same folders they need to be
placed in under the vimfiles folder ( $HOME/.vim/ or %VIM%\vimfils depending
on your OS).
1) Unzip the fitnesse.vim.zip file to the vimfiles folder. Unless you are
customizing the file, you should be OK to overwrite the files.
2) Syntax coloring support must be enabled.
You can do this by adding :syntax enable to your _vimrc or .vimrc file.
3) If you want automatic detection you will need to:
a) Check to see if you have a scripts.vim file already in place. This
file allows post loading checking of files to execute scripts.
b) If you do not have a scripts.vim file in your vimfiles folder, rename
the scripts.vim.add file to scripts.vim.
c) If you do have a scripts.vim file; open the scripts.vim.fitnesse_add
file and copy the text in that file to your scripts.vim file.
RELEASE NOTES
------------------------
Version 0.1:
This release supports the following syntax:
* Numerous keywords in Slim and FitNesse are supported:
scenario, script, Query:, start, check, reject, show, Comment, comment,
!see, !include, !See, null, !define, !include
* Simple collapsible sections (with folding enabled) !** *!, !**> *!
* Table cell delimiter "|"
* Cell contents
* Incomplete cell is error
* !style_(class)
* Strings in Quotes
* Scenario variables @parametername
* Symbols $symbolname
* Simple WikiWord support
CREDITS
------------------------
* Bob Martin for FitNesse and Slim
* Brett Schuchert for Recommending It's All Text

View File

@@ -0,0 +1,4 @@
if getline(1) =~ '^#fitnesse'
setfiletype fitnesse
endif
f

View File

@@ -0,0 +1,62 @@
" fitnesse.vim
" @author: Dan Woodward (dan DOT woodward AT gmail.com)
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let b:fitnesseEnabled = 1
syntax sync minlines=2
syn match collapsibleSectionStart /!\*\+.*/
syn match collapsibleSectionEnd /\*\+!.*/
syn match bracesAndBrackets "|\|{\|}\|\[\|\]"
syn match bang /!/
syn match literalText /!-.\{-}-!/
syn match openCell /|[^|]\+\n/hs=s+1
syn region colapsableFold start="!\*\{1,}" end="\*!" fold transparent keepend extend
syn sync fromstart
set foldmethod=syntax
syn region cellContents start=+|+hs=s+1 end=+|+he=e-1 oneline contains=ALL
syn region styledText start=+\[+hs=s+1 end=+\]+he=e-1 oneline contains=ALL
syn region styledText2 start=+{+hs=s+1 end=+}+he=e-1 oneline contains=ALL
syn region styledText3 start=+(+hs=s+1 end=+)+he=e-1 oneline contains=ALL
syn region Comment start=/#/ end=/\n/
syn match String /"[^"]\+"/ contains=Identifier
syn match String /'[^']\+'/ contains=Identifier
syn match symbol /$\w*/
syn match extractVariable /${[^}]*}/
syn match bold /'''.*'''/
syn region heading start=/!\d/ end=/\n/
syn match widget /!\w\+[\[{(]/me=e-1,he=e-1
syn match Keyword /!define /
syn match Keyword /!include /
syn keyword Keyword scenario script Query: start check reject show Comment comment !see !include !See null
syn match scenarioVariable /@\w\+/
syn match wikiWord /\<[A-Z][a-z]\+[A-Za-z]*[A-Z]\+[A-Za-z]*\>/
highlight link collapsibleSectionStart Delimiter
highlight link collapsibleSectionEnd Delimiter
highlight link bracesAndBrackets Delimiter
highlight link cellContents Macro
highlight link bang Delimiter
highlight link styledText Type
highlight link styledText2 Type
highlight link styledText3 Type
highlight link literalText Special
highlight link symbol Identifier
highlight link extractVariable Identifier
highlight link bold Constant
highlight link heading Constant
highlight link scenarioVariable Identifier
highlight link styleMarker Special
highlight link widget Statement
highlight link wikiWord Underlined
highlight link openCell Error
let b:current_syntax = "fitnesse"