From ad6cf3c80c043044ebd20629353d1d1aecb5b035 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 1 Oct 2012 15:29:13 -0400 Subject: v3: vim, ftplugin/sisu.vim * linenumbering: on; relative; off, nn * cursor line & column: on; off, cu (existing cu+ & cu-) --- data/doc/sisu/CHANGELOG_v3 | 4 ++++ data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3 index 3b0f7126..1b3098ef 100644 --- a/data/doc/sisu/CHANGELOG_v3 +++ b/data/doc/sisu/CHANGELOG_v3 @@ -67,6 +67,10 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.3.orig.tar.xz * v3: vim syntax sisu.vim, =\\= page new & -\\- page break +* v3: vim ftplugin sisu.vim + * linenumbering: on; relative; off, nn + * cursor line & column: on; off, cu (existing cu+ & cu-) + %% 3.3.2.orig.tar.xz (2012-06-30:26/6) http://git.sisudoc.org/?p=code/sisu.git;a=log;h=refs/tags/sisu_3.3.2 http://git.sisudoc.org/?p=code/sisu.git;a=log;h=refs/tags/debian/sisu_3.3.2-1 diff --git a/data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim b/data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim index 160444fd..be3ff18f 100644 --- a/data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim +++ b/data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim @@ -1,6 +1,6 @@ "%% SiSU Vim ftplugin " SiSU Maintainer: Ralph Amissah -" SiSU Markup: SiSU (sisu-2.0) 2010-06-05 +" SiSU Markup: SiSU (sisu-3.3) 2012-08-18 " an ftplugin setting defaults for editing sisu markup files :syntax on :filetype on @@ -175,8 +175,15 @@ ":command! Fp FMake ^\s*[A-Za-z0-9#] :command! Fp FMake ^\s*\S :command! Fo FMake ^[%\"]\s*[{>] +"% linenumbering, on, relative, off +:map nn :set ={'00':'','01':'r','10':'nor'}[&rnu.&nu]nu "% cursorline :highlight CursorLine guibg=black ctermbg=black :highlight CursorColumn guibg=black ctermbg=black +:map cu :if &cursorcolumn + \set nocursorline nocursorcolumn + \else + \set cursorline cursorcolumn + \endif :map cu- :set nocursorline nocursorcolumn :map cu+ :set cursorline cursorcolumn -- cgit v1.2.3