48 Commits

Author SHA1 Message Date
  Alois Mahdal eba776e0be Work around Vim completion taking long in Python projects 1 year ago
  Alois Mahdal fca98ac853 Add few more collected Vim tweaks 1 year ago
  Alois Mahdal b1ad0f7e7f Use 'bashum' directory name for bash extensions 1 year ago
  Alois Mahdal b9cdce1fa6 Disable relative numbering 1 year ago
  Alois Mahdal 1563b4ed26 Allow eaeier wrapping toggle via ',w' 1 year ago
  Alois Mahdal df60882528 Use F3 to toggle wrapping instead of less useful 'relativenumber' 1 year ago
  Alois Mahdal cf453b1b4e Prefer ISO log formatting in git 1 year ago
  Alois Mahdal 2ae5b9671e Add bmo-wish query for xkcd 1 year ago
  Alois Mahdal 3967244319 Update 'sc' alias for the new 'se' implementation 1 year ago
  Alois Mahdal 47eeec5509 Set wombat colorscheme for lightline 1 year ago
  Alois Mahdal 3f46508686 Use safer sign for removed line 1 year ago
  Alois Mahdal 2631c131f6 Remove several unused git plugins 1 year ago
  Alois Mahdal eb6e83f4b9 Only allow fast-forward pulls by default 1 year ago
  Alois Mahdal 35fdb7d97f Disable spell checking in git GUI 1 year ago
  Alois Mahdal 3bd4d3701a Skip CI when slurping with git 1 year ago
  Alois Mahdal 189b28d006 Update xfce4-terminal config 1 year ago
  Alois Mahdal 07f2f16751 Don't force pure html mode for DDG 1 year ago
  Alois Mahdal 4358ae4e26 Add links to favorite mynoise.net noise machines 1 year ago
  Alois Mahdal 77f03bba2b Prefer Dejavu Sans Mono for menus (Inconsolata is broken) 1 year ago
  Alois Mahdal f9f965610e Also allow vlc as browser 1 year ago
  Alois Mahdal f1333678da Add time notifier bmo nag 1 year ago
  Alois Mahdal 02b4f4ce69 Drop broken pause commands for Clementine 1 year ago
  Alois Mahdal c50360609f Tweak contrast for zenburn colorscheme 1 year ago
  Alois Mahdal 4afaf70cd3 Clean up style for Xlib setup script 1 year ago
  Alois Mahdal 4923f431e8 Prefer cmark for mdvimb 1 year ago
  Alois Mahdal 9d2affbfa0 Use more standard xdg-open for open() 1 year ago
  Alois Mahdal e6e3615b15 Fix /usr/bin/cal version detection 1 year ago
  Alois Mahdal 0ac602f1e2 Add urle() for urlencode encoding/decoding 1 year ago
  Alois Mahdal be0cf4240d Remove unused variable declaration 1 year ago
  Alois Mahdal 0d854d68d5 Do notify about sleeping 1 year ago
  Alois Mahdal c877c56c9f Use BASHUM_COLOR_* globals for color codes 1 year ago
  Alois Mahdal e6894b6421 Pass delay from nn() to bb() 1 year ago
  Alois Mahdal 0430d68a16 Add smv() and smvr() for "moving" files/trees via scp 1 year ago
  Alois Mahdal 0304def909 Fix vim swap dir 2 years ago
  Alois Mahdal 2bd66e9070 Update default branch for scratch and jats builds 2 years ago
  Alois Mahdal a39e457953 Add Telegram WUI bookmark 2 years ago
  Alois Mahdal 18559273b9 Add MZK.cz bookmark 2 years ago
  Alois Mahdal effcf101b5 Add Hello Internet bookmark 2 years ago
  Alois Mahdal ad2796a019 Add gitlab.com bookmark 2 years ago
  Alois Mahdal 3967961c33 Remove obsolete www_hist menu 2 years ago
  Alois Mahdal 17eb025700 Add support for context symbol in bashum ($BASHUM_CTXSYM) 2 years ago
  Alois Mahdal 435b1e0077 Let xfce4-terminal update its defaults 2 years ago
  Alois Mahdal 18b1b6c249 Don't let "activated" windows steal focus 2 years ago
  Alois Mahdal a52431045a Don't erase urgency hint instantly 2 years ago
  Alois Mahdal 3afcfd3e46 Allow back-and-forth behavior when switching workspaces 2 years ago
  Alois Mahdal 61711c1274 Remove super-obsolete "dropbox start" autocommand 2 years ago
  Alois Mahdal 223d51f09a Have glances at hand 2 years ago
  Alois Mahdal bbd18b4366 Have an "analog" clock at hand 2 years ago
100 changed files with 166 additions and 18951 deletions
  1. 1
    0
      dotfiles/bash
  2. 5
    0
      dotfiles/bashum/colors.bashrc
  3. 0
    0
      dotfiles/bashum/defaults.bashrc
  4. 0
    0
      dotfiles/bashum/head.bashrc
  5. 0
    0
      dotfiles/bashum/host/README
  6. 1
    0
      dotfiles/bashum/host/den.bashrc
  7. 1
    0
      dotfiles/bashum/host/kana.bashrc
  8. 1
    0
      dotfiles/bashum/host/malinovka.bashrc
  9. 8
    0
      dotfiles/bashum/host/malista.bashrc
  10. 1
    0
      dotfiles/bashum/host/morel.bashrc
  11. 1
    0
      dotfiles/bashum/host/singletop.bashrc
  12. 1
    0
      dotfiles/bashum/host/tamtam.bashrc
  13. 1
    0
      dotfiles/bashum/host/tamten.bashrc
  14. 48
    8
      dotfiles/bashum/main.bashrc
  15. 6
    2
      dotfiles/bashum/post.bashrc
  16. 0
    0
      dotfiles/bashum/setup
  17. 0
    0
      dotfiles/bashum/user/amahdal.bashrc
  18. 8
    8
      dotfiles/config/Xlib/bin/setup
  19. 2
    2
      dotfiles/config/Xlib/colorscheme/zenburn.Xdefaults
  20. 0
    2
      dotfiles/config/bmo/be.ini
  21. 0
    5
      dotfiles/config/bmo/menu.ini
  22. 6
    1
      dotfiles/config/bmo/nag.ini
  23. 1
    0
      dotfiles/config/bmo/sensible.ini
  24. 1
    1
      dotfiles/config/bmo/style.ini
  25. 8
    1
      dotfiles/config/bmo/wish.ini
  26. 2
    2
      dotfiles/config/mkittool/debstuff.ini
  27. 45
    39
      dotfiles/config/xfce4/terminal/accels.scm
  28. 4
    1
      dotfiles/config/xfce4/terminal/terminalrc
  29. 1
    1
      dotfiles/gittum/bin/slurp
  30. 8
    0
      dotfiles/gittum/main.gitconfig
  31. 5
    1
      dotfiles/i3/config
  32. 0
    328
      dotfiles/vim/autoload/pathogen.vim
  33. 0
    257
      dotfiles/vim/bundle/fugitive/doc/fugitive.txt
  34. 0
    2041
      dotfiles/vim/bundle/fugitive/plugin/fugitive.vim
  35. 0
    1
      dotfiles/vim/bundle/html5.vim
  36. 0
    1
      dotfiles/vim/bundle/lh-vim-lib/.VimballRecord
  37. 0
    150
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/askvim.vim
  38. 0
    102
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/buffer.vim
  39. 0
    271
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/buffer/dialog.vim
  40. 0
    226
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/command.vim
  41. 0
    97
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/common.vim
  42. 0
    78
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/encoding.vim
  43. 0
    78
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/env.vim
  44. 0
    70
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/event.vim
  45. 0
    120
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/float.vim
  46. 0
    217
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/function.vim
  47. 0
    179
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/graph/tsort.vim
  48. 0
    95
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/icomplete.vim
  49. 0
    376
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/list.vim
  50. 0
    477
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/menu.vim
  51. 0
    127
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/option.vim
  52. 0
    366
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/path.vim
  53. 0
    96
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/position.vim
  54. 0
    153
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/syntax.vim
  55. 0
    58
      dotfiles/vim/bundle/lh-vim-lib/autoload/lh/visual.vim
  56. 0
    1368
      dotfiles/vim/bundle/lh-vim-lib/doc/lh-vim-lib.txt
  57. 0
    139
      dotfiles/vim/bundle/lh-vim-lib/doc/tags
  58. 0
    6778
      dotfiles/vim/bundle/lh-vim-lib/lh-vim-lib-3.1.1.vmb
  59. 0
    10
      dotfiles/vim/bundle/lh-vim-lib/lh-vim-lib-addon-info.txt
  60. 0
    20
      dotfiles/vim/bundle/lh-vim-lib/lh-vim-lib.README
  61. 0
    87
      dotfiles/vim/bundle/lh-vim-lib/macros/menu-map.vim
  62. 0
    60
      dotfiles/vim/bundle/lh-vim-lib/mkVba/mk-lh-vim-lib.vim
  63. 0
    57
      dotfiles/vim/bundle/lh-vim-lib/plugin/let.vim
  64. 0
    48
      dotfiles/vim/bundle/lh-vim-lib/plugin/lhvl.vim
  65. 0
    490
      dotfiles/vim/bundle/lh-vim-lib/plugin/ui-functions.vim
  66. 0
    105
      dotfiles/vim/bundle/lh-vim-lib/plugin/words_tools.vim
  67. 0
    288
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/function.vim
  68. 0
    167
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/list.vim
  69. 0
    180
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/path.vim
  70. 0
    85
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/test-Fargs2String.vim
  71. 0
    67
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/test-askmenu.vim
  72. 0
    69
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/test-command.vim
  73. 0
    56
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/test-menu-map.vim
  74. 0
    86
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/test-toggle-menu.vim
  75. 0
    122
      dotfiles/vim/bundle/lh-vim-lib/tests/lh/topological-sort.vim
  76. 0
    56
      dotfiles/vim/bundle/perlcritic/ftplugin/perl/perlcritic.vim
  77. 0
    1
      dotfiles/vim/bundle/python-syntax
  78. 0
    1
      dotfiles/vim/bundle/syntastic
  79. 0
    1
      dotfiles/vim/bundle/targets
  80. 0
    3
      dotfiles/vim/bundle/tracwiki/ftdetect/tracwiki.vim
  81. 0
    114
      dotfiles/vim/bundle/tracwiki/syntax/tracwiki.vim
  82. 0
    1
      dotfiles/vim/bundle/vim-airline
  83. 0
    1
      dotfiles/vim/bundle/vim-airline-themes
  84. 0
    88
      dotfiles/vim/bundle/vim-flake8/README.mdown
  85. 0
    102
      dotfiles/vim/bundle/vim-flake8/ftplugin/python_flake8.vim
  86. 0
    1
      dotfiles/vim/bundle/vim-gitgutter
  87. 0
    27
      dotfiles/vim/bundle/vim-gutentags/.github/ISSUE_TEMPLATE/bug_report.md
  88. 0
    1
      dotfiles/vim/bundle/vim-gutentags/.gitignore
  89. 0
    3
      dotfiles/vim/bundle/vim-gutentags/.hgignore
  90. 0
    1
      dotfiles/vim/bundle/vim-gutentags/.hgtags
  91. 0
    60
      dotfiles/vim/bundle/vim-gutentags/CONTRIBUTING.md
  92. 0
    23
      dotfiles/vim/bundle/vim-gutentags/LICENSE
  93. 0
    81
      dotfiles/vim/bundle/vim-gutentags/README.md
  94. 0
    705
      dotfiles/vim/bundle/vim-gutentags/autoload/gutentags.vim
  95. 0
    93
      dotfiles/vim/bundle/vim-gutentags/autoload/gutentags/cscope.vim
  96. 0
    294
      dotfiles/vim/bundle/vim-gutentags/autoload/gutentags/ctags.vim
  97. 0
    122
      dotfiles/vim/bundle/vim-gutentags/autoload/gutentags/gtags_cscope.vim
  98. 0
    728
      dotfiles/vim/bundle/vim-gutentags/doc/gutentags.txt
  99. 0
    124
      dotfiles/vim/bundle/vim-gutentags/plat/unix/update_scopedb.sh
  100. 0
    0
      dotfiles/vim/bundle/vim-gutentags/plat/unix/update_tags.sh

+ 1
- 0
dotfiles/bash View File

@@ -0,0 +1 @@
1
+bashum

dotfiles/bash/colors.bashrc → dotfiles/bashum/colors.bashrc View File

@@ -1,5 +1,10 @@
1 1
 #!/bin/bash
2 2
 
3
+#
4
+# Context symbol used in title and prompt
5
+#
6
+BASHUM_CTXSYM=${BASHUM_CTXSYM:-}
7
+
3 8
 # get some fancy colorz
4 9
 BASHUM_COLOR_BLACK=$'\033[0;30m'
5 10
 BASHUM_COLOR_RED=$'\033[0;31m'

dotfiles/bash/defaults.bashrc → dotfiles/bashum/defaults.bashrc View File


dotfiles/bash/head.bashrc → dotfiles/bashum/head.bashrc View File


dotfiles/bash/host/README → dotfiles/bashum/host/README View File


+ 1
- 0
dotfiles/bashum/host/den.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../../vcs.rh/mydots/dotfiles/bash/host/den.bashrc

+ 1
- 0
dotfiles/bashum/host/kana.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../config/dotfiles/bash/host/kana.bashrc

+ 1
- 0
dotfiles/bashum/host/malinovka.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../config/dotfiles/bash/host/malinovka.bashrc

+ 8
- 0
dotfiles/bashum/host/malista.bashrc View File

@@ -0,0 +1,8 @@
1
+#!/bin/bash
2
+
3
+__bashum__mkps1host() {
4
+    echo "$BASHUM_PS_COLOR_MAGENTA\h$BASHUM_PS_COLOR_NORMAL";
5
+}
6
+
7
+export MDPUBLISH__MDBIN=markdown
8
+export SNAP_DST=/mnt/backups/moon/netvorovo/

+ 1
- 0
dotfiles/bashum/host/morel.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../config/dotfiles/bash/host/morel.bashrc

