0a9b11fb0f
Problem: User do not want to install docker to test and docker is not set for windows already Solution: Get the script to make the tests locally with current os and vim Log of workflow (6h): ===================== Test: cloning only last 10 Vader commits locally [tinwin] Test: run_bash fix local copies and prettify/robustify [tinwin] Test: Lint tests and fix err treatment in run_bash [Tinmarino] Test; Windows: Restore the bug that I appended on Linux OLD-PATH env deps [Tinmarino] Test: bash script first success on Windows (only the script not the tests) [tinwin] Test: Dirty Backup [tinwin]
69 lines
1.9 KiB
VimL
69 lines
1.9 KiB
VimL
" Declare tipical Vim preambule
|
|
" vint: -ProhibitSetNoCompatible
|
|
set nocompatible
|
|
filetype plugin indent on
|
|
syntax enable
|
|
|
|
" Set chrooted virtual runtime path
|
|
let rtp=$ROOT.'/rtp.vim'
|
|
exe 'source '.rtp
|
|
|
|
" Load Vader
|
|
let vader=$ROOT.'/vader'
|
|
exe 'set runtimepath+='.vader
|
|
|
|
" Declare default syntax
|
|
let vimwiki_default = {}
|
|
let vimwiki_default.path = $HOME . '/testwiki'
|
|
let vimwiki_default.path_html = $HOME . '/html/default'
|
|
let vimwiki_default.syntax = 'default'
|
|
let vimwiki_default.ext = '.wiki'
|
|
let vimwiki_default.name = 'DefaultSyntax'
|
|
let vimwiki_default.base_url = 'https://example.com/'
|
|
|
|
" Declare markdown syntax - https://github.github.com/gfm/
|
|
let vimwiki_markdown = {}
|
|
let vimwiki_markdown.path = $HOME . '/testmarkdown'
|
|
let vimwiki_markdown.path_html = $HOME . '/html/markdown'
|
|
let vimwiki_markdown.syntax = 'markdown'
|
|
let vimwiki_markdown.ext = '.md'
|
|
let vimwiki_markdown.name = 'MarkdownSyntax'
|
|
|
|
" Declare mediawiki syntax - https://www.mediawiki.org/wiki/Help:Formatting
|
|
let vimwiki_mediawiki = {}
|
|
let vimwiki_mediawiki.path = $HOME . '/testmediawiki'
|
|
let vimwiki_mediawiki.path_html = $HOME . '/html/mediawiki'
|
|
let vimwiki_mediawiki.syntax = 'media'
|
|
let vimwiki_mediawiki.ext = '.mw'
|
|
let vimwiki_mediawiki.name = 'MediaWikiSyntax'
|
|
|
|
" Register the 3 wikis
|
|
let g:vimwiki_list = [vimwiki_default, vimwiki_markdown, vimwiki_mediawiki]
|
|
|
|
" Set basic settings
|
|
set backspace=indent,eol,start
|
|
set wildmode=longest:full,full
|
|
set wildmenu
|
|
set wildignorecase
|
|
set splitbelow
|
|
set splitright
|
|
set timeoutlen=600
|
|
set ignorecase
|
|
set smartcase
|
|
set hidden
|
|
set laststatus=2
|
|
set hlsearch
|
|
|
|
" Map ctrl-p/n for history completion instead of up/down arrows
|
|
cnoremap <C-p> <Up>
|
|
cnoremap <C-n> <Down>
|
|
|
|
" Map jj to go back to command mode
|
|
inoremap jj <esc>
|
|
|
|
" Use <C-L> to clear the highlighting of :set hlsearch and also preserve the
|
|
" default behavior of redrawing the screen
|
|
if maparg('<C-L>', 'n') ==# ''
|
|
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
|
endif
|