Added VIM tools, and help pages to all scripts missing one

This commit is contained in:
ville rantanen
2015-04-02 12:07:42 +03:00
parent 85928b7326
commit 029e2f5ad0
15 changed files with 85 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
" http://www.lingua-systems.com/knowledge/unicode-mappings/cp850-to-unicode.html
" http://www.obliquity.com/computer/html/unicode2500.html
map c1 :call CharDraw_blocks()<CR>
map c2 :call CharDraw_lines()<CR>
map c3 :call CharDraw_doublelines()<CR>
@@ -9,7 +8,7 @@ map c4 :call CharDraw_arrows()<CR>
map c5 :call CharDraw_extrachars()<CR>
map c0 :call CharDraw_clear()<CR>
map cr :so ansi.vim<CR>
" map cr :so ansi.vim<CR>
function! CharDraw_clear ()
mapclear!
@@ -20,7 +19,6 @@ set laststatus=2
endfunction
call CharDraw_clear()
function! CharDraw_blocks ()
mapclear!
map! 1
@@ -92,4 +90,3 @@ function! CharDraw_arrows ()
map! 8
set statusline=%f\ %=\ [▲▶▼◀◆]\(%v,%l)\ HEX:%B
endfunction

View File

@@ -4,14 +4,14 @@ map cr :so chkl.vim<CR>
function! Box_clear ()
mapclear!
map <space> :<C-U>call Flip_box()<CR>
map a i[ ] <ESC>
map a i[ ] <ESC>hhh
set laststatus=2
set statusline=%f\ %=\ \[ChkLst\ spc,a]\ (%v,%l)\ HEX:%B
endfunction
call Box_clear()
function! Flip_box ()
s!^\(\s*\)\[ \]!\1[xXx]!e
s!\[ \]![xXx]!e
s!^\(\s*\)\[x\]!\1[ ]!e
s!\[xXx\]![x]!e
endfunction

12
vim/vimansi Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
function helpexit() {
echo Edit a file with ANSI editor mod of vim
echo All switches are passed on to vim.
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
LIB=$( dirname $0 )/ansi.vim
vim -S "$LIB" "$@"

12
vim/vimbox Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
function helpexit() {
echo Edit a file with check list mod of vim
echo "key 'a' adds a checkbox, space toggles the box"
echo All switches are passed on to vim.
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
LIB=$( dirname $0 )/checklist.vim
vim -S "$LIB" "$@"