+ 1
- 0
dotfiles/bashum/host/singletop.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../../vcs.rh/mydots/dotfiles/bash/host/singletop.bashrc

+ 1
- 0
dotfiles/bashum/host/tamtam.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../config/dotfiles/bash/host/tamtam.bashrc

+ 1
- 0
dotfiles/bashum/host/tamten.bashrc View File

@@ -0,0 +1 @@
1
+../../../../../config/dotfiles/bash/host/tamten.bashrc

dotfiles/bash/main.bashrc → dotfiles/bashum/main.bashrc View File

@@ -13,22 +13,51 @@ test -f /usr/share/git-core/contrib/completion/git-prompt.sh \
13 13
 ### SUBZ ###
14 14
 ### '''' ###
15 15
 
16
+smv() {
17
+    #
18
+    # scp but rm the source
19
+    #
20
+    local src=$1
21
+    local dst=$2
22
+    test $# -eq 2 || {
23
+        echo "i can only 2 argz!" >&2
24
+        return 2
25
+    }
26
+    scp "$src" "$dst" && rm "$src"
27
+}
28
+
29
+smvr() {
30
+    #
31
+    # smv but recursive
32
+    #
33
+    local src=$1
34
+    local dst=$2
35
+    test $# -eq 2 || {
36
+        echo "i can only 2 argz!" >&2
37
+        return 2
38
+    }
39
+    scp -r "$src" "$dst" && rm -r "$src"
40
+}
41
+
42
+
16 43
 bb() {
17 44
     #
18 45
     # Ring the bell
19 46
     #
20 47
     local stime=${1:-0}
48
+    test "$stime" == 0 || echo -e "sleeping for $BASHUM_COLOR_LGREEN$stime$BASHUM_COLOR_NORMAL"
21 49
     sleep "$stime"
22 50
     printf '\a'
23 51
 }
24 52
 
25 53
 nn() {
26 54
     #
27
-    # Ring the bell and send notification $1
55
+    # Ring the bell and send notification $1 after $2 time
28 56
     #
29 57
     local msg=${1:-this is done}
30
-    bb
31
-    echo -e "hey, \033[1;31m$msg\033[1;0m!"
58
+    local stime=$2
59
+    bb "$stime"
60
+    echo -e "hey, $BASHUM_COLOR_LRED$msg$BASHUM_COLOR_NORMAL"
32 61
     notify-send -a 'nn()' "hey, $msg"
33 62
 }
34 63
 
@@ -37,7 +66,6 @@ pp() {
37 66
     # Ring the bell and send notification $1 and pause
38 67
     #
39 68
     local msg=${1:-this is done}
40
-    local junk
41 69
     bb
42 70
     echo -e "hey, \033[1;31m$msg\033[1;0m!"
43 71
     notify-send -a 'pp()' "hey, $msg"
@@ -362,6 +390,18 @@ nljoin() {
362 390
       | fixnl -c
363 391
 }
364 392
 
393
+urle() {
394
+    #
395
+    # Encode or decode (if $1 is '-d') message on stdin as URL encode
396
+    #
397
+    local fn=quote
398
+    case $1 in
399
+        -d) fn=unquote ;;
400
+        -*) echo 'usage: urle [-d] <text' >&2; return 2 ;;
401
+    esac
402
+    python3 -c "import sys; from urllib.parse import $fn; print($fn(sys.stdin.read()));"
403
+}
404
+
365 405
 qpr() {
366 406
     #
367 407
     # Encode or decode (if $1 is '-d') message on stdin as Quoted Printable
@@ -563,7 +603,7 @@ cal() {
563 603
     local cal_es
564 604
     cal_v=$(command cal -V 2>/dev/null); cal_es=$?
565 605
     case $cal_es:$cal_v in
566
-        0:cal\ from\ util-linux\ 2.32.1)
606
+        0:cal\ from\ util-linux\ 2.*)
567 607
             command cal --color=always --monday --week "$@"
568 608
             ;;
569 609
         64:*)
@@ -596,13 +636,13 @@ alias czkrates='czkrates -v'
596 636
 alias ll='ls -lh'
597 637
 alias lla='ls -lha'
598 638
 alias lr='ll -lhrt'
599
-alias open='gnome-open'
639
+alias open='xdg-open'
600 640
 alias diff='colordiff -u'
601 641
 alias dmesg='dmesg --time-format iso'
602 642
 alias pad4='sed -e "/./s/^/    /"'
603 643
 alias mkittool='mkittool -v'
604 644
 alias grep='grep --color'
605
-alias sc='se --direction=encz.cz'
645
+alias sc='se --direction encz.cz'
606 646
 alias taskm='task modify'
607 647
 alias tasks='task rc.context:none'
608 648
 alias ts='ts "%F %T"'
@@ -643,7 +683,7 @@ export NEATY=color
643 683
 export PRETTY=color
644 684
 export PRETTY_DEBUG_EXCLUDE=inigrep
645 685
 
646
-export MDVIMB__CONVERTER=commonmark
686
+export MDVIMB__CONVERTER=cmark
647 687
 export MDVIMB__STYLE=darkzen    # pergamen
648 688
 
649 689
 #shellcheck disable=SC2034

dotfiles/bash/post.bashrc → dotfiles/bashum/post.bashrc View File

@@ -45,6 +45,8 @@ __bashum__mkps1() {
45 45
     echo -n "$BASHUM_PS_COLOR_LWHITE@"         # nice shiny at sign
46 46
     echo -n "$(__bashum__mkps1host)"        # hostname colored per host
47 47
     echo -n "$BASHUM_PS_COLOR_LYELLOW"         #\
48
+    test -n "$BASHUM_CTXSYM" \
49
+     && echo -n "[$BASHUM_CTXSYM]"             # > bashum's context symbol
48 50
     echo -n     '$(__bashum__task_context)' # > taskwarrior's context
49 51
     echo -n "$BASHUM_PS_COLOR_NORMAL"          #/
50 52
     echo -n "$BASHUM_PS_COLOR_LWHITE:"         # nice shiny colon
@@ -202,9 +204,11 @@ __bashum__mkpc() {
202 204
 
203 205
 __bashum__mkicon() {
204 206
     case "$SSH_CONNECTION" in
205
-        "") echo  ;;
206
-        *)  echo  ;;
207
+        "") echo -n  ;;
208
+        *)  echo -n  ;;
207 209
     esac
210
+    test -n "$BASHUM_CTXSYM" \
211
+     && echo " [$BASHUM_CTXSYM]"
208 212
 }
209 213
 
210 214
 __bashum__mkhostid() {

dotfiles/bash/setup → dotfiles/bashum/setup View File


dotfiles/bash/user/amahdal.bashrc → dotfiles/bashum/user/amahdal.bashrc View File


+ 8
- 8
dotfiles/config/Xlib/bin/setup View File

@@ -1,11 +1,11 @@
1 1
 #!/bin/bash
2 2
 
3
-host=$(hostname -s)
3
+THIS_HOST=$(hostname -s)
4 4
 
5
-cat<<EOF > $HOME/.Xdefaults
6
-!! This file is generated by .config/Xlib/bin/setup
7
-!! from mydots.  Changes are not tracked by mydots.
8
-
9
-# include "$HOME/.config/Xlib/global.Xdefaults"
10
-# include "$HOME/.config/Xlib/host/${host}.Xdefaults"
11
-EOF
5
+{
6
+    printf '!! This file is generated by .config/Xlib/bin/setup\n'
7
+    printf '!! from mydots.  Changes are not tracked by mydots.\n'
8
+    printf '\n'
9
+    printf '# include "%s/.config/Xlib/global.Xdefaults"\n' "$HOME"
10
+    printf '# include "%s/.config/Xlib/host/%s.Xdefaults"\n' "$HOME" "$THIS_HOST"
11
+}> "$HOME/.Xdefaults"

+ 2
- 2
dotfiles/config/Xlib/colorscheme/zenburn.Xdefaults View File

@@ -3,7 +3,7 @@
3 3
 !## ======= ====== ##
4 4
 
5 5
 URxvt.foreground:       #dcdccc
6
-URxvt.background:       #3f3f3f
6
+URxvt.background:       #080808
7 7
 URxvt.colorUL:          #c5f779
8 8
 URxvt.underlineColor:   #c5f779
9 9
 URxvt.color0:           #3f3f3f
@@ -24,7 +24,7 @@ URxvt.color14:          #93e0e3
24 24
 URxvt.color15:          #ffffff
25 25
 
26 26
 xterm*foreground:       #dcdccc
27
-xterm*background:       #3f3f3f
27
+xterm*background:       #080808
28 28
 xterm*color0:           #353535
29 29
 xterm*color8:           #666666
30 30
 xterm*color1:           #AE4747

+ 0
- 2
dotfiles/config/bmo/be.ini View File

@@ -11,7 +11,6 @@
11 11
 
12 12
 [be.def.spot.role:afk]
13 13
     shape = bounce
14
-    enter = bmo_beh__if -P clementine /usr/bin/clementine --pause
15 14
     spike = bmo kb home && slock
16 15
 
17 16
 [be.def.axis.role]
@@ -35,7 +34,6 @@
35 34
     shape = bounce
36 35
     enter = bmo be .undocked
37 36
     enter = bmo_beh__if -P mocp --then mocp --pause
38
-    enter = bmo_beh__if -P clementine /usr/bin/clementine --pause
39 37
     enter = ssh-add -D 2>&1 && notify-send "all identities removed"
40 38
     enter = bmo_beh__if -P weechat weechat-fifo -s \*/disconnect -all offline
41 39
     spike = bmo kb home && slock systemctl suspend -i

+ 0
- 5
dotfiles/config/bmo/menu.ini View File

@@ -6,11 +6,6 @@
6 6
     selector_args = -l 20 --split =
7 7
     consumer    = bmo wish -f
8 8
 
9
-[menu.def.www_hist]
10
-    generator   = tac .local/share/uzbl/history | uniq
11
-    selector_args = -l 20 --split-field 3
12
-    consumer    = bmo wish -f
13
-
14 9
 [menu.def.home]
15 10
     generator   = ls -1 -t
16 11
     selector_args = -l 30

+ 6
- 1
dotfiles/config/bmo/nag.ini View File

@@ -1,5 +1,10 @@
1 1
 [nag.stream]
2
-    master = event overdue projsum active week stconflict wttr
2
+    master = event overdue projsum active week stconflict wttr timenow
3
+
4
+[nag.def.timenow]
5
+    command = date --rfc-3339=seconds
6
+    expiry = 10 minutes
7
+    term-color = magenta
3 8
 
4 9
 [nag.def.event]
5 10
     command = task rc.verbose=nothing list +event due.before:now+2w -ACTIVE

+ 1
- 0
dotfiles/config/bmo/sensible.ini View File

@@ -33,6 +33,7 @@
33 33
     browser = firefox
34 34
     browser = chromium
35 35
     browser = chromium-browser
36
+    browser = vlc
36 37
 
37 38
     vplayer = vlc
38 39
 

+ 1
- 1
dotfiles/config/bmo/style.ini View File

@@ -1,6 +1,6 @@
1 1
 
2 2
 [style]
3
-    font = Inconsolata:pixelsize=16
3
+    font = Dejavu Sans Mono:pixelsize=16
4 4
 
5 5
 [style.color]
6 6
     nbg = #222222

+ 8
- 1
dotfiles/config/bmo/wish.ini View File

@@ -14,8 +14,10 @@
14 14
     fmca    = https://www.fastmail.com/calendar/
15 15
     fmco    = https://www.fastmail.com/contacts/
16 16
     g       = http://www.google.com/
17
+    glcom   = https://www.gitlab.com/
17 18
     gvc     = https://gitea.vornet.cz/
18 19
     gh      = https://www.github.com/
20
+    hi      = http://www.hellointernet.fm/
19 21
     hb      = http://hastebin.com/
20 22
     lh      = http://localhost/
21 23
     lh-st   = http://localhost:8384/
@@ -23,12 +25,15 @@
23 25
     idos    = http://jizdnirady.idnes.cz/vlakyautobusy/spojeni/
24 26
     idosbrq = http://jizdnirady.idnes.cz/brno/spojeni/
25 27
     jnoise  = https://mynoise.net/NoiseMachines/jungleNoiseGenerator.php
28
+    noise:jlow = https://mynoise.net/NoiseMachines/jungleNoiseGenerator.php?l=47251829430000343721
29
+    noise:infra = https://mynoise.net/NoiseMachines/whiteNoiseGenerator.php?l=66442817080300000000
26 30
     kam     = http://www.kam.vutbr.cz/?p=otdo
27 31
     kb      = https://keybase.io/netvor/
28 32
     kbfs    = https://keybase.pub/netvor/
29 33
     ma      = http://www.mapy.cz/
30 34
     mbr     = https://musicbrainz.org/
31 35
     mfp     = http://musicforprogramming.net/
36
+    mzk     = https://mzk.cz/
32 37
     pat     = https://patreon.com/netvor
33 38
     pil     = https://www.lua.org/pil/contents.html
34 39
     pio     = https://pagure.io/
@@ -42,6 +47,7 @@
42 47
     rdt     = https://www.reddit.com/subreddits/
43 48
     so      = https://stackoverflow.com/
44 49
     sx      = https://searx.me/
50
+    tg      = https://web.telegram.org/
45 51
     tgi     = https://try.gitea.io/
46 52
     tjc     = https://together.jolla.com/
47 53
     tor     = https://theoldreader.com/
@@ -59,7 +65,7 @@
59 65
     cd      = http://www.collinsdictionary.com/dictionary/english/%s
60 66
     d       = http://www.collinsdictionary.com/dictionary/english/%s
61 67
     dd      = http://devdocs.io/%s
62
-    ddg     = https://duckduckgo.com/html/?q=%s
68
+    ddg     = https://duckduckgo.com/?q=%s
63 69
     deb     = https://packages.debian.org/search?keywords=%s
64 70
     debsec  = https://security-tracker.debian.org/tracker/%s
65 71
     fas     = https://admin.fedoraproject.org/accounts/user/view/%s
@@ -84,3 +90,4 @@
84 90
     w       = http://en.wikipedia.org/wiki/%s
85 91
     wa      = https://www.wolframalpha.com/input/?i=%s
86 92
     yt      = https://www.youtube.com/results?search_query=%s
93
+    xkcd    = https://xkcd.com/%s/

+ 2
- 2
dotfiles/config/mkittool/debstuff.ini View File

@@ -7,7 +7,7 @@
7 7
     scrap_storage = true
8 8
 
9 9
 [debstuff.def.group.jats]
10
-    branch = devel
10
+    branch = master
11 11
     uri_pattern = ~/vcs.jats/%s
12 12
 
13 13
 [debstuff.def.group.vpriv]
@@ -16,5 +16,5 @@
16 16
     storage_root = ~/pals/vornet-private/deb
17 17
 
18 18
 [debstuff.def.group.vscratch]
19
-    branch = devel
19
+    branch = master
20 20
     uri_pattern = ~/vcs.mystream/%s

+ 45
- 39
dotfiles/config/xfce4/terminal/accels.scm View File

@@ -1,52 +1,58 @@
1 1
 ; xfce4-terminal GtkAccelMap rc-file         -*- scheme -*-
2 2
 ; this file is an automated accelerator map dump
3 3
 ;
4
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-4" "<Alt>4")
5
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")
6
-; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
4
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>2")
5
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-6" "<Alt>6")
6
+; (gtk_accel_path "<Actions>/terminal-window/copy-input" "")
7 7
 ; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "")
