diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:29:13 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:29:13 -0400 |
commit | ad6cf3c80c043044ebd20629353d1d1aecb5b035 (patch) | |
tree | 717e780a87ee34d33417a7611e2b74d48a6a9ad3 /data | |
parent | v3: odf, internal links/bookmarks, toc, book index (diff) |
v3: vim, ftplugin/sisu.vim
* linenumbering: on; relative; off, <leader>nn
* cursor line & column: on; off, <leader>cu (existing cu+ & cu-)
Diffstat (limited to 'data')
-rw-r--r-- | data/doc/sisu/CHANGELOG_v3 | 4 | ||||
-rw-r--r-- | data/sisu/v3/conf/editor-syntax-etc/vim/ftplugin/sisu.vim | 9 |
2 files changed, 12 insertions, 1 deletions
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, <leader>nn + * cursor line & column: on; off, <leader>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 <ralph@amissah.com> -" 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 <Leader>nn :set <c-r>={'00':'','01':'r','10':'nor'}[&rnu.&nu]<CR>nu<CR> "% cursorline :highlight CursorLine guibg=black ctermbg=black :highlight CursorColumn guibg=black ctermbg=black +:map <leader>cu :if &cursorcolumn <Bar> + \set nocursorline nocursorcolumn <Bar> + \else <Bar> + \set cursorline cursorcolumn <Bar> + \endif<cr> :map <leader>cu- :set nocursorline nocursorcolumn<cr> :map <leader>cu+ :set cursorline cursorcolumn<cr> |