Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 2.1.5

  Added "zx" as a command to update folding (to update syntax).
  Added <CR> as an alternative to gr (Goto Ref).
  Added a mark (m') to gr/<CR> to facilitate easy jump back.
  Speed-up. Also added a global variable that can be set if you don't want the
  collapse functions active, set this: ("g:disable_collapse") - it will
  considerably speed up large HyperListS.
  Fixed syntax highlighting for the first line in a HyperList.
  Documentation updates.
  • Loading branch information...
commit ab1569e4cb358f94780cadd0569af83c62c9ef9d 1 parent 6265ac7
@isene isene authored committed
View
2  README
@@ -2,6 +2,8 @@ This is a mirror of http://www.vim.org/scripts/script.php?script_id=4006
HyperList is a methodology to describe anything in plain text.
+It can be used as an outliner, a project or process tool, a logic breakdown tool, a mind map or for any number of different usages. Your imagination is (almost) the only limit.
+
HyperList can be used to describe any state or transition - anything from simple shopping and todo lists to large project plans, process design, the human history, the human DNA or the whole universe.
With HyperList, descriptions become simple, easily readable, concise and precise.
View
21 README_HyperList
@@ -55,9 +55,16 @@ As a sort of "presentation mode", you can traverse a WOIM list by using
g<DOWN> or g<UP> to view only the current line and its ancestors.
An alternative is <leader><DOWN> and <leader><UP> to open more levels down.
-Use "gr" when the cursor is on a reference to jump to the referenced item.
-A reference can be in the list or to a file by the use of
-#file:/pathto/filename, #file:~/filename or #file:filename.
+Use "gr" (without the quotation marks, signifies "Goto Ref") or simply
+press the "Enter" ("<CR>") key while the cursor is on a HyperList
+reference to jump to that destination in a HyperList. Use "n" after a "gr"
+to verify that the reference destination is unique. A reference can be in
+the list or to a file by the use of #file:/pathto/filename,
+#file:~/filename or #file:filename.
+
+Whenever you jump to a reference in this way, the mark "'" is set at the
+point you jumped from so that you may easily jump back by hitting "''"
+(single quoutes twice).
Use <leader>u to toggle underlining of Transitions, States or no underlining.
@@ -79,7 +86,13 @@ Use <leader>X decrypts the current file (all lines).
A dot file (file name starts with a "." such as .test.woim) is
automatically encrypted on save and decrypted on opening.
-Syntax is updated at start and every time you leave Insert mode.
+Syntax updated at start and every time you leave Insert mode, or you can
+press "zx" to update the syntax.
+
+You may speed up larger HyperListS by setting the the global variable
+"disable_collapse" - add the following to your .vimrc:
+
+ let "g:disable_collapse" = 1
For this help and more, including the full WOIM definition/description, type
View
38 doc/hyperlist.txt
@@ -79,11 +79,15 @@ When working wiht HyperLists in VIM:
Use <leader>v to add a checkbox at start of item or to toggle a checkbox
Use <leader>V to add/toggle a checkbox with a date stamp for completion
- Use "gr" (without the quotation marks, signifies "Goto Ref") while the cursor
- is on a HyperList reference to jump to that destination in a HyperList. Use
- "n" after a "gr" to verify that the reference destination is unique. A
- reference can be in the list or to a file by the use of
- #file:/pathto/filename, #file:~/filename or #file:filename.
+ Use "gr" (without the quotation marks, signifies "Goto Ref") or simply press
+ the "Enter" ("<CR>") key while the cursor is on a HyperList reference to jump
+ to that destination in a HyperList. Use "n" after a "gr" to verify that the
+ reference destination is unique. A reference can be in the list or to a file
+ by the use of #file:/pathto/filename, #file:~/filename or #file:filename.
+
+ Whenever you jump to a reference in this way, the mark "'" is set at the
+ point you jumped from so that you may easily jump back by hitting "''"
+ (single quoutes twice).
Use <leader><SPACE> to go to the next open template element
(A template element is a HyperList item ending in an equal sign).
@@ -114,12 +118,18 @@ When using encryption in a HyperList or for the whole file, you will be asked
for a password - twice when saving the file and once when opening it. You must
have OpenSSL in your path to take advantage of these features.
-Syntax updated at start and every time you leave Insert mode
+Syntax updated at start and every time you leave Insert mode, or you can press
+"zx" to update the syntax.
+
+You may speed up larger HyperListS by setting the the global variable
+"disable_collapse" - add the following to your .vimrc:
+
+ let "g:disable_collapse" = 1
If you want to disable or override these keymaps with your own, simply add
to your .vimrc file:
- let g:HLDisableMapping = 1
+ let "g:HLDisableMapping" = 1
To use HyperLists within other file types (other than ".hl"), you can use
"nested syntax" by adding the following to those syntax files (like the syntax
@@ -1000,6 +1010,20 @@ HyperList definition itself; Geir Isene <g@isene.com>. More at http//isene.com
==============================================================================
7 Changelog *HyperList-Changelog*
+VERSION 2.1.5 2012-10-13
+
+ Changes:
+ Speed-up. Also added a global variable that can be set if you don't want the
+ collapse functions active, set this: ("g:disable_collapse") - it will
+ considerably speed up large HyperListS.
+ Fixed syntax highlighting for the first line in a HyperList.
+
+VERSION 2.1.4 2012-09-25
+
+ Changes:
+ Added "zx" as a command to update folding (to update syntax)
+ Added <CR> as an alternative to gr (Goto Ref)
+ Added a mark (m') to gr/<CR> to facilitate easy jump back
VERSION 2.1.3 2012-09-23
View
31 syntax/hyperlist.vim
@@ -12,12 +12,11 @@
" Further, I am under no obligation to maintain or extend
" this software. It is provided on an 'as is' basis without
" any expressed or implied warranty.
-" Version: 2.1.3 - compatible with the HyperList definition v. 2.1
-" Modified: 2012-08-31
-" Changes: Included more accented characters
-" Speedup; Adjusted minimum and maximum lines of sync'ing
-" Fixed identifiers
-
+" Version: 2.1.4 - compatible with the HyperList definition v. 2.1
+" Modified: 2012-09-25
+" Changes: Added "zx" as a command to update folding (to update syntax)
+" Added <CR> as an alternative to gr (Goto Ref)
+" Added a mark (m') to gr/<CR> to facilitate easy jump back
" INSTRUCTIONS {{{1
"
@@ -78,7 +77,7 @@ syn sync fromstart
autocmd InsertLeave * :syntax sync fromstart
" Lower the next two values if you have a slow computer
syn sync minlines=20
-syn sync maxlines=100
+syn sync maxlines=40
" Functions {{{1
@@ -411,23 +410,23 @@ endfunction
" Syntax definitions {{{1
" HyperList elements {{{2
" Identifier (any number in front)
-syn match HLident "^\(\t\|\*\)\+[0-9.]*"
+syn match HLident "^\(\t\|\*\)*[0-9.]* "
" Multi-line
-syn match HLmulti "^\(\t\|\*\)\++ "
+syn match HLmulti "^\(\t\|\*\)*+ "
" State & Transitions
-syn match HLstate "\(\(\s\|\*\)\(S: \|| \)\)\@<=[^;]*" contains=HLtodo,HLop,HLcomment,HLref,HLqual,HLsc,HLmove,HLtag,HLquote
-syn match HLtrans "\(\(\s\|\*\)\(T: \|/ \)\)\@<=[^;]*" contains=HLtodo,HLop,HLcomment,HLref,HLqual,HLsc,HLmove,HLtag,HLquote
+syn match HLstate "\(^\|\(\s\|\*\)\(S: \|| \)\)\@<=[^;]*" contains=HLtodo,HLop,HLcomment,HLref,HLqual,HLsc,HLmove,HLtag,HLquote
+syn match HLtrans "\(^\|\(\s\|\*\)\(T: \|/ \)\)\@<=[^;]*" contains=HLtodo,HLop,HLcomment,HLref,HLqual,HLsc,HLmove,HLtag,HLquote
" Qualifiers are enclosed within [ ]
syn match HLqual "\[.\{-}\]" contains=HLtodo,HLref,HLcomment
" Tags - anything that ends in a colon
-syn match HLtag '\(\s\|\*\)\@<=[a-zA-ZæøåÆØÅáéóúãõâêôçàÁÉÓÚÃÕÂÊÔÇÀü0-9,._&?%= \-\/+<>#'\*:]\{-2,}:\s' contains=HLtodo,HLcomment,HLquote,HLref
+syn match HLtag '\(^\|\s\|\*\)\@<=[a-zA-ZæøåÆØÅáéóúãõâêôçàÁÉÓÚÃÕÂÊÔÇÀü0-9,._&?%= \-\/+<>#'\*:]\{-2,}:\s' contains=HLtodo,HLcomment,HLquote,HLref
" HyperList operators
-syn match HLop '\(\s\|\*\)\@<=[A-ZÆØÅáéóúãõâêôçàÁÉÓÚÃÕÂÊÔÇÀü_/\-()]\{-2,}:\s' contains=HLcomment,HLquote
+syn match HLop '\(^\|\s\|\*\)\@<=[A-ZÆØÅáéóúãõâêôçàÁÉÓÚÃÕÂÊÔÇÀü_/\-()]\{-2,}:\s' contains=HLcomment,HLquote
" Mark semicolon as stringing together lines
syn match HLsc ";"
@@ -465,6 +464,7 @@ syn match HLu " \@<=_.\{-}_ "
syn cluster HLtxt contains=HLident,HLmulti,HLop,HLqual,HLtag,HLref,HLkey,HLlit,HLlc,HLcomment,HLquote,HLsc,HLtodo,HLmove,HLb,HLi,HLu,HLstate,HLtrans
" HyperList indentation (folding levels) {{{2
+if !exists("g:disable_collapse")
syn region L15 start="^\(\t\|\*\)\{14} \=\S" end="^\(^\(\t\|\*\)\{15,} \=\S\)\@!" fold contains=@HLtxt
syn region L14 start="^\(\t\|\*\)\{13} \=\S" end="^\(^\(\t\|\*\)\{14,} \=\S\)\@!" fold contains=@HLtxt,L15
syn region L13 start="^\(\t\|\*\)\{12} \=\S" end="^\(^\(\t\|\*\)\{13,} \=\S\)\@!" fold contains=@HLtxt,L14,L15
@@ -480,6 +480,7 @@ syn region L4 start="^\(\t\|\*\)\{3} \=\S" end="^\(^\(\t\|\*\)\{4,} \=\S\)\@!"
syn region L3 start="^\(\t\|\*\)\{2} \=\S" end="^\(^\(\t\|\*\)\{3,} \=\S\)\@!" fold contains=@HLtxt,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15
syn region L2 start="^\(\t\|\*\)\{1} \=\S" end="^\(^\(\t\|\*\)\{2,} \=\S\)\@!" fold contains=@HLtxt,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15
syn region L1 start="^\S" end="^\(^\(\t\|\*\)\{1,} \=\S\)\@!" fold contains=@HLtxt,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15
+endif
" VIM parameters (VIM modeline) {{{2
syn match HLvim "^vim:.*"
@@ -528,6 +529,7 @@ map <leader>d :set foldlevel=13<CR>
map <leader>e :set foldlevel=14<CR>
map <leader>f :set foldlevel=15<CR>
map <SPACE> za
+nmap zx i<esc>
map <leader>u :call STunderline()<CR>
@@ -536,7 +538,8 @@ map <leader>V :call CheckItem("stamped")<CR>
map <leader><SPACE> /=\s*$<CR>A
-map gr :call GotoRef()<CR>
+nmap gr m':call GotoRef()<CR>
+nmap <CR> m':call GotoRef()<CR>
nmap g<DOWN> <DOWN><leader>0zv
nmap g<UP> <leader>f<UP><leader>0zv
Please sign in to comment.
Something went wrong with that request. Please try again.