8
-; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
9
-; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
10
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
11
-; (gtk_accel_path "<Actions>/terminal-window/show-menubar" "")
12
-; (gtk_accel_path "<Actions>/terminal-window/zoom-reset" "<Primary>0")
13
-; (gtk_accel_path "<Actions>/terminal-window/terminal-menu" "")
14
-; (gtk_accel_path "<Actions>/terminal-window/close-window" "<Primary><Shift>q")
15
-; (gtk_accel_path "<Actions>/terminal-window/close-tab" "<Primary><Shift>w")
16
-; (gtk_accel_path "<Actions>/terminal-window/save-contents" "")
17
-; (gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary><Shift>t")
18
-; (gtk_accel_path "<Actions>/terminal-window/view-menu" "")
19
-; (gtk_accel_path "<Actions>/terminal-window/show-toolbar" "")
20
-; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v")
21
-; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c")
8
+; (gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Primary><Shift>Page_Down")
9
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-7" "<Alt>7")
10
+; (gtk_accel_path "<Actions>/terminal-window/set-title-color" "")
22 11
 ; (gtk_accel_path "<Actions>/terminal-window/edit-menu" "")
12
+; (gtk_accel_path "<Actions>/terminal-window/zoom-menu" "")
13
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
23 14
 ; (gtk_accel_path "<Actions>/terminal-window/fullscreen" "F11")
24 15
 ; (gtk_accel_path "<Actions>/terminal-window/read-only" "")
25
-; (gtk_accel_path "<Actions>/terminal-window/detach-tab" "<Primary><Shift>d")
26
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-8" "<Alt>8")
27
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-2" "<Alt>2")
28
-; (gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Primary>Page_Up")
29
-; (gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Primary><Shift>Page_Up")
30
-; (gtk_accel_path "<Actions>/terminal-window/zoom-in" "<Primary>plus")
31
-; (gtk_accel_path "<Actions>/terminal-window/search-prev" "")
16
+; (gtk_accel_path "<Actions>/terminal-window/preferences" "")
32 17
 ; (gtk_accel_path "<Actions>/terminal-window/reset-and-clear" "")
33 18
 ; (gtk_accel_path "<Actions>/terminal-window/about" "")
34
-; (gtk_accel_path "<Actions>/terminal-window/search-next" "")
35
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-7" "<Alt>7")
36
-; (gtk_accel_path "<Actions>/terminal-window/select-all" "<Primary><Shift>a")
37
-; (gtk_accel_path "<Actions>/terminal-window/help-menu" "")
38
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-9" "<Alt>9")
19
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-5" "<Alt>5")
20
+; (gtk_accel_path "<Actions>/terminal-window/close-window" "<Primary><Shift>q")
21
+; (gtk_accel_path "<Actions>/terminal-window/reset" "")
22
+; (gtk_accel_path "<Actions>/terminal-window/save-contents" "")
23
+(gtk_accel_path "<Actions>/terminal-window/toggle-menubar" "F10")
24
+; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c")
25
+; (gtk_accel_path "<Actions>/terminal-window/copy-html" "")
26
+; (gtk_accel_path "<Actions>/terminal-window/last-active-tab" "")
39 27
 ; (gtk_accel_path "<Actions>/terminal-window/show-borders" "")
40
-; (gtk_accel_path "<Actions>/terminal-window/preferences" "")
41
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-6" "<Alt>6")
28
+; (gtk_accel_path "<Actions>/terminal-window/view-menu" "")
29
+; (gtk_accel_path "<Actions>/terminal-window/detach-tab" "<Primary><Shift>d")
30
+; (gtk_accel_path "<Actions>/terminal-window/scroll-on-output" "")
31
+; (gtk_accel_path "<Actions>/terminal-window/show-toolbar" "")
32
+; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
33
+; (gtk_accel_path "<Actions>/terminal-window/tabs-menu" "")
34
+; (gtk_accel_path "<Actions>/terminal-window/search-next" "")
35
+; (gtk_accel_path "<Actions>/terminal-window/search-prev" "")
36
+; (gtk_accel_path "<Actions>/terminal-window/undo-close-tab" "")
37
+; (gtk_accel_path "<Actions>/terminal-window/set-title" "<Primary><Shift>s")
42 38
 ; (gtk_accel_path "<Actions>/terminal-window/contents" "F1")
39
+; (gtk_accel_path "<Actions>/terminal-window/zoom-reset" "<Primary>0")
40
+; (gtk_accel_path "<Actions>/terminal-window/close-tab" "<Primary><Shift>w")
41
+; (gtk_accel_path "<Actions>/terminal-window/new-tab" "<Primary><Shift>t")
43 42
 ; (gtk_accel_path "<Actions>/terminal-window/new-window" "<Primary><Shift>n")
44
-; (gtk_accel_path "<Actions>/terminal-window/move-tab-right" "<Primary><Shift>Page_Down")
45
-; (gtk_accel_path "<Actions>/terminal-window/zoom-out" "<Primary>minus")
46
-; (gtk_accel_path "<Actions>/terminal-window/set-title" "<Primary><Shift>s")
43
+; (gtk_accel_path "<Actions>/terminal-window/terminal-menu" "")
44
+; (gtk_accel_path "<Actions>/terminal-window/show-menubar" "")
45
+; (gtk_accel_path "<Actions>/terminal-window/select-all" "<Primary><Shift>a")
46
+; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v")
47
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-9" "<Alt>9")
48
+; (gtk_accel_path "<Actions>/terminal-window/move-tab-left" "<Primary><Shift>Page_Up")
49
+; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
50
+; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
51
+; (gtk_accel_path "<Actions>/terminal-window/prev-tab" "<Primary>Page_Up")
47 52
 ; (gtk_accel_path "<Actions>/terminal-window/paste-selection" "")
48
-; (gtk_accel_path "<Actions>/terminal-window/undo-close-tab" "")
49
-(gtk_accel_path "<Actions>/terminal-window/goto-tab-5" "<Alt>5")
50
-; (gtk_accel_path "<Actions>/terminal-window/zoom-menu" "")
51
-; (gtk_accel_path "<Actions>/terminal-window/reset" "")
52
-; (gtk_accel_path "<Actions>/terminal-window/tabs-menu" "")
53
+; (gtk_accel_path "<Actions>/terminal-window/zoom-in" "<Primary>plus")
54
+; (gtk_accel_path "<Actions>/terminal-window/zoom-out" "<Primary>minus")
55
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-8" "<Alt>8")
56
+; (gtk_accel_path "<Actions>/terminal-window/help-menu" "")
57
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-4" "<Alt>4")
58
+(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")

+ 4
- 1
dotfiles/config/xfce4/terminal/terminalrc View File

@@ -26,8 +26,11 @@ MiscDefaultWorkingDir=
26 26
 MiscRewrapOnResize=TRUE
27 27
 MiscUseShiftArrowsToScroll=FALSE
28 28
 MiscSlimTabs=FALSE
29
-ColorPalette=#000000;#cc0000;#4e9a06;#c4a000;#3465a4;#75507b;#06989a;#d3d7cf;#555753;#ef2929;#8ae234;#fce94f;#739fcf;#ad7fa8;#34e2e2;#eeeeec
30 29
 ScrollingOnOutput=FALSE
31 30
 ScrollingLines=100000
32 31
 MiscShowUnsafePasteDialog=FALSE
32
+MiscShowRelaunchDialog=TRUE
33
+MiscNewTabAdjacent=FALSE
34
+MiscSearchDialogOpacity=100
35
+ColorPalette=#000000;#cc0000;#4e9a06;#c4a000;#3465a4;#75507b;#06989a;#d3d7cf;#555753;#ef2929;#8ae234;#fce94f;#739fcf;#ad7fa8;#34e2e2;#eeeeec
33 36
 

+ 1
- 1
dotfiles/gittum/bin/slurp View File

@@ -92,7 +92,7 @@ go_push() {
92 92
     #
93 93
     if $force_push || allowed_push;
94 94
     then
95
-        git push
95
+        git push -o ci.skip
96 96
     fi
97 97
 }
98 98
 

+ 8
- 0
dotfiles/gittum/main.gitconfig View File

@@ -1,3 +1,5 @@
1
+[log]
2
+    date = iso
1 3
 [color]
2 4
     ui = true
3 5
 [core]
@@ -53,3 +55,9 @@
53 55
 
54 56
 [tag]
55 57
     sort = version:refname
58
+
59
+[gui]
60
+    spellingdictionary = none
61
+
62
+[pull]
63
+    ff = only

+ 5
- 1
dotfiles/i3/config View File

@@ -65,6 +65,9 @@ mouse_warping none
65 65
 hide_edge_borders vertical
66 66
 font pango:Inconsolata 12
67 67
 workspace_layout stacked
68
+workspace_auto_back_and_forth yes
69
+force_display_urgency_hint 500 ms
70
+focus_on_window_activation none
68 71
 
69 72
 # change focus
70 73
 bindsym $mod+h              focus left
@@ -372,6 +375,8 @@ bindsym $mod+Home           exec "$spn bmo menu home"
372 375
 bindsym $mod+Shift+Home     exec "thunar"
373 376
 bindsym $mod+p              exec "$spn bmo menu run"
374 377
 bindsym $mod+Shift+p        exec "$spn bmo menu run_hist"
378
+bindsym $mod+z              exec "xclock"
379
+bindsym $mod+equal          exec "urxvt -e glances"
375 380
 
376 381
 #------------------------------------------------------------------------#
377 382
 ## WWW magic mind readers                                               ##
@@ -454,7 +459,6 @@ for_window [class="Orage"]      floating enable
454 459
 
455 460
 exec "newfeh"
456 461
 exec "dunst"
457
-exec "dropbox start"
458 462
 exec "urxvt -e weechat"
459 463
 exec "nm-applet"
460 464
 exec "blueman-applet"

+ 0
- 328
dotfiles/vim/autoload/pathogen.vim View File

@@ -1,328 +0,0 @@
1
-" pathogen.vim - path option manipulation
2
-" Maintainer:   Tim Pope <http://tpo.pe/>
3
-" Version:      2.2
4
-
5
-" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
6
-"
7
-" For management of individually installed plugins in ~/.vim/bundle (or
8
-" ~\vimfiles\bundle), adding `call pathogen#infect()` to the top of your
9
-" .vimrc is the only other setup necessary.
10
-"
11
-" The API is documented inline below.  For maximum ease of reading,
12
-" :set foldmethod=marker
13
-
14
-if exists("g:loaded_pathogen") || &cp
15
-  finish
16
-endif
17
-let g:loaded_pathogen = 1
18
-
19
-function! s:warn(msg)
20
-  if &verbose
21
-    echohl WarningMsg
22
-    echomsg a:msg
23
-    echohl NONE
24
-  endif
25
-endfunction
26
-
27
-" Point of entry for basic default usage.  Give a relative path to invoke
28
-" pathogen#incubate() (defaults to "bundle/{}"), or an absolute path to invoke
29
-" pathogen#surround().  For backwards compatibility purposes, a full path that
30
-" does not end in {} or * is given to pathogen#runtime_prepend_subdirectories()
31
-" instead.
32
-function! pathogen#infect(...) abort " {{{1
33
-  for path in a:0 ? reverse(copy(a:000)) : ['bundle/{}']
34
-    if path =~# '^[^\\/]\+$'
35
-      call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
36
-      call pathogen#incubate(path . '/{}')
37
-    elseif path =~# '^[^\\/]\+[\\/]\%({}\|\*\)$'
38
-      call pathogen#incubate(path)
39
-    elseif path =~# '[\\/]\%({}\|\*\)$'
40
-      call pathogen#surround(path)
41
-    else
42
-      call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
43
-      call pathogen#surround(path . '/{}')
44
-    endif
45
-  endfor
46
-  call pathogen#cycle_filetype()
47
-  return ''
48
-endfunction " }}}1
49
-
50
-" Split a path into a list.
51
-function! pathogen#split(path) abort " {{{1
52
-  if type(a:path) == type([]) | return a:path | endif
53
-  let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
54
-  return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
55
-endfunction " }}}1
56
-
57
-" Convert a list to a path.
58
-function! pathogen#join(...) abort " {{{1
59
-  if type(a:1) == type(1) && a:1
60
-    let i = 1
61
-    let space = ' '
62
-  else
63
-    let i = 0
64
-    let space = ''
65
-  endif
66
-  let path = ""
67
-  while i < a:0
68
-    if type(a:000[i]) == type([])
69
-      let list = a:000[i]
70
-      let j = 0
71
-      while j < len(list)
72
-        let escaped = substitute(list[j],'[,'.space.']\|\\[\,'.space.']\@=','\\&','g')
73
-        let path .= ',' . escaped
74
-        let j += 1
75
-      endwhile
76
-    else
77
-      let path .= "," . a:000[i]
78
-    endif
79
-    let i += 1
80
-  endwhile
81
-  return substitute(path,'^,','','')
82
-endfunction " }}}1
83
-
84
-" Convert a list to a path with escaped spaces for 'path', 'tag', etc.
85
-function! pathogen#legacyjoin(...) abort " {{{1
86
-  return call('pathogen#join',[1] + a:000)
87
-endfunction " }}}1
88
-
89
-" Remove duplicates from a list.
90
-function! pathogen#uniq(list) abort " {{{1
91
-  let i = 0
92
-  let seen = {}
93
-  while i < len(a:list)
94
-    if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
95
-      call remove(a:list,i)
96
-    elseif a:list[i] ==# ''
97
-      let i += 1
98
-      let empty = 1
99
-    else
100
-      let seen[a:list[i]] = 1
101
-      let i += 1
102
-    endif
103
-  endwhile
104
-  return a:list
105
-endfunction " }}}1
106
-
107
-" \ on Windows unless shellslash is set, / everywhere else.
108
-function! pathogen#separator() abort " {{{1
109
-  return !exists("+shellslash") || &shellslash ? '/' : '\'
110
-endfunction " }}}1
111
-
112
-" Convenience wrapper around glob() which returns a list.
113
-function! pathogen#glob(pattern) abort " {{{1
114
-  let files = split(glob(a:pattern),"\n")
115
-  return map(files,'substitute(v:val,"[".pathogen#separator()."/]$","","")')
116
-endfunction "}}}1
117
-
118
-" Like pathogen#glob(), only limit the results to directories.
119
-function! pathogen#glob_directories(pattern) abort " {{{1
120
-  return filter(pathogen#glob(a:pattern),'isdirectory(v:val)')
121
-endfunction "}}}1
122
-
123
-" Turn filetype detection off and back on again if it was already enabled.
124
-function! pathogen#cycle_filetype() " {{{1
125
-  if exists('g:did_load_filetypes')
126
-    filetype off
127
-    filetype on
128
-  endif
129
-endfunction " }}}1
130
-
131
-" Check if a bundle is disabled.  A bundle is considered disabled if it ends
132
-" in a tilde or its basename or full name is included in the list
133
-" g:pathogen_disabled.
134
-function! pathogen#is_disabled(path) " {{{1
135
-  if a:path =~# '\~$'
136
-    return 1
137
-  elseif !exists("g:pathogen_disabled")
138
-    return 0
139
-  endif
140
-  let sep = pathogen#separator()
141
-  let blacklist = g:pathogen_disabled
142
-  return index(blacklist, strpart(a:path, strridx(a:path, sep)+1)) != -1 && index(blacklist, a:path) != 1
143
-endfunction "}}}1
144
-
145
-" Prepend the given directory to the runtime path and append its corresponding
146
-" after directory.  If the directory is already included, move it to the
147
-" outermost position.  Wildcards are added as is.  Ending a path in /{} causes
148
-" all subdirectories to be added (except those in g:pathogen_disabled).
149
-function! pathogen#surround(path) abort " {{{1
150
-  let sep = pathogen#separator()
151
-  let rtp = pathogen#split(&rtp)
152
-  if a:path =~# '[\\/]{}$'
153
-    let path = fnamemodify(a:path[0:-4], ':p:s?[\\/]\=$??')
154
-    let before = filter(pathogen#glob_directories(path.sep.'*'), '!pathogen#is_disabled(v:val)')
155
-    let after  = filter(reverse(pathogen#glob_directories(path.sep."*".sep."after")), '!pathogen#is_disabled(v:val[0:-7])')
156
-    call filter(rtp,'v:val[0:strlen(path)-1] !=# path')
157
-  else
158
-    let path = fnamemodify(a:path, ':p:s?[\\/]\=$??')
159
-    let before = [path]
160
-    let after = [path . sep . 'after']
161
-    call filter(rtp, 'index(before + after, v:val) == -1')
162
-  endif
163
-  let &rtp = pathogen#join(before, rtp, after)
164
-  return &rtp
165
-endfunction " }}}1
166
-
167
-" Prepend all subdirectories of path to the rtp, and append all 'after'
168
-" directories in those subdirectories.  Deprecated.
169
-function! pathogen#runtime_prepend_subdirectories(path) " {{{1
170
-  call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#surround('.string(a:path.'/{}').')')
171
-  return pathogen#surround(a:path . pathogen#separator() . '{}')
172
-endfunction " }}}1
173
-
174
-" For each directory in the runtime path, add a second entry with the given
175
-" argument appended.  If the argument ends in '/{}', add a separate entry for
176
-" each subdirectory.  The default argument is 'bundle/{}', which means that
177
-" .vim/bundle/*, $VIM/vimfiles/bundle/*, $VIMRUNTIME/bundle/*,
178
-" $VIM/vim/files/bundle/*/after, and .vim/bundle/*/after will be added (on
179
-" UNIX).
180
-function! pathogen#incubate(...) abort " {{{1
181
-  let sep = pathogen#separator()
182
-  let name = a:0 ? a:1 : 'bundle/{}'
183
-  if "\n".s:done_bundles =~# "\\M\n".name."\n"
184
-    return ""
185
-  endif
186
-  let s:done_bundles .= name . "\n"
187
-  let list = []
188
-  for dir in pathogen#split(&rtp)
189
-    if dir =~# '\<after$'
190
-      if name =~# '{}$'
191
-        let list +=  filter(pathogen#glob_directories(substitute(dir,'after$',name[0:-3],'').'*[^~]'.sep.'after'), '!pathogen#is_disabled(v:val[0:-7])') + [dir]
192
-      else
193
-        let list += [dir, substitute(dir, 'after$', '', '') . name . sep . 'after']
194
-      endif
195
-    else
196
-      if name =~# '{}$'
197
-        let list +=  [dir] + filter(pathogen#glob_directories(dir.sep.name[0:-3].'*[^~]'), '!pathogen#is_disabled(v:val)')
198
-      else
199
-        let list += [dir . sep . name, dir]
200
-      endif
201
-    endif
202
-  endfor
203
-  let &rtp = pathogen#join(pathogen#uniq(list))
204
-  return 1
205
-endfunction " }}}1
206
-
207
-" Deprecated alias for pathogen#incubate().
208
-function! pathogen#runtime_append_all_bundles(...) abort " {{{1
209
-  if a:0
210
-    call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#incubate('.string(a:1.'/{}').')')
211
-  else
212
-    call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#incubate()')
213
-  endif
214
-  return call('pathogen#incubate', map(copy(a:000),'v:val . "/{}"'))
215
-endfunction
216
-
217
-let s:done_bundles = ''
218
-" }}}1
219
-
220
-" Invoke :helptags on all non-$VIM doc directories in runtimepath.
221
-function! pathogen#helptags() abort " {{{1
222
-  let sep = pathogen#separator()
223
-  for glob in pathogen#split(&rtp)
224
-    for dir in split(glob(glob), "\n")
225
-      if (dir.sep)[0 : strlen($VIMRUNTIME)] !=# $VIMRUNTIME.sep && filewritable(dir.sep.'doc') == 2 && !empty(filter(split(glob(dir.sep.'doc'.sep.'*'),"\n>"),'!isdirectory(v:val)')) && (!filereadable(dir.sep.'doc'.sep.'tags') || filewritable(dir.sep.'doc'.sep.'tags'))
226
-        helptags `=dir.'/doc'`
227
-      endif
228
-    endfor
229
-  endfor
230
-endfunction " }}}1
231
-
232
-command! -bar Helptags :call pathogen#helptags()
233
-
234
-" Execute the given command.  This is basically a backdoor for --remote-expr.
235
-function! pathogen#execute(...) abort " {{{1
236
-  for command in a:000
237
-    execute command
238
-  endfor
239
-  return ''
240
-endfunction " }}}1
241
-
242
-" Like findfile(), but hardcoded to use the runtimepath.
243
-function! pathogen#runtime_findfile(file,count) abort "{{{1
244
-  let rtp = pathogen#join(1,pathogen#split(&rtp))
245
-  let file = findfile(a:file,rtp,a:count)
246
-  if file ==# ''
247
-    return ''
248
-  else
249
-    return fnamemodify(file,':p')
250
-  endif
251
-endfunction " }}}1
252
-
253
-" Backport of fnameescape().
254
-function! pathogen#fnameescape(string) abort " {{{1
255
-  if exists('*fnameescape')
256
-    return fnameescape(a:string)
257
-  elseif a:string ==# '-'
258
-    return '\-'
259
-  else
260
-    return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','')
261
-  endif
262
-endfunction " }}}1
263
-
264
-if exists(':Vedit')
265
-  finish
266
-endif
267
-
268
-let s:vopen_warning = 0
269
-
270
-function! s:find(count,cmd,file,lcd) " {{{1
271
-  let rtp = pathogen#join(1,pathogen#split(&runtimepath))
272
-  let file = pathogen#runtime_findfile(a:file,a:count)
273
-  if file ==# ''
274
-    return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'"
275
-  endif
276
-  if !s:vopen_warning
277
-    let s:vopen_warning = 1
278
-    let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE'
279
-  else
280
-    let warning = ''
281
-  endif
282
-  if a:lcd
283
-    let path = file[0:-strlen(a:file)-2]
284
-    execute 'lcd `=path`'
285
-    return a:cmd.' '.pathogen#fnameescape(a:file) . warning
286
-  else
287
-    return a:cmd.' '.pathogen#fnameescape(file) . warning
288
-  endif
289
-endfunction " }}}1
290
-
291
-function! s:Findcomplete(A,L,P) " {{{1
292
-  let sep = pathogen#separator()
293
-  let cheats = {
294
-        \'a': 'autoload',
295
-        \'d': 'doc',
296
-        \'f': 'ftplugin',
297
-        \'i': 'indent',
298
-        \'p': 'plugin',
299
-        \'s': 'syntax'}
300
-  if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0])
301
-    let request = cheats[a:A[0]].a:A[1:-1]
302
-  else
303
-    let request = a:A
304
-  endif
305
-  let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*'
306
-  let found = {}
307
-  for path in pathogen#split(&runtimepath)
308
-    let path = expand(path, ':p')
309
-    let matches = split(glob(path.sep.pattern),"\n")
310
-    call map(matches,'isdirectory(v:val) ? v:val.sep : v:val')
311
-    call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]')
312
-    for match in matches
313
-      let found[match] = 1
314
-    endfor
315
-  endfor
316
-  return sort(keys(found))
317
-endfunction " }}}1
318
-
319
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve       :execute s:find(<count>,'edit<bang>',<q-args>,0)
320
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit    :execute s:find(<count>,'edit<bang>',<q-args>,0)
321
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen    :execute s:find(<count>,'edit<bang>',<q-args>,1)
322
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit   :execute s:find(<count>,'split',<q-args>,<bang>1)
323
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit  :execute s:find(<count>,'vsplit',<q-args>,<bang>1)
324
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(<count>,'tabedit',<q-args>,<bang>1)
325
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit   :execute s:find(<count>,'pedit',<q-args>,<bang>1)
326
-command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread    :execute s:find(<count>,'read',<q-args>,<bang>1)
327
-
328
-" vim:set et sw=2:

+ 0
- 257
dotfiles/vim/bundle/fugitive/doc/fugitive.txt View File

@@ -1,257 +0,0 @@
1
-*fugitive.txt*  A Git wrapper so awesome, it should be illegal
2
-
3
-Author:  Tim Pope <vimNOSPAM@tpope.org>         *fugitive-author*
4
-License: Same terms as Vim itself (see |license|)
5
-
6
-This plugin is only available if 'compatible' is not set.
7
-
8
-INTRODUCTION                                    *fugitive*
9
-
10
-Install in ~/.vim, or in ~\vimfiles if you're on Windows and feeling lucky.
11
-Vim 7.2 is recommended as it ships with syntax highlighting for many Git file
12
-types.
13
-
14
-If you're in a hurry to get started, here are some things to try:
15
-
16
-In any file in your repository, run |:Gedit| HEAD.  Press <CR> to jump to the
17
-current branch.  Press <CR> again to jump to the top most commit.  Keep using
18
-<CR> to explore parent commits, trees, and blobs.  Use C in a tree or blob to
19
-get back to the commit.
20
-
21
-Edit a file in the work tree and make some changes.  Use |:Gdiff| to open up
22
-the indexed version.  Use |do| and |dp| on various hunks to bring the files in
23
-sync, or use |:Gread| to pull in all changes.  Write the indexed version to
24
-stage the file.
25
-
26
-Run |:Gstatus| to check your repository's status.  Use "-" to stage and reset
27
-files and "p" to add/reset --patch them.  Invoke |:Gcommit| to commit your
28
-changes.
29
-
30
-Run |:Gblame| in a work tree file to see a blame in a vertical split.  Press
31
-<CR> on any line to reopen and reblame that file as it stood in that commit.
32
-Press o or O on any line to inspect that commit in a split or a tab.
33
-
34
-Run |:Ggrep| to search the work tree or history.  Run |:Gmove| to rename a
35
-file.  Run |:Gremove| to delete a file.
36
-
37
-COMMANDS                                        *fugitive-commands*
38
-
39
-These commands are local to the buffers in which they work (generally, buffers
40
-that are part of Git repositories).
41
-
42
-                                                *fugitive-:Git*
43
-:Git [args]             Run an arbitrary git command. Similar to :!git [args]
44
-                        but chdir to the repository tree first.
45
-
46
-                                                *fugitive-:Gcd*
47
-:Gcd [directory]        |:cd| relative to the repository.
48
-
49
-                                                *fugitive-:Glcd*
50
-:Glcd [directory]       |:lcd| relative to the repository.
51
-
52
-                                                *fugitive-:Gstatus*
53
-:Gstatus                Bring up the output of git-status in the preview
54
-                        window.  In addition to standard motions, you can
55
-                        use <C-N> and <C-P> to jump from filename to
56
-                        filename.  Press C to invoke |:Gcommit|.  Press D to
57
-                        |:Gdiff| the file on the cursor line, or ds to
58
-                        |:Gsdiff|.  Press - to stage or unstage the file on
59
-                        the cursor line.  Press p to do so on a per hunk basis
60
-                        (--patch).  All of D, -, and p have a different,
61
-                        sensible (and hopefully intuitive) behavior when
62
-                        invoked on a heading rather than a file name.
63
-
64
-                                                *fugitive-:Gcommit*
65
-:Gcommit [args]         A wrapper around git-commit.  If there is nothing
66
-                        to commit, |:Gstatus| is called instead.  Unless the
67
-                        arguments given would skip the invocation of an editor
68
-                        (e.g., -m), a split window will be used to obtain a
69
-                        commit message.  Write and close that window (:wq or
70
-                        |:Gwrite|) to finish the commit.  Unlike when running
71
-                        the actual git-commit command, it is possible (but
72
-                        unadvisable) to muck with the index with commands like
73
-                        git-add and git-reset while a commit message is
74
-                        pending.
75
-
76
-                                                *fugitive-:Ggrep*
77
-:Ggrep [args]           |:grep| with git-grep as 'grepprg'.
78
-
79
-                                                *fugitive-:Glog*
80
-:Glog [args]            Load all previous revisions of the current file into
81
-                        the quickfix list.  Additional git-log arguments can
82
-                        be given (for example, --reverse).  If "--" appears as
83
-                        an argument, no file specific filtering is done, and
84
-                        commits are loaded into the quickfix list.
85
-
86
-                                        *fugitive-:Gedit* *fugitive-:Ge*
87
-:Gedit [revision]       |:edit| a |fugitive-revision|.
88
-
89
-                                                *fugitive-:Gsplit*
90
-:Gsplit [revision]      |:split| a |fugitive-revision|.
91
-
92
-                                                *fugitive-:Gvsplit*
93
-:Gvsplit [revision]     |:vsplit| a |fugitive-revision|.
94
-
95
-                                                *fugitive-:Gtabedit*
96
-:Gtabedit [revision]    |:tabedit| a |fugitive-revision|
97
-
98
-                                                *fugitive-:Gpedit*
99
-:Gpedit [revision]      |:pedit| a |fugitive-revision|
100
-
101
-                                                *fugitive-:Gread*
102
-:Gread [revision]       Empty the buffer and |:read| a |fugitive-revision|.
103
-                        When the argument is omitted, this is similar to
104
-                        git-checkout on a work tree file or git-add on a stage
105
-                        file, but without writing anything to disk.
106
-
107
-:{range}Gread [revision]
108
-                        |:read| in a |fugitive-revision| after {range}.
109
-
110
-                                                *fugitive-:Gwrite*
111
-:Gwrite                 Write to the current file's path and stage the results.
112
-                        When run in a work tree file, it is effectively git
113
-                        add.  Elsewhere, it is effectively git-checkout.  A
114
-                        great deal of effort is expended to behave sensibly
115
-                        when the work tree or index version of the file is
116
-                        open in another buffer.
117
-
118
-:Gwrite {path}          You can give |:Gwrite| an explicit path of where in
119
-                        the work tree to write.  You can also give a path like
120
-                        :0:foo.txt or even :0 to write to just that stage in
121
-                        the index.
122
-
123
-                                                *fugitive-:Gwq*
124
-:Gwq [path]             Like |:Gwrite| followed by |:quit| if the write
125
-                        succeeded.
126
-
127
-:Gwq! [path]            Like |:Gwrite|! followed by |:quit|! if the write
128
-                        succeeded.
129
-
130
-                                                *fugitive-:Gdiff*
131
-:Gdiff [revision]       Perform a |vimdiff| against the current file in the
132
-                        given revision.  With no argument, the version in the
133
-                        index is used (which means a three-way diff during a
134
-                        merge conflict, making it a git-mergetool
135
-                        alternative).  The newer of the two files is placed
136
-                        to the right.  Use |do| and |dp| and write to the
137
-                        index file to simulate "git add --patch".
138
-
139
-                                                *fugitive-:Gsdiff*
140
-:Gsdiff [revision]      Like |:Gdiff|, but split horizontally.
141
-
142
-                                                *fugitive-:Gvdiff*
143
-:Gvdiff [revision]      Identical to |:Gdiff|.  For symmetry with |:Gsdiff|.
144
-
145
-                                                *fugitive-:Gmove*
146
-:Gmove {destination}    Wrapper around git-mv that renames the buffer
147
-                        afterward.  The destination is relative to the current
148
-                        directory except when started with a /, in which case
149
-                        it is relative to the work tree.  Add a ! to pass -f.
150
-
151
-                                                *fugitive-:Gremove*
152
-:Gremove                Wrapper around git-rm that deletes the buffer
153
-                        afterward.  When invoked in an index file, --cached is
154
-                        passed.  Add a ! to pass -f and forcefully discard the
155
-                        buffer.
156
-
157
-                                                *fugitive-:Gblame*
158
-:Gblame [flags]         Run git-blame on the file and open the results in a
159
-                        scroll bound vertical split.  Press enter on a line to
160
-                        reblame the file as it was in that commit.  You can
161
-                        give any of ltwfsMC as flags and they will be passed
162
-                        along to git-blame.
163
-
164
-:[range]Gblame [flags]  Run git-blame on the given range.
165
-
166
-                                                *fugitive-:Gbrowse*
167
-:[range]Gbrowse         If the remote for the current branch is on GitHub,
168
-                        open the current file, blob, tree, commit, or tag
169
-                        (with git-web--browse) on GitHub.  Otherwise, open the
170
-                        current file, blob, tree, commit, or tag in
171
-                        git-instaweb (if you have issues, verify you can run
172
-                        "git instaweb" from a terminal).  If a range is given,
173
-                        it is appropriately appended to the URL as an anchor.
174
-
175
-:[range]Gbrowse!        Like :Gbrowse, but put the URL on the clipboard rather
176
-                        than opening it.
177
-
178
-:[range]Gbrowse {revision}
179
-                        Like :Gbrowse, but for a given |fugitive-revision|.  A
180
-                        useful value here is -, which ties the URL to the
181
-                        latest commit rather than a volatile branch.
182
-
183
-:[range]Gbrowse [...]@{remote}
184
-                        Force using the given remote rather than the remote
185
-                        for the current branch.  The remote is used to
186
-                        determine which GitHub repository to link to.
187
-
188
-MAPPINGS                                        *fugitive-mappings*
189
-
190
-These maps are available in Git objects.
191
-
192
-                                                *fugitive-<CR>*
193
-<CR>                    Jump to the revision under the cursor.
194
-
195
-                                                *fugitive-o*
196
-o                       Jump to the revision under the cursor in a new split.
197
-
198
-                                                *fugitive-O*
199
-O                       Jump to the revision under the cursor in a new tab.
200
-
201
-                                                *fugitive-~*
202
-~                       Go to the current file in the [count]th first
203
-                        ancestor.
204
-
205
-                                                *fugitive-P*
206
-P                       Go to the current file in the [count]th parent.
207
-
208
-                                                *fugitive-C*
209
-C                       Go to the commit containing the current file.
210
-
211
-                                                *fugitive-a*
212
-a                       Show the current tag, commit, or tree in an alternate
213
-                        format.
214
-
215
-SPECIFYING REVISIONS                            *fugitive-revision*
216
-
217
-Fugitive revisions are similar to Git revisions as defined in the "SPECIFYING
218
-REVISIONS" section in the git-rev-parse man page.  For commands that accept an
219
-optional revision, the default is the file in the index for work tree files
220
-and the work tree file for everything else.  Example revisions follow.
221
-
222
-Revision        Meaning ~
223
-HEAD            .git/HEAD
224
-master          .git/refs/heads/master
225
-HEAD^{}         The commit referenced by HEAD
226
-HEAD^           The parent of the commit referenced by HEAD
227
-HEAD:           The tree referenced by HEAD
228
-/HEAD           The file named HEAD in the work tree
229
-Makefile        The file named Makefile in the work tree
230
-HEAD^:Makefile  The file named Makefile in the parent of HEAD
231
-:Makefile       The file named Makefile in the index (writable)
232
--               The current file in HEAD
233
-^               The current file in the previous commit
234
-~3              The current file 3 commits ago
235
-:               .git/index (Same as |:Gstatus|)
236
-:0              The current file in the index
237
-:1              The current file's common ancestor during a conflict
238
-:2              The current file in the target branch during a conflict
239
-:3              The current file in the merged branch during a conflict
240
-:/foo           The most recent commit with "foo" in the message
241
-
242
-STATUSLINE                                      *fugitive-statusline*
243
-
244
-                                                *fugitive#statusline()*
245
-Add %{fugitive#statusline()} to your statusline to get an indicator including
246
-the current branch and the currently edited file's commit.  If you don't have
247
-a statusline, this one matches the default when 'ruler' is set:
248
->
249
-    set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
250
-<
251
-ABOUT                                           *fugitive-about*
252
-
253
-Grab the latest version or report a bug on GitHub:
254
-
255
-http://github.com/tpope/vim-fugitive
256
-
257
- vim:tw=78:et:ft=help:norl:

+ 0
- 2041
dotfiles/vim/bundle/fugitive/plugin/fugitive.vim
File diff suppressed because it is too large
View File


+ 0
- 1
dotfiles/vim/bundle/html5.vim

@@ -1 +0,0 @@
1
-Subproject commit 3db896baa26839b866db3db5d8997cc830874a24

+ 0
- 1
dotfiles/vim/bundle/lh-vim-lib/.VimballRecord View File

@@ -1 +0,0 @@
1
-lh-vim-lib-3.1.1.vmb: call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/askvim.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/buffer.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/buffer/dialog.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/command.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/common.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/encoding.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/env.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/event.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/float.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/function.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/graph/tsort.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/icomplete.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/list.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/menu.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/option.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/path.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/position.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/syntax.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//autoload/lh/visual.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//doc/lh-vim-lib.txt')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//lh-vim-lib-addon-info.txt')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//lh-vim-lib.README')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//macros/menu-map.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//mkVba/mk-lh-vim-lib.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//plugin/let.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//plugin/lhvl.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//plugin/ui-functions.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//plugin/words_tools.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/function.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/list.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/path.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/test-Fargs2String.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/test-askmenu.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/test-command.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/test-menu-map.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/test-toggle-menu.vim')|call delete('/home/lennycz/Dropbox/Config/dotfiles/vim/bundle/lh-vim-lib/.//tests/lh/topological-sort.vim')

+ 0
- 150
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/askvim.vim View File

@@ -1,150 +0,0 @@
1
-"=============================================================================
2
-" $Id: askvim.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/askvim.vim                                    {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	17th Apr 2007
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $ (17th Apr 2007)
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Defines functions that asks vim what it is relinquish to tell us
14
-" 	- menu
15
-" 
16
-"------------------------------------------------------------------------
17
-" Installation:	
18
-" 	Drop it into {rtp}/autoload/lh/
19
-" 	Vim 7+ required.
20
-" History:	
21
-" 	v2.0.0:
22
-" 	v3.0.0: GPLv3
23
-" TODO:		«missing features»
24
-" }}}1
25
-"=============================================================================
26
-
27
-
28
-"=============================================================================
29
-let s:cpo_save=&cpo
30
-set cpo&vim
31
-
32
-"------------------------------------------------------------------------
33
-" ## Functions {{{1
34
-" # Debug {{{2
35
-function! lh#askvim#verbose(level)
36
-  let s:verbose = a:level
37
-endfunction
38
-
39
-function! s:Verbose(expr)
40
-  if exists('s:verbose') && s:verbose
41
-    echomsg a:expr
42
-  endif
43
-endfunction
44
-
45
-function! lh#askvim#debug(expr)
46
-  return eval(a:expr)
47
-endfunction
48
-
49
-"------------------------------------------------------------------------
50
-" # Public {{{2
51
-" Function: lh#askvim#exe(command) {{{3
52
-function! lh#askvim#Exe(command)
53
-  echomsg 'lh#askvim#Exe() is deprecated, use lh#askvim#exe()'
54
-  return lh#askvim#exe(a:command)
55
-endfunction
56
-
57
-function! lh#askvim#exe(command)
58
-  let save_a = @a
59
-  try 
60
-    silent! redir @a
61
-    silent! exe a:command
62
-    redir END
63
-  finally
64
-    " Always restore everything
65
-    let res = @a
66
-    let @a = save_a
67
-    return res
68
-  endtry
69
-endfunction
70
-
71
-
72
-" Function: lh#askvim#menu(menuid) {{{3
73
-function! s:AskOneMenu(menuact, res)
74
-  let sKnown_menus = lh#askvim#exe(a:menuact)
75
-  let lKnown_menus = split(sKnown_menus, '\n')
76
-  " echo string(lKnown_menus)
77
-
78
-  " 1- search for the menuid
79
-  " todo: fix the next line to correctly interpret "stuff\.stuff" and
80
-  " "stuff\\.stuff".
81
-  let menuid_parts = split(a:menuact, '\.')
82
-
83
-  let simplifiedKnown_menus = deepcopy(lKnown_menus)
84
-  call map(simplifiedKnown_menus, 'substitute(v:val, "&", "", "g")')
85
-  " let idx = lh#list#match(simplifiedKnown_menus, '^\d\+\s\+'.menuid_parts[-1])
86
-  let idx = match(simplifiedKnown_menus, '^\d\+\s\+'.menuid_parts[-1])
87
-  if idx == -1
88
-    " echo "not found"
89
-    return
90
-  endif
91
-  " echo "l[".idx."]=".lKnown_menus[idx]
92
-
93
-  if empty(a:res)
94
-    let a:res.priority = matchstr(lKnown_menus[idx], '\d\+\ze\s\+.*')
95
-    let a:res.name     = matchstr(lKnown_menus[idx], '\d\+\s\+\zs.*')
96
-    let a:res.actions  = {}
97
-  " else
98
-  "   what if the priority isn't the same?
99
-  endif
100
-
101
-  " 2- search for the menu definition
102
-  let idx += 1
103
-  while idx != len(lKnown_menus)
104
-    echo "l[".idx."]=".lKnown_menus[idx]
105
-    " should not happen
106
-    if lKnown_menus[idx] =~ '^\d\+' | break | endif
107
-
108
-    " :h showing-menus
109
-    " -> The format of the result of the call to Exe() seems to be:
110
-    "    ^ssssMns-sACTION$
111
-    "    s == 1 whitespace
112
-    "    M == mode (inrvcs)
113
-    "    n == noremap(*)/script(&)
114
-    "    - == disable(-)/of not
115
-    let act = {}
116
-    let menu_def = matchlist(lKnown_menus[idx],
117
-	  \ '^\s*\([invocs]\)\([&* ]\) \([- ]\) \(.*\)$')
118
-    if len(menu_def) > 4
119
-      let act.mode        = menu_def[1]
120
-      let act.nore_script = menu_def[2]
121
-      let act.disabled    = menu_def[3]
122
-      let act.action      = menu_def[4]
123
-    else
124
-      echomsg string(menu_def)
125
-      echoerr "lh#askvim#menu(): Cannot decode ``".lKnown_menus[idx]."''"
126
-    endif
127
-    
128
-    let a:res.actions["mode_" . act.mode] = act
129
-
130
-    let idx += 1
131
-  endwhile
132
-
133
-  " n- Return the result
134
-  return a:res
135
-endfunction
136
-
137
-function! lh#askvim#menu(menuid, modes)
138
-  let res = {}
139
-  let i = 0
140
-  while i != strlen(a:modes)
141
-    call s:AskOneMenu(a:modes[i].'menu '.a:menuid, res)
142
-    let i += 1
143
-  endwhile
144
-  return res
145
-endfunction
146
-" Functions }}}1
147
-"------------------------------------------------------------------------
148
-let &cpo=s:cpo_save
149
-"=============================================================================
150
-" vim600: set fdm=marker:

+ 0
- 102
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/buffer.vim View File

@@ -1,102 +0,0 @@
1
-"=============================================================================
2
-" $Id: buffer.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/buffer.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" Licence:      GPLv3
7
-" Version:	3.0.0
8
-" Created:	23rd Jan 2007
9
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
10
-"------------------------------------------------------------------------
11
-" Description:	
12
-" 	Defines functions that help finding windows and handling buffers.
13
-" 
14
-"------------------------------------------------------------------------
15
-" Installation:	
16
-" 	Drop it into {rtp}/autoload/lh/
17
-" 	Vim 7+ required.
18
-" History:	
19
-"	v1.0.0 First Version
20
-" 	(*) Functions moved from searchInRuntimeTime  
21
-" 	v2.2.0
22
-" 	(*) new function: lh#buffer#list()
23
-"       v3.0.0 GPLv3
24
-" TODO:	
25
-" }}}1
26
-"=============================================================================
27
-
28
-
29
-"=============================================================================
30
-let s:cpo_save=&cpo
31
-set cpo&vim
32
-
33
-" ## Functions {{{1
34
-"------------------------------------------------------------------------
35
-" # Debug {{{2
36
-function! lh#buffer#verbose(level)
37
-  let s:verbose = a:level
38
-endfunction
39
-
40
-function! s:Verbose(expr)
41
-  if exists('s:verbose') && s:verbose
42
-    echomsg a:expr
43
-  endif
44
-endfunction
45
-
46
-function! lh#buffer#debug(expr)
47
-  return eval(a:expr)
48
-endfunction
49
-
50
-"------------------------------------------------------------------------
51
-" # Public {{{2
52
-
53
-" Function: lh#buffer#find({filename}) {{{3
54
-" If {filename} is opened in a window, jump to this window, otherwise return -1
55
-" Moved from searchInRuntimeTime.vim
56
-function! lh#buffer#find(filename)
57
-  let b = bufwinnr(a:filename)
58
-  if b == -1 | return b | endif
59
-  exe b.'wincmd w'
60
-  return b
61
-endfunction
62
-function! lh#buffer#Find(filename)
63
-  return lh#buffer#find(a:filename)
64
-endfunction
65
-
66
-" Function: lh#buffer#jump({filename},{cmd}) {{{3
67
-function! lh#buffer#jump(filename, cmd)
68
-  if lh#buffer#find(a:filename) != -1 | return | endif
69
-  exe a:cmd . ' ' . a:filename
70
-endfunction
71
-function! lh#buffer#Jump(filename, cmd)
72
-  return lh#buffer#jump(a:filename, a:cmd)
73
-endfunction
74
-
75
-" Function: lh#buffer#scratch({bname},{where}) {{{3
76
-function! lh#buffer#scratch(bname, where)
77
-  try
78
-    silent exe a:where.' sp '.a:bname
79
-  catch /.*/
80
-    throw "Can't open a buffer named '".a:bname."'!"
81
-  endtry
82
-  setlocal bt=nofile bh=wipe nobl noswf ro
83
-endfunction
84
-function! lh#buffer#Scratch(bname, where)
85
-  return lh#buffer#scratch(a:bname, a:where)
86
-endfunction
87
-
88
-" Function: lh#buffer#list() {{{3
89
-function! lh#buffer#list()
90
-  let all = range(0, bufnr('$'))
91
-  " let res = lh#list#transform_if(all, [], 'v:1_', 'buflisted')
92
-  let res = lh#list#copy_if(all, [], 'buflisted')
93
-  return res
94
-endfunction
95
-" Ex: Names of the buffers listed
96
-"  -> echo lh#list#transform(lh#buffer#list(), [], "bufname")
97
-" Ex: wipeout empty buffers listed
98
-"  -> echo 'bw'.join(lh#list#copy_if(range(0, bufnr('$')), [], 'buflisted(v:1_) && empty(bufname(v:1_))'), ' ')
99
-"=============================================================================
100
-let &cpo=s:cpo_save
101
-"=============================================================================
102
-" vim600: set fdm=marker:

+ 0
- 271
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/buffer/dialog.vim View File

@@ -1,271 +0,0 @@
1
-"=============================================================================
2
-" $Id: dialog.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/buffer/dialog.vim                            {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	21st Sep 2007
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:	«description»
13
-" 
14
-"------------------------------------------------------------------------
15
-" Installation:	
16
-" 	Drop it into {rtp}/autoload/lh/
17
-" 	Vim 7+ required.
18
-" History:	
19
-"	v1.0.0 First Version
20
-" 	(*) Functions imported from Mail_mutt_alias.vim
21
-"       v3.0.0  GPLv3
22
-" TODO:		
23
-" 	(*) --abort-- line
24
-" 	(*) custom messages
25
-" 	(*) do not mess with search history
26
-" 	(*) support any &magic
27
-" 	(*) syntax
28
-" 	(*) add number/letters
29
-" 	(*) tag with '[x] ' instead of '* '
30
-" }}}1
31
-"=============================================================================
32
-
33
-
34
-"=============================================================================
35
-let s:cpo_save=&cpo
36
-set cpo&vim
37
-
38
-
39
-
40
-"=============================================================================
41
-" ## Globals {{{1
42
-let s:LHdialog = {}
43
-
44
-"=============================================================================
45
-" ## Functions {{{1
46
-" # Debug {{{2
47
-function! lh#buffer#dialog#verbose(level)
48
-  let s:verbose = a:level
49
-endfunction
50
-
51
-function! s:Verbose(expr)
52
-  if exists('s:verbose') && s:verbose
53
-    echomsg a:expr
54
-  endif
55
-endfunction
56
-
57
-function! lh#buffer#dialog#debug(expr)
58
-  return eval(a:expr)
59
-endfunction
60
-
61
-
62
-"=============================================================================
63
-" # Dialog functions {{{2
64
-"------------------------------------------------------------------------
65
-function! s:Mappings(abuffer)
66
-  " map <enter> to edit a file, also dbl-click
67
-  exe "nnoremap <silent> <buffer> <esc>         :silent call ".a:abuffer.action."(-1, ".a:abuffer.id.")<cr>"
68
-  exe "nnoremap <silent> <buffer> q             :call lh#buffer#dialog#select(-1, ".a:abuffer.id.")<cr>"
69
-  exe "nnoremap <silent> <buffer> <cr>          :call lh#buffer#dialog#select(line('.'), ".a:abuffer.id.")<cr>"
70
-  " nnoremap <silent> <buffer> <2-LeftMouse> :silent call <sid>GrepEditFileLine(line("."))<cr>
71
-  " nnoremap <silent> <buffer> Q	  :call <sid>Reformat()<cr>
72
-  " nnoremap <silent> <buffer> <Left>	  :set tabstop-=1<cr>
73
-  " nnoremap <silent> <buffer> <Right>	  :set tabstop+=1<cr>
74
-  if a:abuffer.support_tagging
75
-    nnoremap <silent> <buffer> t	  :silent call <sid>ToggleTag(line("."))<cr>
76
-    nnoremap <silent> <buffer> <space>	  :silent call <sid>ToggleTag(line("."))<cr>
77
-  endif
78
-  nnoremap <silent> <buffer> <tab>	  :silent call <sid>NextChoice('')<cr>
79
-  nnoremap <silent> <buffer> <S-tab>	  :silent call <sid>NextChoice('b')<cr>
80
-  exe "nnoremap <silent> <buffer> h	  :silent call <sid>ToggleHelp(".a:abuffer.id.")<cr>"
81
-endfunction
82
-
83
-"----------------------------------------
84
-" Tag / untag the current choice {{{
85
-function! s:ToggleTag(lineNum)
86
-   if a:lineNum > s:Help_NbL()
87
-      " If tagged
88
-      if (getline(a:lineNum)[0] == '*')
89
-	let b:NbTags = b:NbTags - 1
90
-	silent exe a:lineNum.'s/^\* /  /e'
91
-      else
92
-	let b:NbTags = b:NbTags + 1
93
-	silent exe a:lineNum.'s/^  /* /e'
94
-      endif
95
-      " Move after the tag ; there is something with the two previous :s. They
96
-      " don't leave the cursor at the same position.
97
-      silent! normal! 3|
98
-      call s:NextChoice('') " move to the next choice
99
-    endif
100
-endfunction
101
-" }}}
102
-
103
-function! s:Help_NbL()
104
-  " return 1 + nb lines of BuildHelp
105
-  return 2 + len(b:dialog['help_'.b:dialog.help_type])
106
-endfunction
107
-"----------------------------------------
108
-" Go to the Next (/previous) possible choice. {{{
109
-function! s:NextChoice(direction)
110
-  " echomsg "next!"
111
-  call search('^[ *]\s*\zs\S\+', a:direction)
112
-endfunction
113
-" }}}
114
-
115
-"------------------------------------------------------------------------
116
-
117
-function! s:RedisplayHelp(dialog)
118
-  silent! 2,$g/^@/d_
119
-  normal! gg
120
-  for help in a:dialog['help_'.a:dialog.help_type]
121
-    silent put=help
122
-  endfor
123
-endfunction
124
-
125
-function! lh#buffer#dialog#update(dialog)
126
-  set noro
127
-  exe (s:Help_NbL()+1).',$d_'
128
-  for choice in a:dialog.choices
129
-    silent $put='  '.choice
130
-  endfor
131
-  set ro
132
-endfunction
133
-
134
-function! s:Display(dialog, atitle)
135
-  set noro
136
-  0 put = a:atitle
137
-  call s:RedisplayHelp(a:dialog)
138
-  for choice in a:dialog.choices
139
-    silent $put='  '.choice
140
-  endfor
141
-  set ro
142
-  exe s:Help_NbL()+1
143
-endfunction
144
-
145
-function! s:ToggleHelp(bufferId)
146
-  call lh#buffer#find(a:bufferId)
147
-  call b:dialog.toggle_help()
148
-endfunction
149
-
150
-function! lh#buffer#dialog#toggle_help() dict
151
-  let self.help_type 
152
-	\ = (self.help_type == 'short')
153
-	\ ? 'long'
154
-	\ : 'short'
155
-  call s:RedisplayHelp(self)
156
-endfunction
157
-
158
-function! lh#buffer#dialog#new(bname, title, where, support_tagging, action, choices)
159
-  " The ID will be the buffer id
160
-  let res = {}
161
-  let where_it_started = getpos('.')
162
-  let where_it_started[0] = bufnr('%')
163
-  let res.where_it_started = where_it_started
164
-
165
-  try
166
-    call lh#buffer#scratch(a:bname, a:where)
167
-  catch /.*/
168
-    echoerr v:exception
169
-    return res
170
-  endtry
171
-  let res.id              = bufnr('%')
172
-  let b:NbTags            = 0
173
-  let b:dialog            = res
174
-  let s:LHdialog[res.id]  = res
175
-  let res.help_long       = []
176
-  let res.help_short      = []
177
-  let res.help_type       = 'short'
178
-  let res.support_tagging = a:support_tagging
179
-  let res.action	  = a:action
180
-  let res.choices	  = a:choices
181
-
182
-  " Long help
183
-  call lh#buffer#dialog#add_help(res, '@| <cr>, <double-click>    : select this', 'long')
184
-  call lh#buffer#dialog#add_help(res, '@| <esc>, q                : Abort', 'long')
185
-  if a:support_tagging
186
-    call lh#buffer#dialog#add_help(res, '@| <t>, <space>            : Tag/Untag the current item', 'long')
187
-  endif
188
-  call lh#buffer#dialog#add_help(res, '@| <up>/<down>, <tab>, +/- : Move between entries', 'long')
189
-  call lh#buffer#dialog#add_help(res, '@|', 'long')
190
-  " call lh#buffer#dialog#add_help(res, '@| h                       : Toggle help', 'long')
191
-  call lh#buffer#dialog#add_help(res, '@+'.repeat('-', winwidth(bufwinnr(res.id))-3), 'long')
192
-  " Short Help
193
-  " call lh#buffer#dialog#add_help(res, '@| h                       : Toggle help', 'short')
194
-  call lh#buffer#dialog#add_help(res, '@+'.repeat('-', winwidth(bufwinnr(res.id))-3), 'short')
195
-
196
-  let res.toggle_help = function("lh#buffer#dialog#toggle_help")
197
-  let title = '@  ' . a:title
198
-  let helpstr = '| Toggle (h)elp'
199
-  let title = title 
200
-	\ . repeat(' ', winwidth(bufwinnr(res.id))-lh#encoding#strlen(title)-lh#encoding#strlen(helpstr)-1)
201
-	\ . helpstr
202
-  call s:Display(res, title)
203
- 
204
-  call s:Mappings(res)
205
-  return res
206
-endfunction
207
-
208
-function! lh#buffer#dialog#add_help(abuffer, text, help_type)
209
-  call add(a:abuffer['help_'.a:help_type],a:text)
210
-endfunction
211
-
212
-"=============================================================================
213
-function! lh#buffer#dialog#quit()
214
-  let bufferId = b:dialog.where_it_started[0]
215
-  echohl WarningMsg
216
-  echo "Abort"
217
-  echohl None
218
-  quit
219
-  call lh#buffer#find(bufferId)
220
-endfunction
221
-
222
-" Function: lh#buffer#dialog#select(line, bufferId [,overriden-action])
223
-function! lh#buffer#dialog#select(line, bufferId, ...)
224
-  if a:line == -1
225
-    call lh#buffer#dialog#quit()
226
-    return
227
-  " elseif a:line <= s:Help_NbL() + 1
228
-  elseif a:line <= s:Help_NbL() 
229
-    echoerr "Unselectable item"
230
-    return 
231
-  else
232
-    let dialog = s:LHdialog[a:bufferId]
233
-    let results = { 'dialog' : dialog, 'selection' : []  }
234
-
235
-    if b:NbTags == 0
236
-      " -1 because first index is 0
237
-      " let results = [ dialog.choices[a:line - s:Help_NbL() - 1] ]
238
-      let results.selection = [ a:line - s:Help_NbL() - 1 ]
239
-    else
240
-      silent g/^* /call add(results.selection, line('.')-s:Help_NbL()-1)
241
-    endif
242
-  endif
243
-
244
-  if a:0 > 0 " action overriden
245
-    exe 'call '.dialog.action.'(results, a:000)'
246
-  else
247
-    exe 'call '.dialog.action.'(results)'
248
-  endif
249
-endfunction
250
-function! lh#buffer#dialog#Select(line, bufferId, ...)
251
-  echomsg "lh#buffer#dialog#Select() is deprecated, use lh#buffer#dialog#select() instead"
252
-  if a:0 > 0 " action overriden
253
-    exe 'call lh#buffer#dialog#select(a:line,  a:bufferId, a:1)'
254
-  else
255
-    exe 'call lh#buffer#dialog#select(a:line,  a:bufferId)'
256
-  endif
257
-endfunction
258
-
259
-function! Action(results)
260
-  let dialog = a:results.dialog
261
-  let choices = dialog.choices
262
-  for r in a:results.selection
263
-    echomsg '-> '.choices[r]
264
-  endfor
265
-endfunction
266
-
267
-
268
-"=============================================================================
269
-let &cpo=s:cpo_save
270
-"=============================================================================
271
-" vim600: set fdm=marker:

+ 0
- 226
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/command.vim View File

@@ -1,226 +0,0 @@
1
-"=============================================================================
2
-" $Id: command.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/command.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	08th Jan 2007
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $ (08th Jan 2007)
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Helpers to define commands that:
14
-" 	- support subcommands
15
-" 	- support autocompletion
16
-" 
17
-"------------------------------------------------------------------------
18
-" Installation:	
19
-" 	Drop it into {rtp}/autoload/lh/
20
-" 	Vim 7+ required.
21
-" History:	
22
-"       v3.0.0: GPLv3
23
-" 	v2.0.0: Code moved from other plugins
24
-" TODO:		«missing features»
25
-" }}}1
26
-"=============================================================================
27
-
28
-
29
-"=============================================================================
30
-let s:cpo_save=&cpo
31
-set cpo&vim
32
-
33
-" ## Debug {{{1
34
-function! lh#command#verbose(level)
35
-  let s:verbose = a:level
36
-endfunction
37
-
38
-function! s:Verbose(expr)
39
-  if exists('s:verbose') && s:verbose
40
-    echomsg a:expr
41
-  endif
42
-endfunction
43
-
44
-function! lh#command#debug(expr)
45
-  return eval(a:expr)
46
-endfunction
47
-
48
-"------------------------------------------------------------------------
49
-" ## Functions {{{1
50
-
51
-" Tool functions {{{2
52
-" Function: lh#command#Fargs2String(aList) {{{3
53
-" @param[in,out] aList list of params from <f-args>
54
-" @see tests/lh/test-Fargs2String.vim
55
-function! lh#command#Fargs2String(aList)
56
-  if empty(a:aList) | return '' | endif
57
-
58
-  let quote_char = a:aList[0][0] 
59
-  let res = a:aList[0]
60
-  call remove(a:aList, 0)
61
-  if quote_char !~ '["'."']"
62
-    return res
63
-  endif
64
-  " else
65
-  let end_string = '[^\\]\%(\\\\\)*'.quote_char.'$'
66
-  while !empty(a:aList) && res !~ end_string 
67
-    let res .= ' ' . a:aList[0]
68
-    call remove(a:aList, 0)
69
-  endwhile
70
-  return res
71
-endfunction
72
-
73
-"------------------------------------------------------------------------
74
-" ## Experimental Functions {{{1
75
-
76
-" Internal functions        {{{2
77
-" Function: s:SaveData({Data})                             {{{3
78
-" @param Data Command definition
79
-" Saves {Data} as s:Data{s:data_id++}. The definition will be used by
80
-" automatically generated commands.
81
-" @return s:data_id
82
-let s:data_id = 0
83
-function! s:SaveData(Data)
84
-  if has_key(a:Data, "command_id")
85
-    " Avoid data duplication
86
-    return a:Data.command_id
87
-  else
88
-    let s:Data{s:data_id} = a:Data
89
-    let id = s:data_id
90
-    let s:data_id += 1
91
-    let a:Data.command_id = id
92
-    return id
93
-  endif
94
-endfunction
95
-
96
-" BTWComplete(ArgLead, CmdLine, CursorPos):      Auto-complete {{{3
97
-function! lh#command#complete(ArgLead, CmdLine, CursorPos)
98
-  let tmp = substitute(a:CmdLine, '\s*\S*', 'Z', 'g')
99
-  let pos = strlen(tmp)
100
-  if 0
101
-    call confirm( "AL = ". a:ArgLead."\nCL = ". a:CmdLine."\nCP = ".a:CursorPos
102
-	  \ . "\ntmp = ".tmp."\npos = ".pos
103
-	  \, '&Ok', 1)
104
-  endif
105
-
106
-  if     2 == pos
107
-    " First argument: a command
108
-    return s:commands
109
-  elseif 3 == pos
110
-    " Second argument: first arg of the command
111
-    if     -1 != match(a:CmdLine, '^BTW\s\+echo')
112
-      return s:functions . "\n" . s:variables
113
-    elseif -1 != match(a:CmdLine, '^BTW\s\+\%(help\|?\)')
114
-    elseif -1 != match(a:CmdLine, '^BTW\s\+\%(set\|add\)\%(local\)\=')
115
-      " Adds a filter
116
-      " let files =         globpath(&rtp, 'compiler/BT-*')
117
-      " let files = files . globpath(&rtp, 'compiler/BT_*')
118
-      " let files = files . globpath(&rtp, 'compiler/BT/*')
119
-      let files = s:FindFilter('*')
120
-      let files = substitute(files,
121
-	    \ '\(^\|\n\).\{-}compiler[\\/]BTW[-_\\/]\(.\{-}\)\.vim\>\ze\%(\n\|$\)',
122
-	    \ '\1\2', 'g')
123
-      return files
124
-    elseif -1 != match(a:CmdLine, '^BTW\s\+remove\%(local\)\=')
125
-      " Removes a filter
126
-      return substitute(s:FiltersList(), ',', '\n', 'g')
127
-    endif
128
-  endif
129
-  " finally: unknown
130
-  echoerr 'BTW: unespected parameter ``'. a:ArgLead ."''"
131
-  return ''
132
-endfunction
133
-
134
-function! s:BTW(command, ...)
135
-  " todo: check a:0 > 1
136
-  if     'set'      == a:command | let g:BTW_build_tool = a:1
137
-    if exists('b:BTW_build_tool')
138
-      let b:BTW_build_tool = a:1
139
-    endif
140
-  elseif 'setlocal'     == a:command | let b:BTW_build_tool = a:1
141
-  elseif 'add'          == a:command | call s:AddFilter('g', a:1)
142
-  elseif 'addlocal'     == a:command | call s:AddFilter('b', a:1)
143
-    " if exists('b:BTW_filters_list') " ?????
144
-    " call s:AddFilter('b', a:1)
145
-    " endif
146
-  elseif 'remove'       == a:command | call s:RemoveFilter('g', a:1)
147
-  elseif 'removelocal'  == a:command | call s:RemoveFilter('b', a:1)
148
-  elseif 'rebuild'      == a:command " wait for s:ReconstructToolsChain()
149
-  elseif 'echo'         == a:command | exe "echo s:".a:1
150
-    " echo s:{a:f1} ## don't support «echo s:f('foo')»
151
-  elseif 'reloadPlugin' == a:command
152
-    let g:force_reload_BuildToolsWrapper = 1
153
-    let g:BTW_BTW_in_use = 1
154
-    exe 'so '.s:sfile
155
-    unlet g:force_reload_BuildToolsWrapper
156
-    unlet g:BTW_BTW_in_use
157
-    return
158
-  elseif a:command =~ '\%(help\|?\)'
159
-    call s:Usage()
160
-    return
161
-  endif
162
-  call s:ReconstructToolsChain()
163
-endfunction
164
-
165
-" ##############################################################
166
-" Public functions          {{{2
167
-
168
-function! s:FindSubcommand(definition, subcommand)
169
-  for arg in a:definition.arguments
170
-    if arg.name == a:subcommand
171
-      return arg
172
-    endif
173
-  endfor
174
-  throw "NF"
175
-endfunction
176
-
177
-function! s:execute_function(definition, params)
178
-    if len(a:params) < 1
179
-      throw "(lh#command) Not enough arguments"
180
-    endif
181
-  let l:Fn = a:definition.action
182
-  echo "calling ".string(l:Fn)
183
-  echo "with ".string(a:params)
184
-  " call remove(a:params, 0)
185
-  call l:Fn(a:params)
186
-endfunction
187
-
188
-function! s:execute_sub_commands(definition, params)
189
-  try
190
-    if len(a:params) < 1
191
-      throw "(lh#command) Not enough arguments"
192
-    endif
193
-    let subcommand = s:FindSubcommand(a:definition, a:params[0])
194
-    call remove(a:params, 0)
195
-    call s:int_execute(subcommand, a:params)
196
-  catch /NF.*/
197
-    throw "(lh#command) Unexpected subcommand `".a:params[0]."'."
198
-  endtry
199
-endfunction
200
-
201
-function! s:int_execute(definition, params)
202
-  echo "params=".string(a:params)
203
-  call s:execute_{a:definition.arg_type}(a:definition, a:params)
204
-endfunction
205
-
206
-function! s:execute(definition, ...)
207
-  try
208
-    let params = copy(a:000)
209
-    call s:int_execute(a:definition, params)
210
-  catch /(lh#command).*/
211
-    echoerr v:exception . " in `".a:definition.name.' '.join(a:000, ' ')."'"
212
-  endtry
213
-endfunction
214
-
215
-function! lh#command#new(definition)
216
-  let cmd_name = a:definition.name
217
-  " Save the definition as an internal script variable
218
-  let id = s:SaveData(a:definition)
219
-  exe "command! -nargs=* ".cmd_name." :call s:execute(s:Data".id.", <f-args>)"
220
-endfunction
221
-
222
-" Functions }}}1
223
-"------------------------------------------------------------------------
224
-let &cpo=s:cpo_save
225
-"=============================================================================
226
-" vim600: set fdm=marker:

+ 0
- 97
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/common.vim View File

@@ -1,97 +0,0 @@
1
-"=============================================================================
2
-" $Id: common.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/common.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	07th Oct 2006
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $ (08th Feb 2008)
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Some common functions for:
14
-" 	- displaying error messages
15
-" 	- checking dependencies
16
-" 
17
-"------------------------------------------------------------------------
18
-" Installation:	
19
-" 	Drop it into {rtp}/autoload/lh/
20
-" 	Vim 7+ required.
21
-" History:	
22
-"       v3.0.0
23
-"       - GPLv3
24
-" 	v2.1.1
25
-" 	- New function: lh#common#echomsg_multilines()
26
-" 	- lh#common#warning_msg() supports multilines messages
27
-"
28
-" 	v2.0.0:
29
-" 	- Code moved from other plugins
30
-" }}}1
31
-"=============================================================================
32
-
33
-
34
-"=============================================================================
35
-let s:cpo_save=&cpo
36
-set cpo&vim
37
-"------------------------------------------------------------------------
38
-" Functions {{{1
39
-
40
-" Function: lh#common#echomsg_multilines {{{2
41
-function! lh#common#echomsg_multilines(text)
42
-  let lines = split(a:text, "[\n\r]")
43
-  for line in lines
44
-    echomsg line
45
-  endfor
46
-endfunction
47
-function! lh#common#echomsgMultilines(text)
48
-  return lh#common#echomsg_multilines(a:text)
49
-endfunction
50
-
51
-" Function: lh#common#error_msg {{{2
52
-function! lh#common#error_msg(text)
53
-  if has('gui_running')
54
-    call confirm(a:text, '&Ok', '1', 'Error')
55
-  else
56
-    " echohl ErrorMsg
57
-    echoerr a:text
58
-    " echohl None
59
-  endif
60
-endfunction 
61
-function! lh#common#ErrorMsg(text)
62
-  return lh#common#error_msg(a:text)
63
-endfunction
64
-
65
-" Function: lh#common#warning_msg {{{2
66
-function! lh#common#warning_msg(text)
67
-  echohl WarningMsg
68
-  " echomsg a:text
69
-  call lh#common#echomsg_multilines(a:text)
70
-  echohl None
71
-endfunction 
72
-function! lh#common#WarningMsg(text)
73
-  return lh#common#warning_msg(a:text)
74
-endfunction
75
-
76
-" Dependencies {{{2
77
-function! lh#common#check_deps(Symbol, File, path, plugin) " {{{3
78
-  if !exists(a:Symbol)
79
-    exe "runtime ".a:path.a:File
80
-    if !exists(a:Symbol)
81
-      call lh#common#error_msg( a:plugin.': Requires <'.a:File.'>')
82
-      return 0
83
-    endif
84
-  endif
85
-  return 1
86
-endfunction
87
-
88
-function! lh#common#CheckDeps(Symbol, File, path, plugin) " {{{3
89
-  echomsg "lh#common#CheckDeps() is deprecated, use lh#common#check_deps() instead."
90
-  return lh#common#check_deps(a:Symbol, a:File, a:path, a:plugin)
91
-endfunction
92
-
93
-" Functions }}}1
94
-"------------------------------------------------------------------------
95
-let &cpo=s:cpo_save
96
-"=============================================================================
97
-" vim600: set fdm=marker:

+ 0
- 78
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/encoding.vim View File

@@ -1,78 +0,0 @@
1
-"=============================================================================
2
-" $Id: encoding.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/encoding.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	21st Feb 2008
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Defines functions that help managing various encodings
14
-" 
15
-"------------------------------------------------------------------------
16
-" Installation:	
17
-" 	Drop it into {rtp}/autoload/lh/
18
-" 	Vim 7+ required.
19
-" History:	
20
-"       v3.0.0:
21
-"       (*) GPLv3
22
-" 	v2.2.2:
23
-" 	(*) new mb_strings functions: strlen, strpart, at
24
-" 	v2.0.7:
25
-" 	(*) lh#encoding#Iconv() copied from map-tools
26
-" TODO:		«missing features»
27
-" }}}1
28
-"=============================================================================
29
-
30
-let s:cpo_save=&cpo
31
-set cpo&vim
32
-"------------------------------------------------------------------------
33
-" Exported functions {{{2
34
-" Function: lh#encoding#iconv(expr, from, to)  " {{{3
35
-" Unlike |iconv()|, this wrapper returns {expr} when we know no convertion can
36
-" be acheived.
37
-function! lh#encoding#iconv(expr, from, to)
38
-  " call Dfunc("s:ICONV(".a:expr.','.a:from.','.a:to.')')
39
-  if has('multi_byte') && 
40
-	\ ( has('iconv') || has('iconv/dyn') ||
41
-	\ ((a:from=~'latin1\|utf-8') && (a:to=~'latin1\|utf-8')))
42
-    " call confirm('encoding: '.&enc."\nto:".a:to, "&Ok", 1)
43
-    " call Dret("s:ICONV convert=".iconv(a:expr, a:from, a:to))
44
-    return iconv(a:expr,a:from,a:to)
45
-  else
46
-    " Cannot convert
47
-    " call Dret("s:ICONV  no convert=".a:expr)
48
-    return a:expr
49
-  endif
50
-endfunction
51
-
52
-
53
-" Function: lh#encoding#at(mb_string, i) " {{{3
54
-" @return i-th character in a mb_string
55
-" @parem mb_string multi-bytes string
56
-" @param i 0-indexed position
57
-function! lh#encoding#at(mb_string, i)
58
-  return matchstr(a:mb_string, '.', 0, a:i+1)
59
-endfunction
60
-
61
-" Function: lh#encoding#strpart(mb_string, pos, length) " {{{3
62
-" @return {length} extracted characters from {position} in multi-bytes string.
63
-" @parem mb_string multi-bytes string
64
-" @param p 0-indexed position
65
-" @param l length of the string to extract
66
-function! lh#encoding#strpart(mb_string, p, l)
67
-  return matchstr(a:mb_string, '.\{'.a:l.'}', 0, a:p+1)
68
-endfunction
69
-
70
-" Function: lh#encoding#strlen(mb_string) " {{{3
71
-" @return the length of the multi-bytes string.
72
-function! lh#encoding#strlen(mb_string)
73
-  return strlen(substitute(a:mb_string, '.', 'a', 'g'))
74
-endfunction
75
-"------------------------------------------------------------------------
76
-let &cpo=s:cpo_save
77
-"=============================================================================
78
-" vim600: set fdm=marker:

+ 0
- 78
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/env.vim View File

@@ -1,78 +0,0 @@
1
-"=============================================================================
2
-" $Id: env.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:         autoload/lh/env.vim                               {{{1
4
-" Author:       Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:      3.0.0
9
-" Created:      19th Jul 2010
10
-" Last Update:  $Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:
13
-"       Functions related to environment (variables)
14
-" 
15
-"------------------------------------------------------------------------
16
-" Installation:
17
-"       Drop this file into {rtp}/autoload/lh
18
-"       Requires Vim7+
19
-" History:      
20
-" 	v2.2.1: First Version
21
-"       v3.0.0: GPLv3
22
-" TODO:         «missing features»
23
-" }}}1
24
-"=============================================================================
25
-
26
-let s:cpo_save=&cpo
27
-set cpo&vim
28
-"------------------------------------------------------------------------
29
-" ## Misc Functions     {{{1
30
-" # Version {{{2
31
-let s:k_version = 300
32
-function! lh#env#version()
33
-  return s:k_version
34
-endfunction
35
-
36
-" # Debug   {{{2
37
-let s:verbose = 0
38
-function! lh#env#verbose(...)
39
-  if a:0 > 0 | let s:verbose = a:1 | endif
40
-  return s:verbose
41
-endfunction
42
-
43
-function! s:Verbose(expr)
44
-  if s:verbose
45
-    echomsg a:expr
46
-  endif
47
-endfunction
48
-
49
-function! lh#env#debug(expr)
50
-  return eval(a:expr)
51
-endfunction
52
-
53
-
54
-"------------------------------------------------------------------------
55
-" ## Exported functions {{{1
56
-function! lh#env#expand_all(string)
57
-  let res = ''
58
-  let tail = a:string
59
-  while !empty(tail)
60
-    let [ all, head, var, tail; dummy ] = matchlist(tail, '\(.\{-}\)\%(${\(.\{-}\)}\)\=\(.*\)')
61
-    if empty(var)
62
-      let res .= tail
63
-      break
64
-    else
65
-      let res .= head
66
-      let val = eval('$'.var)
67
-      let res .= val
68
-    endif
69
-  endwhile
70
-  return res
71
-endfunction
72
-"------------------------------------------------------------------------
73
-" ## Internal functions {{{1
74
-
75
-"------------------------------------------------------------------------
76
-let &cpo=s:cpo_save
77
-"=============================================================================
78
-" vim600: set fdm=marker:

+ 0
- 70
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/event.vim View File

@@ -1,70 +0,0 @@
1
-"=============================================================================
2
-" $Id: event.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/event.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	15th Feb 2008
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Function to help manage vim |autocommand-events|
14
-" 
15
-"------------------------------------------------------------------------
16
-" Installation:
17
-" 	Drop it into {rtp}/autoload/lh/
18
-" 	Vim 7+ required.
19
-" History:
20
-" 	v2.0.6: Creation
21
-"       v3.0.0: GPLv3
22
-" TODO:		
23
-" }}}1
24
-"=============================================================================
25
-
26
-let s:cpo_save=&cpo
27
-set cpo&vim
28
-
29
-"------------------------------------------------------------------------
30
-" ## Functions {{{1
31
-" # Debug {{{2
32
-function! lh#event#verbose(level)
33
-  let s:verbose = a:level
34
-endfunction
35
-
36
-function! s:Verbose(expr)
37
-  if exists('s:verbose') && s:verbose
38
-    echomsg a:expr
39
-  endif
40
-endfunction
41
-
42
-function! lh#event#debug(expr)
43
-  return eval(a:expr)
44
-endfunction
45
-
46
-"------------------------------------------------------------------------
47
-" # Event Registration {{{2
48
-function! s:RegisteredOnce(cmd, group)
49
-  " We can't delete the current augroup autocommand => increment a counter
50
-  if !exists('s:'.a:group) || s:{a:group} == 0 
51
-    let s:{a:group} = 1
52
-    exe a:cmd
53
-  endif
54
-endfunction
55
-
56
-function! lh#event#register_for_one_execution_at(event, cmd, group)
57
-  let group = a:group.'_once'
58
-  let s:{group} = 0
59
-  exe 'augroup '.group
60
-  au!
61
-  exe 'au '.a:event.' '.expand('%:p').' call s:RegisteredOnce('.string(a:cmd).','.string(group).')'
62
-  augroup END
63
-endfunction
64
-function! lh#event#RegisterForOneExecutionAt(event, cmd, group)
65
-  return lh#event#register_for_one_execution_at(a:event, a:cmd, a:group)
66
-endfunction
67
-"------------------------------------------------------------------------
68
-let &cpo=s:cpo_save
69
-"=============================================================================
70
-" vim600: set fdm=marker:

+ 0
- 120
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/float.vim View File

@@ -1,120 +0,0 @@
1
-"=============================================================================
2
-" $Id: float.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:         autoload/lh/float.vim                             {{{1
4
-" Author:       Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:      3.0.0
9
-" Created:      16th Nov 2010
10
-" Last Update:  $Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:
13
-"       Defines functions related to |expr-float| numbers
14
-" 
15
-"------------------------------------------------------------------------
16
-" Installation:
17
-"       Drop this file into {rtp}/autoload/lh
18
-"       Requires Vim7+
19
-" History:     
20
-"       v2.0.0: first version
21
-"       v3.0.0: GPLv3
22
-" TODO:
23
-" }}}1
24
-"=============================================================================
25
-
26
-let s:cpo_save=&cpo
27
-set cpo&vim
28
-"------------------------------------------------------------------------
29
-" ## Misc Functions     {{{1
30
-" # Version {{{2
31
-let s:k_version = 300
32
-function! lh#float#version()
33
-  return s:k_version
34
-endfunction
35
-
36
-" # Debug   {{{2
37
-let s:verbose = 0
38
-function! lh#float#verbose(...)
39
-  if a:0 > 0 | let s:verbose = a:1 | endif
40
-  return s:verbose
41
-endfunction
42
-
43
-function! s:Verbose(expr)
44
-  if s:verbose
45
-    echomsg a:expr
46
-  endif
47
-endfunction
48
-
49
-function! lh#float#debug(expr)
50
-  return eval(a:expr)
51
-endfunction
52
-
53
-
54
-"------------------------------------------------------------------------
55
-" ## Exported functions {{{1
56
-
57
-" # lh#float#min(list) {{{2
58
-function! lh#float#min(list)
59
-  let am = lh#float#arg_min(a:list)
60
-  return a:list[am]
61
-endfunction
62
-
63
-function! lh#float#arg_min(list)
64
-  if empty(a:list) | return -1 | endif
65
-  let m = type(a:list[0]) == type(0.0) ? a:list[0] : str2float(a:list[0])
66
-  let p = 0
67
-  let i = 1
68
-  while i != len(a:list)
69
-    let e = a:list[i]
70
-    if type(e) != type(0.0) |
71
-      let v = str2float(e)
72
-    else
73
-      let v = e
74
-    endif
75
-    if v < m
76
-      let m = v
77
-      let p = i
78
-    endif
79
-    let i += 1
80
-  endwhile
81
-  return p
82
-endfunction
83
-
84
-
85
-" # lh#float#max(list) {{{2
86
-function! lh#float#max(list)
87
-  let am = lh#float#arg_max(a:list)
88
-  return a:list[am]
89
-endfunction
90
-
91
-function! lh#float#arg_max(list)
92
-  if empty(a:list) | return -1 | endif
93
-  let m = type(a:list[0]) == type(0.0) ? a:list[0] : str2float(a:list[0])
94
-  let p = 0
95
-  let i = 1
96
-  while i != len(a:list)
97
-    let e = a:list[i]
98
-    if type(e) != type(0.0) |
99
-      let v = str2float(e)
100
-    else
101
-      let v = e
102
-    endif
103
-    if v > m
104
-      let m = v
105
-      let p = i
106
-    endif
107
-    let i += 1
108
-  endwhile
109
-  return p
110
-endfunction
111
-
112
-
113
-
114
-"------------------------------------------------------------------------
115
-" ## Internal functions {{{1
116
-
117
-"------------------------------------------------------------------------
118
-let &cpo=s:cpo_save
119
-"=============================================================================
120
-" vim600: set fdm=marker:

+ 0
- 217
dotfiles/vim/bundle/lh-vim-lib/autoload/lh/function.vim View File

@@ -1,217 +0,0 @@
1
-"=============================================================================
2
-" $Id: function.vim 520 2012-03-19 18:09:15Z luc.hermitte $
3
-" File:		autoload/lh/function.vim                               {{{1
4
-" Author:	Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
5
-"		<URL:http://code.google.com/p/lh-vim/>
6
-" License:      GPLv3 with exceptions
7
-"               <URL:http://code.google.com/p/lh-vim/wiki/License>
8
-" Version:	3.0.0
9
-" Created:	03rd Nov 2008
10
-" Last Update:	$Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
11
-"------------------------------------------------------------------------
12
-" Description:	
13
-" 	Implements:
14
-" 	- lh#function#bind()
15
-" 	- lh#function#execute()
16
-" 	- lh#function#prepare()
17
-" 	- a binded function type
18
-" 
19
-"------------------------------------------------------------------------
20
-" Installation:	
21
-" 	Drop it into {rtp}/autoload/lh/
22
-" 	Vim 7+ required.
23
-" History:	
24
-"       v2.2.0: first implementation
25
-"       v3.0.0: GPLv3
26
-" TODO:		«missing features»
27
-" }}}1
28
-"=============================================================================
29
-
30
-let s:cpo_save=&cpo
31
-set cpo&vim
32
-"------------------------------------------------------------------------
33
-
34
-" ## Functions {{{1
35
-" # Debug {{{2
36
-function! lh#function#verbose(level)
37
-  let s:verbose = a:level
38
-endfunction
39
-
40
-function! s:Verbose(expr)
41
-  if exists('s:verbose') && s:verbose
42
-    echomsg a:expr
43
-  endif
44
-endfunction
45
-
46
-function! lh#function#debug(expr)
47
-  return eval(a:expr)
48
-endfunction
49
-
50
-" # Function: s:Join(arguments...) {{{2
51
-function! s:Join(args)
52
-  let res = ''