X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fqma;h=5464823a068dfe6ee5d5746bd77e88fb235a5aec;hb=2378c65d20e15a10d3a062fd75bc54f205eacc61;hp=e6c4907be219f04229d9f2e4a55e43fbf5e776ea;hpb=bd136778805c4a50c56c42354c0be5fe7c584ce7;p=grml-scripts.git diff --git a/usr_bin/qma b/usr_bin/qma index e6c4907..5464823 100755 --- a/usr_bin/qma +++ b/usr_bin/qma @@ -4,7 +4,6 @@ # Authors: grml-team (grml.org), (c) Michael Prokop , Matthias Kopfermann # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Dez 04 22:54:47 CET 2006 [maddi] ################################################################################ . /etc/grml/lsb-functions @@ -56,7 +55,7 @@ QUICKMAN="${MANDIR}/${MANPAGE}${SECTIONFILE}.txt.lzo" if ! [ -f "$QUICKMAN" ] ; then einfo "Writing manpage to $QUICKMAN" if man $SECTION $MANPAGE 1>/dev/null ; then - man $SECTION $MANPAGE | lzop -U >$QUICKMAN ; eend $? + man $SECTION $MANPAGE | col -b | lzop -U >$QUICKMAN ; eend $? einfo "Compressing manpage with lzop" eend $? else @@ -66,33 +65,47 @@ if ! [ -f "$QUICKMAN" ] ; then fi vimconfig=' - set filetype=man - "set hlsearch can be annoying so use to dehighlight" - nn :nohlsearch|redraw "shut up hlsearch when it confuses more than it helps and" - nn q :qa! "q should really end our document-reading like less does" - nn Q :q! "different than q in that it quits only the current window when multiple windows " - nn :qa! "honor midnight-commander addicts :) " - nn a ]I "use one wonderful vim feature to show all matches of the word in the document in ex-mode" - nn A [I "the other way round" - nn b - nn - "nn f - nn p }zz - nn j "scroll the page down one line" - nn k "scroll the page up one line" - nn -n :set invnumber "the expectation of getting the next search via 'n' can not be ignored" - nn h :set invhlsearch - nn i :set invignorecase "Make toggling case-sensitive accessable via the letter i" - nn -i :set invignorecase "Make toggling case-sensitive accessable via the less convention via -i" - nn - nn - nn gg - nn S :split - nn V :vsplit - set filetype=man - set ignorecase - set nomodifiable "Really not modify a document here" - set readonly + set filetype=man + "set hlsearch can be annoying so use to dehighlight" + "shut up hlsearch when it confuses more than it helps and" + nn :nohlsearch|redraw + "q should really end our document-reading like less does" + nn q :qa! + "different than q in that it quits only the current window when multiple windows " + nn Q :q! + "honor midnight-commander addicts :) " + nn :qa! + "use one wonderful vim feature to show all matches of the word in the document in ex-mode" + nn a ]I + "the other way round" + nn A [I + nn b + nn + "nn f + nn p }zz + "scroll the page down one line" + nn j + "scroll the page up one line" + nn k + "the expectation of getting the next search via 'n' can not be ignored" + nn -n :set invnumber + nn h :set invhlsearch + "Make toggling case-sensitive accessable via the letter i" + nn i :set invignorecase + "Make toggling case-sensitive accessable via the less convention via -i" + nn -i :set invignorecase + nn + nn + nn gg + nn S :split + nn V :vsplit + set filetype=man + set ignorecase + "Really not modify a document here" + set nomodifiable + set readonly + "We have a more modern approach to searching in vim!" + set incsearch ' if [ -n "$SEARCH" ] ; then