Permalink
Browse files

Initial upload

  • Loading branch information...
0 parents commit f25eb9f04b5c51efc24c720fda9ce2d6682a0809 @caio committed Aug 23, 2008
Showing with 25,532 additions and 0 deletions.
  1. +126 −0 .Xdefaults
  2. +121 −0 .Xmodmap
  3. +701 −0 .awesomerc
  4. +132 −0 .bashrc
  5. 0 .fluxbox/apps
  6. +2 −0 .fluxbox/fbrun_history
  7. +92 −0 .fluxbox/init
  8. +13 −0 .fluxbox/keys
  9. +47 −0 .fluxbox/menu
  10. +4 −0 .fluxbox/overlay
  11. 0 .fluxbox/slitlist
  12. +50 −0 .fluxbox/startup
  13. +6 −0 .gitconfig
  14. +6 −0 .mplayer/config
  15. +365 −0 .nedit
  16. +36 −0 .pythonrc.py
  17. +112 −0 .source/motorolarc
  18. +24 −0 .source/unicamprc
  19. +9 −0 .vim/after/ftplugin/actionscript_snippets.vim
  20. +17 −0 .vim/after/ftplugin/aspvbs_snippets.vim
  21. +2 −0 .vim/after/ftplugin/c.vim
  22. +58 −0 .vim/after/ftplugin/c_snippets.vim
  23. +2 −0 .vim/after/ftplugin/cpp.vim
  24. +30 −0 .vim/after/ftplugin/css_snippets.vim
  25. +61 −0 .vim/after/ftplugin/django_model_snippets.vim
  26. +32 −0 .vim/after/ftplugin/django_template_snippets.vim
  27. +14 −0 .vim/after/ftplugin/f-script_snippets.vim
  28. +9 −0 .vim/after/ftplugin/haskell_snippets.vim
  29. +57 −0 .vim/after/ftplugin/html_snippets.vim
  30. +52 −0 .vim/after/ftplugin/java_snippets.vim
  31. +10 −0 .vim/after/ftplugin/javascript_snippets.vim
  32. +13 −0 .vim/after/ftplugin/latex_snippets.vim
  33. +9 −0 .vim/after/ftplugin/logo_snippets.vim
  34. +10 −0 .vim/after/ftplugin/markdown_snippets.vim
  35. +14 −0 .vim/after/ftplugin/movable_type_snippets.vim
  36. +53 −0 .vim/after/ftplugin/objc_snippets.vim
  37. +26 −0 .vim/after/ftplugin/ocaml_snippets.vim
  38. +23 −0 .vim/after/ftplugin/perl_snippets.vim
  39. +30 −0 .vim/after/ftplugin/php_snippets.vim
  40. +19 −0 .vim/after/ftplugin/phpdoc_snippets.vim
  41. +14 −0 .vim/after/ftplugin/propel_snippets.vim
  42. +202 −0 .vim/after/ftplugin/python_snippets.vim
  43. +54 −0 .vim/after/ftplugin/rails_snippets.vim
  44. +32 −0 .vim/after/ftplugin/ruby_snippets.vim
  45. +12 −0 .vim/after/ftplugin/sh_snippets.vim
  46. +19 −0 .vim/after/ftplugin/slate_snippets.vim
  47. +35 −0 .vim/after/ftplugin/smarty_snippets.vim
  48. +21 −0 .vim/after/ftplugin/symfony_snippets.vim
  49. +14 −0 .vim/after/ftplugin/tcl_snippets.vim
  50. +13 −0 .vim/after/ftplugin/template_toolkit_snippets.vim
  51. +13 −0 .vim/after/ftplugin/tex_snippets.vim
  52. +48 −0 .vim/after/ftplugin/xhtml_snippets.vim
  53. +32 −0 .vim/autoload/omni/common/debug.vim
  54. +67 −0 .vim/autoload/omni/common/utils.vim
  55. +569 −0 .vim/autoload/omni/cpp/complete.vim
  56. +126 −0 .vim/autoload/omni/cpp/includes.vim
  57. +660 −0 .vim/autoload/omni/cpp/items.vim
  58. +82 −0 .vim/autoload/omni/cpp/maycomplete.vim
  59. +838 −0 .vim/autoload/omni/cpp/namespaces.vim
  60. +96 −0 .vim/autoload/omni/cpp/settings.vim
  61. +93 −0 .vim/autoload/omni/cpp/tokenizer.vim
  62. +587 −0 .vim/autoload/omni/cpp/utils.vim
  63. +606 −0 .vim/autoload/pythoncomplete.vim
  64. +212 −0 .vim/colors/inkpot.vim
  65. +247 −0 .vim/colors/moria.vim
  66. +67 −0 .vim/colors/vibrantink.vim
  67. +961 −0 .vim/doc/NERD_tree.txt
  68. +401 −0 .vim/doc/bufexplorer.txt
  69. +1,078 −0 .vim/doc/omnicppcomplete.txt
  70. +81 −0 .vim/doc/tags
  71. +25 −0 .vim/ftplugin/python.vim
  72. +877 −0 .vim/ftplugin/xml.vim
  73. +197 −0 .vim/indent/python.vim
  74. +3,917 −0 .vim/plugin/NERD_tree.vim
  75. +820 −0 .vim/plugin/a.vim
  76. +847 −0 .vim/plugin/bufexplorer.vim
  77. +274 −0 .vim/plugin/git-branch-info.vim
  78. +1,838 −0 .vim/plugin/minibufexpl.vim
  79. +78 −0 .vim/plugin/pydoc.vim
  80. +973 −0 .vim/plugin/snippetsEmu.vim
  81. +461 −0 .vim/plugin/supertab.vim
  82. +4,546 −0 .vim/plugin/taglist.vim
  83. +12 −0 .vim/syntax/python.vim
  84. +306 −0 .vimrc
  85. +140 −0 .zshrc
  86. +14 −0 acpi/acpi_events.txt
  87. +105 −0 acpi/default.sh
  88. BIN bin/corkscrew
  89. +13 −0 bin/deletebr
  90. +22 −0 bin/inspect
  91. +10 −0 bin/lsbr
  92. +13 −0 bin/mvbr
  93. +24 −0 bin/vb
  94. BIN fonts/ttf-inconsolata.otf
  95. +17 −0 hgrc
  96. +177 −0 kde4/hotkeys.kksrc
  97. +22 −0 make.conf
  98. +3 −0 scripts/todvd.sh
  99. +19 −0 sync-homedir.sh
  100. +115 −0 xorg.conf
126 .Xdefaults
@@ -0,0 +1,126 @@
+! RXVT
+
+Xft.antialias: true
+
+rxvt*geometry: 80x25
+rxvt*background: #000000
+rxvt*foreground: #ffffff
+!rxvt*inheritPixmap: true
+!rxvt*reverseVideo: false
+rxvt*tintColor: #dfdfdf
+!rxvt*shading: 20 !trans, 0=opaque
+!rxvt*fading: 10 !term unfocus
+rxvt*font xft:Monospace:pixelsize=21
+rxvt*scrollBar: false
+rxvt*scrollBar_floating: true
+rxvt*scrollBar_right: false
+rxvt*scrollColor: #000000
+rxvt*saveLines: 5500
+!rxvt*termName: rxvt
+rxvt*cursorColor: #d8d8d8
+rxvt*colorBD: lightyellow
+rxvt*colorUL: yellow
+
+!colors
+!black
+rxvt*color0: #676767
+rxvt*color8: #757575
+!red
+rxvt*color1: #EA6868
+rxvt*color9: #FF7272
+!green
+rxvt*color2: #ABCB8D
+rxvt*color10: #AFD78A
+!yellow
+rxvt*color3: #E8AE5B
+rxvt*color11: #FFA75D
+!blue
+rxvt*color4: #71C5F4
+rxvt*color12: #67CDE9
+!magenta
+rxvt*color5: #E2BAF1
+rxvt*color13: #ECAEE9
+!cyan
+rxvt*color6: #21F1EA
+rxvt*color14: #36FFFC
+!white
+rxvt*color7: #F1F1F1
+rxvt*color15: #FFFFFF
+
+!
+!XTerm*underLine: on
+XTerm*colorMode: on
+XTerm*colorBD: lightyellow
+!XTerm*colorBDMode: off
+XTerm*colorUL: yellow
+XTerm*colorULMode: on
+XTerm*dynamicColors: off
+XTerm*highlightSelection: true
+
+! Colorscheme based on the gvim colorscheme desert
+XTerm*background: #313031
+XTerm*foreground: White
+
+!colors
+!(unknown)
+XTerm*color0: #000000
+XTerm*color7: #bebebe
+XTerm*color8: #666666
+XTerm*color9: #cf6171
+XTerm*color10: #c5f779
+XTerm*color11: #fff796
+XTerm*color12: #4186be
+XTerm*color13: #cf9ebe
+XTerm*color14: #71bebe
+XTerm*color15: #ffffff
+
+!(1 is an option color in .Xdefaults)
+XTerm*color1: #ffa2a5
+
+!(2 is a resource color in .Xdefaults)
+XTerm*color2: #bdb66b
+
+!(3 is for def/return color in python)
+XTerm*color3: #f7e78c
+
+!(4 is for comments color in python)
+XTerm*color4: #84cfef
+
+!(5 is for import/from color in python)
+XTerm*color5: #ce5d5a
+
+!(6 is for function color in python)
+XTerm*color6: #87ff87
+
+!set the font, and fond size
+! this also uses a antialias/scalable font
+!xterm*faceName: Bitstream Vera Sans Mono
+xterm*faceName: Inconsolata
+xterm*faceSize: 10
+
+!set the window geometry
+XTerm*geometry: 80x20
+XTerm*scrollBar: false
+
+
+
+
+! NEDIT
+
+nedit*enableThinThickness: True
+nedit*enableToggleVisual: True
+nedit*enableToggleColor: True
+nedit*XmToggleButton.indicatorSize: 11
+nedit*enableEtchedInMenu: True
+nedit*XmMenuShell*XmTearOffButton*ShadowThickness: 2
+nedit*text.background: white
+nedit*text.selectBackground: #D0D0FF
+nedit*text.lineNumForeground: #A0A0D0
+nedit*background: gray85
+nedit*statsForm.background: gray85
+nedit*statsLine.background: gray85
+nedit*bottomShadowColor: gray65
+nedit*topShadowColor: #fefefe
+nedit*XmText.background: white
+nedit*XmTextField.background: white
+nedit*XmList.background: white
121 .Xmodmap
@@ -0,0 +1,121 @@
+! Lenovo Thinkpad R61 Spanish Keyboard
+! Custom modmap by Caio Rom�o (caioromao@gmail.com)
+! Based on xmodmap.es by root@chanae.alphanet.ch
+clear Mod1
+clear Mod2
+clear Mod3
+keycode 8 =
+keycode 9 = Escape Escape
+keycode 10 = 1 exclam bar
+keycode 11 = 2 quotedbl at
+keycode 12 = 3 numbersign periodcentered
+keycode 13 = 4 dollar asciitilde
+keycode 14 = 5 percent
+keycode 15 = 6 ampersand notsign
+keycode 16 = 7 slash braceleft
+keycode 17 = 8 parenleft bracketleft
+keycode 18 = 9 parenright bracketright
+keycode 19 = 0 equal
+keycode 20 = apostrophe question backslash
+keycode 21 = exclamdown questiondown
+keycode 22 = BackSpace Delete
+keycode 23 = Tab Tab
+keycode 24 = q Q at
+keycode 25 = w
+keycode 26 = e
+keycode 27 = r
+keycode 28 = t
+keycode 29 = y
+keycode 30 = u
+keycode 31 = i
+keycode 32 = o
+keycode 33 = p
+keycode 34 = dead_acute dead_diaeresis
+keycode 35 = plus asterisk dead_tilde
+keycode 36 = Return
+keycode 37 = Control_L
+keycode 38 = a
+keycode 39 = s
+keycode 40 = d
+keycode 41 = f
+keycode 42 = g
+keycode 43 = h
+keycode 44 = j
+keycode 45 = k
+keycode 46 = l L
+keycode 47 = dead_tilde dead_circumflex
+keycode 48 = braceleft bracketleft dead_circumflex
+keycode 49 = masculine ordfeminine backslash
+keycode 50 = Shift_L
+keycode 51 = braceright bracketright dead_grave
+keycode 52 = z
+keycode 53 = x
+keycode 54 = c C ccedilla
+keycode 55 = v
+keycode 56 = b
+keycode 57 = n
+keycode 58 = m
+keycode 59 = comma semicolon
+keycode 60 = period colon
+keycode 61 = minus underscore
+keycode 62 = Shift_R
+keycode 63 = KP_Multiply
+keycode 64 = Alt_L Meta_L
+keycode 65 = space space
+keycode 66 = Caps_Lock
+keycode 67 = F1
+keycode 68 = F2
+keycode 69 = F3
+keycode 70 = F4
+keycode 71 = F5
+keycode 72 = F6
+keycode 73 = F7
+keycode 74 = F8
+keycode 75 = F9
+keycode 76 = F10
+keycode 77 = Num_Lock
+keycode 78 = Scroll_Lock
+keycode 79 = KP_7
+keycode 80 = KP_8
+keycode 81 = KP_9
+keycode 82 = KP_Subtract
+keycode 83 = KP_4
+keycode 84 = KP_5
+keycode 85 = KP_6
+keycode 86 = KP_Add
+keycode 87 = KP_1
+keycode 88 = KP_2
+keycode 89 = KP_3
+keycode 90 = KP_0
+keycode 94 = less greater slash backslash
+keycode 95 = F11
+keycode 96 = F12
+keycode 98 = Up
+keycode 99 = Prior
+keycode 100 = Left
+keycode 102 = Right
+keycode 104 = Down
+keycode 105 = Next
+keycode 106 = Insert
+keycode 108 = KP_Enter
+keycode 109 = Control_R
+keycode 110 = Find
+keycode 112 = KP_Divide
+keycode 113 = Mode_switch
+keycode 114 = Break
+! 115 = Windows Key. Modded to work as a new Mod key
+keycode 115 = F13
+keycode 116 = Mode_switch
+keycode 227 = Menu
+keycode 234 = XF86Back
+keycode 233 = XF86Forward
+! new ones
+keycode 174 = XF86AudioLowerVolume
+keycode 176 = XF86AudioRaiseVolume
+keycode 144 = XF86AudioPrev
+keycode 153 = XF86AudioNext
+keycode 164 = XF86AudioStop
+keycode 162 = XF86AudioPlay
+add Mod1 = Alt_L
+add Mod2 = Mode_switch
+add Mod3 = Multi_key
701 .awesomerc
@@ -0,0 +1,701 @@
+###########################################
+# _____ __ _ __ ____ __________ _____ ____
+# \__ \\ \/ \/ // __ \ / ___/ _ \ / \_/ __ \
+# / __ \\ /\ ___/ \___ ( <_> ) Y Y \ ___/
+# (____ /\/\_/ \___ >____ >____/|__|_| /\___ >
+# \/ \/ \/ \/ \/
+#
+# Configuration file for awesome
+# author park3r
+# version 0.01
+# date 20071222
+#
+##########################################
+# First physical screen
+screen 0
+{
+ general
+ {
+ # Windows border size in pixel
+ border = 4
+ # Pixels number before collapsing window border and screen border
+ snap = 8
+ # Respect windows minimal geometry
+ resize_hints = true
+ # Opacity for unfocused windows (with xcompmgr)
+ opacity_unfocused = 100
+ # Should focus switching move pointer
+ focus_move_pointer = false
+ # Allow floating windows to be below others
+ allow_lower_floats = false
+ # Status bar font (Xft)
+ font = "fixed-12"
+ }
+ colors
+ {
+ # Normal border color
+ normal_border = "#111111"
+ # Normal background color (statusbar)
+ normal_bg = "#111111"
+ # Normal foreground color (statusbar)
+ normal_fg = "#eeeeee"
+ # Focused border color
+ focus_border = "#ffa800"
+ # Focused background color (statusbar)
+ focus_bg = "#ffa800"
+ # Focused foreground color (statusbar)
+ focus_fg = "#000000"
+ }
+ # Optionnal screen padding
+ padding
+ {
+ left = 2
+ right = 2
+ top = 2
+ bottom = 0
+ }
+ statusbar
+ {
+ # Statusbar position
+ # top, bottom, left, right, off
+ position = "bottom"
+ }
+ tags
+ {
+ # Tag name
+ tag one
+ {
+ # Tag default layout
+ # tile, tileleft, max, floating
+ layout = "tile"
+ }
+ tag two
+ {
+ # Number of master windows on this tag
+ nmaster = 2
+ layout = "tile"
+ }
+ tag three
+ {
+ ncol = 2
+ layout = "tile"
+ }
+ tag four
+ {
+ layout = "tile"
+ }
+ tag five
+ {
+ layout = "tile"
+ }
+ tag six
+ {
+ layout = "tile"
+ }
+ tag seven
+ {
+ layout = "tile"
+ }
+ tag eight
+ {
+ # Master width factor
+ # 0 < mwfact < 1
+ mwfact = 0.3
+ layout = "tile"
+ }
+ tag nine
+ {
+ layout = "floating"
+ }
+ }
+ layouts
+ {
+ # Available layout
+ layout tile
+ {
+ # Symbol drawn in statusbar for this layout
+ symbol = "[]="
+ }
+ layout tileleft
+ {
+ symbol = "=[]"
+ }
+ layout max
+ {
+ symbol = "[ ]"
+ }
+ layout floating
+ {
+ symbol = "><>"
+ }
+ }
+}
+
+rules
+{
+ rule
+ {
+ # Programe name (regexp)
+ name = "Gimp"
+ # Program tags (regexp)
+ tags = "nine"
+ # Should we set this program to floating mode?
+ float = true
+ # Physical screen to map this windows to
+ screen = 0
+ }
+ rule
+ {
+ name = "MPlayer"
+ float = true
+ }
+ rule
+ {
+ name = "Acroread"
+ float = true
+ }
+ rule
+ {
+ name = "pinentry"
+ float = true
+ }
+}
+
+# Mouse buttons bindings
+mouse
+{
+ # For click on tag
+ tag
+ {
+ button = "1"
+ command = "tag_view"
+ }
+ tag
+ {
+ button = "1"
+ modkey = {"Mod4"}
+ command = "client_tag"
+ }
+ tag
+ {
+ button = "3"
+ command = "tag_toggleview"
+ }
+ tag
+ {
+ button = "3"
+ modkey = {"Mod4"}
+ command = "client_toggletag"
+ }
+ tag
+ {
+ button = "4"
+ command = "tag_viewnext"
+ }
+ tag
+ {
+ button = "5"
+ command = "tag_viewprev"
+ }
+ # For click on layout symbol
+ layout
+ {
+ button = "1"
+ command = "tag_setlayout"
+ arg = "+1"
+ }
+ layout
+ {
+ button = "4"
+ command = "tag_setlayout"
+ arg = "+1"
+ }
+ layout
+ {
+ button = "3"
+ command = "tag_setlayout"
+ arg = "-1"
+ }
+ layout
+ {
+ button = "5"
+ command = "tag_setlayout"
+ arg = "-1"
+ }
+ # For click on root window
+ root
+ {
+ button = "3"
+ command = "spawn"
+ arg = "exec xterm"
+ }
+ root
+ {
+ button = "4"
+ command = "tag_viewnext"
+ }
+ root
+ {
+ button = "5"
+ command = "tag_viewprev"
+ }
+ # For click on client windows
+ client
+ {
+ modkey = {"Mod4"}
+ button = "1"
+ command = "client_movemouse"
+ }
+ client
+ {
+ modkey = {"Mod4"}
+ button = "2"
+ command = "client_zoom"
+ }
+ client
+ {
+ modkey = {"Mod4"}
+ button = "3"
+ command = "client_resizemouse"
+ }
+}
+
+# Keys bindings
+keys
+{
+ key
+ {
+ modkey = {"Mod4"}
+ key = "Return"
+ command = "spawn"
+ arg = "exec xterm"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "space"
+ command = "tag_setlayout"
+ arg = "+1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "space"
+ command = "tag_setlayout"
+ arg = "-1"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "b"
+ command = "togglebar"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "j"
+ command = "client_focusnext"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "k"
+ command = "client_focusprev"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "j"
+ command = "client_swapnext"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "k"
+ command = "client_swapprev"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "j"
+ command = "screen_focusnext"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "k"
+ command = "screen_focusprev"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "h"
+ command = "tag_setmwfact"
+ arg = "-0.05"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "l"
+ command = "tag_setmwfact"
+ arg = "+0.05"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "h"
+ command = "tag_setnmaster"
+ arg = "+1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "l"
+ command = "tag_setnmaster"
+ arg = "-1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "h"
+ command = "tag_setncol"
+ arg = "+1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "l"
+ command = "tag_setncol"
+ arg = "-1"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "Escape"
+ command = "tag_viewprev_selected"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "Left"
+ command = "tag_viewprev"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "Right"
+ command = "tag_viewnext"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "m"
+ command = "client_togglemax"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "Return"
+ command = "client_zoom"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "space"
+ command = "client_togglefloating"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "c"
+ command = "client_kill"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "q"
+ command = "quit"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "r"
+ command = "reloadconfig"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "0"
+ command = "tag_view"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "1"
+ command = "tag_view"
+ arg = "1"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "2"
+ command = "tag_view"
+ arg = "2"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "3"
+ command = "tag_view"
+ arg = "3"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "4"
+ command = "tag_view"
+ arg = "4"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "5"
+ command = "tag_view"
+ arg = "5"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "6"
+ command = "tag_view"
+ arg = "6"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "7"
+ command = "tag_view"
+ arg = "7"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "8"
+ command = "tag_view"
+ arg = "8"
+ }
+ key
+ {
+ modkey = {"Mod4"}
+ key = "9"
+ command = "tag_view"
+ arg = "9"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "0"
+ command = "tag_toggleview"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "1"
+ command = "tag_toggleview"
+ arg = "1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "2"
+ command = "tag_toggleview"
+ arg = "2"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "3"
+ command = "tag_toggleview"
+ arg = "3"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "4"
+ command = "tag_toggleview"
+ arg = "4"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "5"
+ command = "tag_toggleview"
+ arg = "5"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "6"
+ command = "tag_toggleview"
+ arg = "6"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "7"
+ command = "tag_toggleview"
+ arg = "7"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "8"
+ command = "tag_toggleview"
+ arg = "8"
+ }
+ key
+ {
+ modkey = {"Mod4", "Control"}
+ key = "9"
+ command = "tag_toggleview"
+ arg = "9"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "0"
+ command = "client_tag"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "1"
+ command = "client_tag"
+ arg = "1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "2"
+ command = "client_tag"
+ arg = "2"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "3"
+ command = "client_tag"
+ arg = "3"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "4"
+ command = "client_tag"
+ arg = "4"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "5"
+ command = "client_tag"
+ arg = "5"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "6"
+ command = "client_tag"
+ arg = "6"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "7"
+ command = "client_tag"
+ arg = "7"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "8"
+ command = "client_tag"
+ arg = "8"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift"}
+ key = "9"
+ command = "client_tag"
+ arg = "9"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "0"
+ command = "client_toggletag"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "1"
+ command = "client_toggletag"
+ arg = "1"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "2"
+ command = "client_toggletag"
+ arg = "2"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "3"
+ command = "client_toggletag"
+ arg = "3"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "4"
+ command = "client_toggletag"
+ arg = "4"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "5"
+ command = "client_toggletag"
+ arg = "5"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "6"
+ command = "client_toggletag"
+ arg = "6"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "7"
+ command = "client_toggletag"
+ arg = "7"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "8"
+ command = "client_toggletag"
+ arg = "8"
+ }
+ key
+ {
+ modkey = {"Mod4", "Shift", "Control"}
+ key = "9"
+ command = "client_toggletag"
+ arg = "9"
+ }
+}
132 .bashrc
@@ -0,0 +1,132 @@
+# plain .bashrc - should work on any Linux environment
+# assembled by: Caio Romão <caioromao@gmail.com>
+
+# setting up custom bin-dir
+if [ -d ${HOME}/bin ]
+then
+ export PATH=${HOME}/bin:$PATH
+fi
+
+# Bash completion
+# The username restriction is due to network weirdness
+if [ -e /etc/bash*completion ] && [ "`whoami`" != "ra059467" ]
+then
+ . /etc/bash*completion
+fi
+
+# EXPORTS
+export GWT_EXTERNAL_BROWSER="firefox"
+export EDITOR="vim"
+
+# PROMPT
+# credits to B-Con from ArchLinux forums for this :)
+bash_prompt_cmd() {
+ local CY="\[\e[0;37m\]" # Each is 12 chars long
+ local BL="\[\e[1;34m\]"
+ local WH="\[\e[1;37m\]"
+ local BR="\[\e[0;33m\]"
+ local RE="\[\e[0;31m\]"
+ local PROMPT="${CY}$"
+ [ $UID -eq "0" ] && PROMPT="${RE}#"
+ [ -n "$CLEARCASE_ROOT" ] && PROMPT="${BL}(${RE}$(basename $CLEARCASE_ROOT)${BL})${CY}$"
+
+ # Add the first part of the prompt: username,host, and time
+ local PROMPT_PWD=""
+ local PS1_T1="$BL[$CY`whoami`@`hostname`$BL:$CY\t$BL:$CY "
+ local ps_len=$(( ${#PS1_T1} - 12 * 6 + 6 + 4 )) #Len adjust for colors, time and var
+ local PS1_T2=" $BL]\n${PROMPT} \[\e[0m\]"
+ local startpos=""
+
+ PROMPT_PWD="${PWD/#$HOME/~}"
+ local overflow_prefix="..."
+ local pwdlen=${#PROMPT_PWD}
+ local maxpwdlen=$(( COLUMNS - ps_len ))
+ # Sometimes COLUMNS isn't initiliased, if it isn't, fall back on 80
+ [ $maxpwdlen -lt 0 ] && maxpwdlen=$(( 80 - ps_len ))
+
+ if [ $pwdlen -gt $maxpwdlen ] ; then
+ startpos=$(( $pwdlen - maxpwdlen + ${#overflow_prefix} ))
+ PROMPT_PWD="${overflow_prefix}${PROMPT_PWD:$startpos:$maxpwdlen}"
+ fi
+ export PS1="${PS1_T1}${PROMPT_PWD}${PS1_T2}"
+}
+PROMPT_COMMAND=bash_prompt_cmd
+
+
+###########
+# Aliases #
+###########
+
+alias c='clear'
+alias mv='mv -i'
+alias cp=' cp -i'
+alias rm='rm -i'
+alias j='jobs'
+alias h='history'
+alias grep='egrep'
+alias ls='ls --color=always --time-style=iso -h -F --quoting-style=escape'
+alias l='ls -lhG'
+alias la='ls -lhA'
+alias ad='ls -A -d */'
+alias a='ls -d .*'
+alias dc=popd
+alias d='dirs -v'
+
+# This makes pushd behave like cd when no argument is passed
+function cdpushd()
+{
+ if [ -n "$1" ]
+ then
+ if [[ $1 != "." ]]
+ then
+ pushd "$*"
+ fi
+ else
+ if [ "$(pwd)" != "$HOME" ]
+ then
+ pushd ~
+ fi
+ fi
+}
+
+alias cd=cdpushd
+alias ctags='ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .'
+
+
+###########
+# History #
+###########
+
+export HISTSIZE=1000
+export HISTFILESIZE=1000
+export HISTIGNORE="ls:l:c:clear:d:cd:dc:bg:fg"
+export HISTCONTROL=ignoredups
+
+
+#############
+# Mercurial #
+#############
+
+# Opens vim in diff mode comparing the current version with
+# the one versioned
+function hgdiff()
+{
+ hg cat $1 | gvim - -c ":vert diffsplit $1" -c "map q :qa!<CR>";
+}
+
+##########################################################################
+# Add sources bellow this comment to avoid replacing of the new commands #
+##########################################################################
+
+# load Motorola config file
+if [[ "$(whoami)" = "wxmp34" ]] && [[ -f ~/.source/motorolarc ]]
+then
+ source ~/.source/motorolarc
+fi
+
+# load Unicamp config file
+if [[ "$(whoami)" = "ra059467" ]] && [[ -f ~/.source/unicamprc ]]
+then
+ source ~/.source/unicamprc
+fi
+
0 .fluxbox/apps
No changes.
2 .fluxbox/fbrun_history
@@ -0,0 +1,2 @@
+xfontsel
+firefox
92 .fluxbox/init
@@ -0,0 +1,92 @@
+session.screen0.tabs.maxOver: false
+session.screen0.tabs.intitlebar: true
+session.screen0.iconbar.iconWidth: 70
+session.screen0.iconbar.wheelMode: Screen
+session.screen0.iconbar.usePixmap: false
+session.screen0.iconbar.iconTextPadding: 10l
+session.screen0.iconbar.alignment: Relative
+session.screen0.iconbar.mode: WorkspaceNoIcons
+session.screen0.window.focus.alpha: 255
+session.screen0.window.unfocus.alpha: 255
+session.screen0.toolbar.alpha: 255
+session.screen0.toolbar.layer: Dock
+session.screen0.toolbar.onhead: 0
+session.screen0.toolbar.visible: true
+session.screen0.toolbar.height: 0
+session.screen0.toolbar.maxOver: false
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.autoHide: false
+session.screen0.toolbar.widthPercent: 100
+session.screen0.toolbar.tools: workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.tab.placement: TopLeft
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.slit.layer: Dock
+session.screen0.slit.onhead: 0
+session.screen0.slit.alpha: 255
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: false
+session.screen0.slit.maxOver: false
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.overlay.lineWidth: 1
+session.screen0.overlay.lineStyle: LineSolid
+session.screen0.overlay.joinStyle: JoinMiter
+session.screen0.overlay.capStyle: CapNotLast
+session.screen0.menu.alpha: 255
+session.screen0.titlebar.left: Stick
+session.screen0.titlebar.right: Minimize Maximize Close
+session.screen0.imageDither: false
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusLastWindow: True
+session.screen0.windowMenu:
+session.screen0.decorateTransient: true
+session.screen0.focusNewWindows: true
+session.screen0.menuMode: Delay
+session.screen0.menuDelay: 0
+session.screen0.allowRemoteActions: false
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.focusModel: ClickFocus
+session.screen0.fullMaximization: false
+session.screen0.defaultDeco: NORMAL
+session.screen0.followModel: Ignore
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.autoRaise: true
+session.screen0.rootCommand:
+session.screen0.windowScrollAction:
+session.screen0.showwindowposition: true
+session.screen0.edgeSnapThreshold: 0
+session.screen0.workspacewarping: true
+session.screen0.userFollowModel: Follow
+session.screen0.resizeMode: Bottom
+session.screen0.menuDelayClose: 0
+session.screen0.opaqueMove: false
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.desktopwheeling: true
+session.screen0.clickRaises: true
+session.screen0.workspaceNames: one,two,three,four,
+session.screen0.windowScrollReverse: false
+session.screen0.tabFocusModel: SloppyTabFocus
+session.screen0.workspaces: 4
+session.screen0.reversewheeling: false
+session.imageDither: True
+session.cacheMax: 200l
+session.appsFile: ~/.fluxbox/apps
+session.slitlistFile: ~/.fluxbox/slitlist
+session.styleOverlay: ~/.fluxbox/overlay
+session.autoRaiseDelay: 250
+session.styleFile: /usr/share/fluxbox/styles/Twice
+session.opaqueMove: False
+session.keyFile: ~/.fluxbox/keys
+session.tabPadding: 0
+session.tabsAttachArea: Window
+session.groupFile: ~/.fluxbox/groups
+session.cacheLife: 5l
+session.colorsPerChannel: 4
+session.configVersion: 1
+session.forcePseudoTransparency: false
+session.modKey: Mod1
+session.menuFile: ~/.fluxbox/menu
+session.doubleClickInterval: 250
+session.ignoreBorder: false
13 .fluxbox/keys
@@ -0,0 +1,13 @@
+OnDesktop Mouse1 :HideMenus
+OnDesktop Mouse2 :WorkspaceMenu
+OnDesktop Mouse3 :RootMenu
+OnDesktop Mouse4 :NextWorkspace
+OnDesktop Mouse5 :PrevWorkspace
+
+Mod1 Tab :NextWindow
+Mod1 Shift Tab :PrevWindow
+Mod1 F2 :ExecCommand fbrun
+Mod1 F3 :ExecCommand xterm
+
+Mod1 Control Right :NextWorkspace
+Mod1 Control Left :PrevWorkspace
47 .fluxbox/menu
@@ -0,0 +1,47 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /builddir/.fluxbox/my-menu
+[begin] (/dev/null)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] (firefox) {firefox}
+ [exec] () {}
+ [exec] (Run) {fbrun }
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {../util/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
4 .fluxbox/overlay
@@ -0,0 +1,4 @@
+menu.title.font: inconsolata-8:bold
+toolbar.clock.font: inconsolata-8:bold
+toolbar.workspace.font: inconsolata-8:bold
+.font: inconsolata-8
0 .fluxbox/slitlist
No changes.
50 .fluxbox/startup
@@ -0,0 +1,50 @@
+# fluxbox startup-script:
+#
+# Lines starting with a '#' are ignored.
+
+# You can set your favourite wallpaper here if you don't want
+# to do it from your style.
+#
+# fbsetbg -f /home/cc2006/ra059467/pictures/wallpaper.png
+#
+# This sets a black background
+
+/usr/bin/fbsetroot -solid black
+
+# This shows the fluxbox-splash-screen
+# fbsetbg -C /usr/share/fluxbox/splash.jpg
+
+# Other examples. Check man xset for details.
+#
+# Turn off beeps:
+xset -b
+#
+# Increase the keyboard repeat-rate:
+# xset r rate 195 35
+#
+# Your own fonts-dir:
+xset +fp "/home/cc2006/ra059467/.fonts"
+#
+# Your favourite mouse cursor:
+# xsetroot -cursor_name right_ptr
+#
+# Change your keymap:
+# xmodmap "/home/cc2006/ra059467/.Xmodmap"
+
+
+
+# Applications you want to run with fluxbox.
+# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
+#
+# unclutter -idle 2 &
+# wmnd &
+# wmsmixer -w &
+# idesk &
+xrdb -load /home/cc2006/ra059467/.Xdefaults &
+
+# And last but not least we start fluxbox.
+# Because it is the last app you have to run it with ''exec'' before it.
+
+exec /usr/bin/fluxbox
+# or if you want to keep a log:
+# exec /usr/bin/fluxbox -log "/home/cc2006/ra059467/.fluxbox/log"
6 .gitconfig
@@ -0,0 +1,6 @@
+[user]
+ name = Caio Romão
+ email = caioromao@gmail.com
+[color]
+ status = auto
+ branch = auto
6 .mplayer/config
@@ -0,0 +1,6 @@
+ass=1
+embeddedfonts=1
+alang=jpn
+slang=env
+subfont-autoscale=1
+really-quiet=1
365 .nedit
@@ -0,0 +1,365 @@
+! Preferences file for NEdit
+!
+! This file is overwritten by the "Save Defaults..." command in NEdit
+! and serves only the interactively settable options presented in the NEdit
+! "Preferences" menu. To modify other options, such as background colors
+! and key bindings, use the .Xdefaults file in your home directory (or
+! the X resource specification method appropriate to your system). The
+! contents of this file can be moved into an X resource file, but since
+! resources in this file override their corresponding X resources, either
+! this file should be deleted or individual resource lines in the file
+! should be deleted for the moved lines to take effect.
+
+nedit.fileVersion: 5.3
+nedit.shellCommands: \
+ spell:Alt+B:s:EX:\n\
+ cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp\n\
+ wc::w:ED:\n\
+ set wc=`wc`; echo $wc[1] "lines," $wc[2] "words," $wc[3] "characters"\n\
+ sort::o:EX:\n\
+ sort\n\
+ number lines::n:AW:\n\
+ nl -ba\n\
+ make:Alt+Z:m:W:\n\
+ make\n\
+ expand::p:EX:\n\
+ expand\n\
+ unexpand::u:EX:\n\
+ unexpand\n
+nedit.macroCommands: \
+ Complete Word:Alt+D::: {\n\
+ # Tuning parameters\n\
+ ScanDistance = 200\n\
+ \n\
+ # Search back to a word boundary to find the word to complete\n\
+ startScan = max(0, $cursor - ScanDistance)\n\
+ endScan = min($text_length, $cursor + ScanDistance)\n\
+ scanString = get_range(startScan, endScan)\n\
+ keyEnd = $cursor-startScan\n\
+ keyStart = search_string(scanString, "<", keyEnd, "backward", "regex")\n\
+ if (keyStart == -1)\n\
+ return\n\
+ keyString = "<" substring(scanString, keyStart, keyEnd)\n\
+ \n\
+ # search both forward and backward from the cursor position. Note that\n\
+ # using a regex search can lead to incorrect results if any of the special\n\
+ # regex characters is encountered, which is not considered a delimiter\n\
+ backwardSearchResult = search_string(scanString, keyString, keyStart-1, \\\n\
+ "backward", "regex")\n\
+ forwardSearchResult = search_string(scanString, keyString, keyEnd, "regex")\n\
+ if (backwardSearchResult == -1 && forwardSearchResult == -1) {\n\
+ beep()\n\
+ return\n\
+ }\n\
+ \n\
+ # if only one direction matched, use that, otherwise use the nearest\n\
+ if (backwardSearchResult == -1)\n\
+ matchStart = forwardSearchResult\n\
+ else if (forwardSearchResult == -1)\n\
+ matchStart = backwardSearchResult\n\
+ else {\n\
+ if (keyStart - backwardSearchResult <= forwardSearchResult - keyEnd)\n\
+ matchStart = backwardSearchResult\n\
+ else\n\
+ matchStart = forwardSearchResult\n\
+ }\n\
+ \n\
+ # find the complete word\n\
+ matchEnd = search_string(scanString, ">", matchStart, "regex")\n\
+ completedWord = substring(scanString, matchStart, matchEnd)\n\
+ \n\
+ # replace it in the window\n\
+ replace_range(startScan + keyStart, $cursor, completedWord)\n\
+ }\n\
+ Fill Sel. w/Char:::R: {\n\
+ if ($selection_start == -1) {\n\
+ beep()\n\
+ return\n\
+ }\n\
+ \n\
+ # Ask the user what character to fill with\n\
+ fillChar = string_dialog("Fill selection with what character?", "OK", "Cancel")\n\
+ if ($string_dialog_button == 2 || $string_dialog_button == 0)\n\
+ return\n\
+ \n\
+ # Count the number of lines in the selection\n\
+ nLines = 0\n\
+ for (i=$selection_start; i<$selection_end; i++)\n\
+ if (get_character(i) == "\\n")\n\
+ nLines++\n\
+ \n\
+ # Create the fill text\n\
+ rectangular = $selection_left != -1\n\
+ line = ""\n\
+ fillText = ""\n\
+ if (rectangular) {\n\
+ for (i=0; i<$selection_right-$selection_left; i++)\n\
+ line = line fillChar\n\
+ for (i=0; i<nLines; i++)\n\
+ fillText = fillText line "\\n"\n\
+ fillText = fillText line\n\
+ } else {\n\
+ if (nLines == 0) {\n\
+ for (i=$selection_start; i<$selection_end; i++)\n\
+ fillText = fillText fillChar\n\
+ } else {\n\
+ startIndent = 0\n\
+ for (i=$selection_start-1; i>=0 && get_character(i)!="\\n"; i--)\n\
+ startIndent++\n\
+ for (i=0; i<$wrap_margin-startIndent; i++)\n\
+ fillText = fillText fillChar\n\
+ fillText = fillText "\\n"\n\
+ for (i=0; i<$wrap_margin; i++)\n\
+ line = line fillChar\n\
+ for (i=0; i<nLines-1; i++)\n\
+ fillText = fillText line "\\n"\n\
+ for (i=$selection_end-1; i>=$selection_start && get_character(i)!="\\n"; \\\n\
+ i--)\n\
+ fillText = fillText fillChar\n\
+ }\n\
+ }\n\
+ \n\
+ # Replace the selection with the fill text\n\
+ replace_selection(fillText)\n\
+ }\n\
+ Quote Mail Reply:::: {\n\
+ if ($selection_start == -1)\n\
+ replace_all("^.*$", "\\\\> &", "regex")\n\
+ else\n\
+ replace_in_selection("^.*$", "\\\\> &", "regex")\n\
+ }\n\
+ Unquote Mail Reply:::: {\n\
+ if ($selection_start == -1)\n\
+ replace_all("(^\\\\> )(.*)$", "\\\\2", "regex")\n\
+ else\n\
+ replace_in_selection("(^\\\\> )(.*)$", "\\\\2", "regex")\n\
+ }\n\
+ C Comments>Comment Out Sel.@C@C++:::R: {\n\
+ selStart = $selection_start\n\
+ selEnd = $selection_end\n\
+ replace_range(selStart, selEnd, "/* " get_selection() " */")\n\
+ select(selStart, selEnd + 6)\n\
+ }\n\
+ C Comments>C Uncomment Sel.@C@C++:::R: {\n\
+ sel = get_selection()\n\
+ selStart = $selection_start\n\
+ selEnd = $selection_end\n\
+ commentStart = search_string(sel, "/*", 0)\n\
+ if (substring(sel, commentStart+2, commentStart+3) == " ")\n\
+ keepStart = commentStart + 3\n\
+ else\n\
+ keepStart = commentStart + 2\n\
+ keepEnd = search_string(sel, "*/", length(sel), "backward")\n\
+ commentEnd = keepEnd + 2\n\
+ if (substring(sel, keepEnd - 1, keepEnd == " "))\n\
+ keepEnd = keepEnd - 1\n\
+ replace_range(selStart + commentStart, selStart + commentEnd, \\\n\
+ substring(sel, keepStart, keepEnd))\n\
+ select(selStart, selEnd - (keepStart-commentStart) - \\\n\
+ (commentEnd - keepEnd))\n\
+ }\n\
+ C Comments>+ C++ Comment@C++:::R: {\n\
+ replace_in_selection("^.*$", "// &", "regex")\n\
+ }\n\
+ C Comments>- C++ Comment@C++:::R: {\n\
+ replace_in_selection("(^[ \\\\t]*// ?)(.*)$", "\\\\2", "regex")\n\
+ }\n\
+ C Comments>+ C Bar Comment 1@C:::R: {\n\
+ if ($selection_left != -1) {\n\
+ dialog("Selection must not be rectangular")\n\
+ return\n\
+ }\n\
+ start = $selection_start\n\
+ end = $selection_end-1\n\
+ origText = get_range($selection_start, $selection_end-1)\n\
+ newText = "/*\\n" replace_in_string(get_range(start, end), \\\n\
+ "^", " * ", "regex") "\\n */\\n"\n\
+ replace_selection(newText)\n\
+ select(start, start + length(newText))\n\
+ }\n\
+ C Comments>- C Bar Comment 1@C:::R: {\n\
+ selStart = $selection_start\n\
+ selEnd = $selection_end\n\
+ newText = get_range(selStart+3, selEnd-4)\n\
+ newText = replace_in_string(newText, "^ \\\\* ", "", "regex")\n\
+ replace_range(selStart, selEnd, newText)\n\
+ select(selStart, selStart + length(newText))\n\
+ }\n\
+ Make C Prototypes@C@C++:::: {\n\
+ if ($selection_start == -1) {\n\
+ start = 0\n\
+ end = $text_length\n\
+ } else {\n\
+ start = $selection_start\n\
+ end = $selection_end\n\
+ }\n\
+ string = get_range(start, end)\n\
+ nDefs = 0\n\
+ searchPos = 0\n\
+ prototypes = ""\n\
+ staticPrototypes = ""\n\
+ for (;;) {\n\
+ headerStart = search_string(string, \\\n\
+ "^[a-zA-Z]([^;#\\"'{}=><!/]|\\n)*\\\\)[ \\t]*\\n?[ \\t]*\\\\{", \\\n\
+ searchPos, "regex")\n\
+ if (headerStart == -1)\n\
+ break\n\
+ headerEnd = search_string(string, ")", $search_end,"backward") + 1\n\
+ prototype = substring(string, headerStart, headerEnd) ";\\n"\n\
+ if (substring(string, headerStart, headerStart+6) == "static")\n\
+ staticPrototypes = staticPrototypes prototype\n\
+ else\n\
+ prototypes = prototypes prototype\n\
+ searchPos = headerEnd\n\
+ nDefs++\n\
+ }\n\
+ if (nDefs == 0) {\n\
+ dialog("No function declarations found")\n\
+ return\n\
+ }\n\
+ new()\n\
+ focus_window("last")\n\
+ replace_range(0, 0, prototypes staticPrototypes)\n\
+ }\n
+nedit.bgMenuCommands: \
+ Undo:::: {\n\
+ undo()\n\
+ }\n\
+ Redo:::: {\n\
+ redo()\n\
+ }\n\
+ Cut:::R: {\n\
+ cut_clipboard()\n\
+ }\n\
+ Copy:::R: {\n\
+ copy_clipboard()\n\
+ }\n\
+ Paste:::: {\n\
+ paste_clipboard()\n\
+ }\n
+nedit.highlightPatterns: Ada:Default\n\
+ Awk:Default\n\
+ C++:Default\n\
+ C:Default\n\
+ CSS:Default\n\
+ Csh:Default\n\
+ Fortran:Default\n\
+ Java:Default\n\
+ JavaScript:Default\n\
+ LaTeX:Default\n\
+ Lex:Default\n\
+ Makefile:Default\n\
+ Matlab:Default\n\
+ NEdit Macro:Default\n\
+ Pascal:Default\n\
+ Perl:Default\n\
+ PostScript:Default\n\
+ Python:Default\n\
+ Regex:Default\n\
+ SGML HTML:Default\n\
+ SQL:Default\n\
+ Sh Ksh Bash:Default\n\
+ Tcl:Default\n\
+ VHDL:Default\n\
+ Verilog:Default\n\
+ XML:Default\n\
+ X Resources:Default\n\
+ Yacc:Default
+nedit.languageModes: Ada:.ada .ad .ads .adb .a::::::\n\
+ Awk:.awk::::::\n\
+ C++:.cc .hh .C .H .i .cxx .hxx .cpp::::::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~"\n\
+ C:.c .h::::::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~"\n\
+ CSS:css::Auto:None:::".,/\\`'!|@#%^&*()=+{}[]"":;<>?~"\n\
+ Csh:.csh .cshrc .login .logout:"^[ \\t]*#[ \\t]*![ \\t]*/bin/csh":::::\n\
+ Fortran:.f .f77 .for::::::\n\
+ Java:.java::::::\n\
+ JavaScript:.js::::::\n\
+ LaTeX:.tex .sty .cls .dtx .ins::::::\n\
+ Lex:.lex::::::\n\
+ Makefile:Makefile makefile .gmk:::None:8:8:\n\
+ Matlab:.m .oct .sci::::::\n\
+ NEdit Macro:.nm .neditmacro::::::\n\
+ Pascal:.pas .p .int::::::\n\
+ Perl:.pl .pm .p5 .PL:"^[ \\t]*#[ \\t]*!.*perl":Auto:None:::".,/\\\\`'!$@#%^&*()-=+{}[]"":;<>?~|"\n\
+ PostScript:.ps .eps .epsf .epsi:"^%!":::::"/%(){}[]<>"\n\
+ Python:.py:"^#!.*python":Auto:None:::\n\
+ Regex:.reg .regex:"\\(\\?[:#=!iInN].+\\)":None:Continuous:::\n\
+ SGML HTML:.sgml .sgm .html .htm:"\\<[Hh][Tt][Mm][Ll]\\>":::::\n\
+ SQL:.sql::::::\n\
+ Sh Ksh Bash:.sh .bash .ksh .profile .bashrc .bash_logout .bash_login .bash_profile:"^[ \\t]*#[ \\t]*![ \\t]*/.*bin/(sh|ksh|bash)":::::\n\
+ Tcl:.tcl .tk .itcl .itk::Smart:None:::\n\
+ VHDL:.vhd .vhdl .vdl::::::\n\
+ Verilog:.v::::::\n\
+ XML:.xml .xsl .dtd:"\\<(?i\\?xml|!doctype)"::None:::"<>/=""'()+*?|"\n\
+ X Resources:.Xresources .Xdefaults .nedit:"^[!#].*([Aa]pp|[Xx]).*[Dd]efaults":::::\n\
+ Yacc:.y::::::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~"
+nedit.styles: Plain:black:Plain\n\
+ Comment:gray20:Italic\n\
+ Keyword:black:Bold\n\
+ Storage Type:brown:Bold\n\
+ Storage Type1:saddle brown:Bold\n\
+ String:darkGreen:Plain\n\
+ String1:SeaGreen:Plain\n\
+ String2:darkGreen:Bold\n\
+ Preprocessor:RoyalBlue4:Plain\n\
+ Preprocessor1:blue:Plain\n\
+ Character Const:darkGreen:Plain\n\
+ Numeric Const:darkGreen:Plain\n\
+ Identifier:brown:Plain\n\
+ Identifier1:RoyalBlue4:Plain\n\
+ Subroutine:brown:Plain\n\
+ Subroutine1:chocolate:Plain\n\
+ Ada Attributes:plum:Bold\n\
+ Label:red:Italic\n\
+ Flag:red:Bold\n\
+ Text Comment:SteelBlue4:Italic\n\
+ Text Key:VioletRed4:Bold\n\
+ Text Key1:VioletRed4:Plain\n\
+ Text Arg:RoyalBlue4:Bold\n\
+ Text Arg1:SteelBlue4:Bold\n\
+ Text Arg2:RoyalBlue4:Plain\n\
+ Text Escape:gray30:Bold\n\
+ LaTeX Math:darkGreen:Plain\n\
+ Pointer:#660000:Bold\n\
+ Regex:#009944:Bold\n\
+ Warning:brown2:Italic
+nedit.smartIndentInit: C:Default\n\
+ C++:Default\n\
+ Python:Default\n\
+ Matlab:Default
+nedit.smartIndentInitCommon: Default
+nedit.autoWrap: None
+nedit.wrapMargin: 0
+nedit.autoIndent: Smart
+nedit.autoSave: False
+nedit.saveOldVersion: False
+nedit.showMatching: Delimiter
+nedit.matchSyntaxBased: True
+nedit.highlightSyntax: True
+nedit.searchDialogs: False
+nedit.beepOnSearchWrap: False
+nedit.retainSearchDialogs: False
+nedit.searchWraps: True
+nedit.stickyCaseSenseButton: True
+nedit.repositionDialogs: True
+nedit.appendLF: True
+nedit.sortOpenPrevMenu: True
+nedit.statisticsLine: True
+nedit.iSearchLine: True
+nedit.lineNumbers: True
+nedit.pathInWindowsMenu: True
+nedit.warnFileMods: True
+nedit.warnExit: True
+nedit.searchMethod: Literal
+nedit.textRows: 60
+nedit.textCols: 90
+nedit.tabDistance: 4
+nedit.emulateTabs: 4
+nedit.insertTabs: False
+nedit.textFont: -*-courier-medium-r-normal--*-120-*-*-*-iso8859-*
+nedit.boldHighlightFont: -*-courier-bold-r-normal--*-120-*-*-*-iso8859-*
+nedit.italicHighlightFont: -*-courier-medium-o-normal--*-120-*-*-*-iso8859-*
+nedit.boldItalicHighlightFont: -*-courier-bold-o-normal--*-120-*-*-*-iso8859-*
+nedit.smartTags: True
+nedit.prefFileRead: False
+nedit.titleFormat: {%c} [%s] %f (%S) - %d
36 .pythonrc.py
@@ -0,0 +1,36 @@
+from __future__ import nested_scopes
+import sys, os, string, time
+# from utils import *
+
+################ Interactive Prompt and Debugging ################
+
+try:
+ import readline
+except ImportError:
+ print "Module readline not available."
+else:
+ import rlcompleter
+ readline.parse_and_bind("tab: complete")
+
+h = [None]
+
+class Prompt:
+ def __init__(self, str='h[%d] >>> '):
+ self.str = str;
+
+ def __str__(self):
+ try:
+ if _ not in [h[-1], None, h]: h.append(_);
+ except NameError:
+ pass
+ return self.str % len(h);
+
+ def __radd__(self, other):
+ return str(other) + str(self)
+
+
+if os.environ.get('TERM') in [ 'xterm', 'vt100' ]:
+ sys.ps1 = Prompt('\001\033[0:1;31m\002h[%d] >>> \001\033[0m\002')
+else:
+ sys.ps1 = Prompt()
+sys.ps2 = ''
112 .source/motorolarc
@@ -0,0 +1,112 @@
+# Custom commands to be sourced on motorola shells
+# @author Caio Romão <caioromao@gmail.com>
+
+HOSTNAME=$(hostname)
+
+# Setting up proxy
+http_proxy="wxmp34@wwwgate0.mot.com:1080"
+ftp_proxy="wxmp34@wwwgate0.mot.com:1080"
+export http_proxy ftp_proxy
+
+# Path env as pre-configured
+PATH=/usr/bin:/usr/ucb:/etc:.
+export PATH=${PATH}:/bin:/usr/atria/bin:/usr/local/bin:/usr/openwin/bin:/usr/X11R6/bin:/usr/local2/bin:/usr/local_linux/cpptest7/eclipse:/usr/local_linux/cpptest/insure/bin.linux2/:/home/sw/wxmp34/bin:/vobs/local_tools/unix_tools/
+export MANPATH=${MANPATH}:/usr/atria/doc/man
+export CLEARCASE_BLD_UMASK=2
+
+# Fixing aliases on Unix machines
+if [[ "$HOSTNAME" = "${HOSTNAME/linux/FIXIT}" ]]
+then
+ unalias ls
+ unalias l
+ unalias la
+ unalias a
+ unalias ad
+ alias ls='ls -F'
+ alias a='ls -A'
+ alias l='ls -lh'
+ alias la='ls -lAh'
+fi
+
+# Setting DISPLAY to interface with XMing server
+if [[ "$HOSTNAME" != "${HOSTNAME/linux/FIXIT}" ]]
+then
+ REMOTEIP="$(who am i| grep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
+ if [[ "$REMOTEIP" != "" ]]
+ then
+ export DISPLAY="$REMOTEIP:0.0"
+ fi
+fi
+
+# Clearcase aliases
+alias ct='cleartool'
+alias ci='ct checkin'
+alias co='ct checkout -nc'
+alias unco='ct unco'
+alias pwv='ct pwv'
+alias sv='ct setview -exec bash'
+alias lsco='ct lsco -all -cview -me'
+alias vedcs='WINEDITOR=vim ct edcs'
+alias edcs='WINEDITOR=gvim ct edcs'
+alias gedcs='WINEDITOR=gedit ct edcs'
+alias nedcs='WINEDITOR=nedit ct edcs'
+# For C++Test
+alias ec='eclipse -vm /usr/local_linux/java/jdk1.6.0/bin/java -vmargs -Xms512m -Xmx2000m &'
+alias e='kwrite'
+alias ctdiff='ct diff -g -pre'
+alias v='ct lsview | grep wxmp34'
+# For MSGG P2K
+alias msgg='cd /vobs/synergy_core_apps/code/msgg/src/'
+
+# Finds files that need to be merged given a label
+function findmerge()
+{
+ if [[ "${#}" = "2" ]]
+ then
+ ct findmerge $1 -fver $2 -print
+ elif [[ "${#}" = "1" ]]
+ then
+ ct findmerge . -fver $1 -print
+ else
+ echo "usage: findmerge [PATH] Label"
+ fi
+}
+
+# Do a three-way merge of a given file to a given label
+function domerge()
+{
+ if [[ "${#}" == "2" ]]
+ then
+ ct findmerge $1 -fver $2 -merge -gmerge -nc
+ else
+ echo "usage domerge <FILE> Label"
+ fi
+}
+
+# searches for a definition
+function dgrep()
+{
+ if [ -z $2 ]
+ then
+ grep -R "${1}*;" * 2>/dev/null
+ else
+ grep -R "${1}*;" ${2}/* 2>/dev/null
+ fi
+}
+
+# searches for a word
+function wgrep()
+{
+ if [ -z $2 ]
+ then
+ grep -R "\<${1}\>" * 2>/dev/null
+ else
+ grep -R "\<${1}\>" ${2}/* 2>/dev/null
+ fi
+}
+
+# Easy BR script
+alias ezbr=/vobs/linuxjava/common_tools/bin/ezbr
+#element * EZBR_N_00.00.XXR_LATEST
+# uncomment to run EzBR only if tool returns library error
+#element * TOOLS_N_00.00.XXR_ATOOLS
24 .source/unicamprc
@@ -0,0 +1,24 @@
+# Custom commands to be sourced on unicamp shells
+# @author Caio Romão <caioromao@gmail.com>
+
+# Unicamp network is NOT secure
+umask 0077
+
+# Setting up local python libs
+# This is needed by a Mercurial home install
+if [[ -d ${HOME}/lib/python ]]
+then
+ export PYTHONPATH=${HOME}/lib/python
+fi
+
+# GPSL config script
+if [ -e ${HOME}/.config_area.sh ]
+then
+ . ${HOME}/.config_area.sh
+fi
+
+# Create a tmp directory
+DIRECTORY=/tmp/home-ra059467
+mkdir -p $DIRECTORY
+
+
9 .vim/after/ftplugin/actionscript_snippets.vim
@@ -0,0 +1,9 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet dm duplicateMovieClip(".st."target".et.", ".st."newName".et.", ".st."depth".et.");"
17 .vim/after/ftplugin/aspvbs_snippets.vim
@@ -0,0 +1,17 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet rr Response.Redirect(".st."to".et.")".st.et.""
+exec "Snippet app Application(\"".st.et."\")".st.et.""
+exec "Snippet forin For ".st."var".et." in ".st."array".et."<CR>".st.et."<CR>Next<CR>".st.et.""
+exec "Snippet ifelse If ".st."condition".et." Then<CR>".st.et."<CR>Else<CR>".st.et."<CR>End if<CR>".st.et.""
+exec "Snippet rw Response.Write ".st.et.""
+exec "Snippet sess Session(\"".st.et."\")".st.et.""
+exec "Snippet rf Request.Form(\"".st.et."\")".st.et.""
+exec "Snippet rq Request.QueryString(\"".st.et."\")".st.et.""
+exec "Snippet while While ".st."NOT".et." ".st."condition".et."<CR>".st.et."<CR>Wend<CR>".st.et.""
2 .vim/after/ftplugin/c.vim
@@ -0,0 +1,2 @@
+" OmniCppComplete initialization
+call omni#cpp#complete#Init()
58 .vim/after/ftplugin/c_snippets.vim
@@ -0,0 +1,58 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+function! Count(haystack, needle)
+ let counter = 0
+ let index = match(a:haystack, a:needle)
+ while index > -1
+ let counter = counter + 1
+ let index = match(a:haystack, a:needle, index+1)
+ endwhile
+ return counter
+endfunction
+
+function! CArgList(count)
+ " This returns a list of empty tags to be used as
+ " argument list placeholders for the call to printf
+ let st = g:snip_start_tag
+ let et = g:snip_end_tag
+ if a:count == 0
+ return ""
+ else
+ return repeat(', '.st.et, a:count)
+ endif
+endfunction
+
+function! CMacroName(filename)
+ let name = a:filename
+ let name = substitute(name, '\.','_','g')
+ let name = substitute(name, '\(.\)','\u\1','g')
+ return name
+endfunction
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet do do<CR>{<CR>".st.et."<CR>} while (".st.et.");".st.et
+exec "Snippet readfile std::vector<uint8_t> v;<CR>if(FILE* fp = fopen(\"".st."filename".et."\", \"r\"))<CR>{<CR>uint8_t buf[1024];<CR>while(size_t len = fread(buf, 1, sizeof(buf), fp))<CR>v.insert(v.end(), buf, buf + len);<CR>fclose(fp);<CR>}<CR>".st.et
+exec "Snippet beginend ".st."v".et.".begin(), ".st."v".et.".end()".st.et
+exec "Snippet once #ifndef ``CMacroName(expand('%'))``_<CR><CR>#define ``CMacroName(expand('%'))``_<CR><CR>".st.et."<CR><CR>#endif /* ``CMacroName(expand('%'))``_ */<CR>"
+"exec "Snippet once #ifndef _".st."file:substitute(expand('%'),'\\(.\\)','\\u\\1','g')".et."_<CR><CR>#define _".st."file".et."_<CR><CR>".st.et."<CR><CR>#endif /* _".st."file".et."_ */<CR>".st.et
+exec "Snippet class class ".st."name".et."<CR>{<CR>public:<CR>".st."name".et." (".st."arguments".et.");<CR>virtual ~".st."name".et."();<CR><CR>private:<CR>".st.et."<CR>};<CR>".st.et
+" TODO This is a good one but I can't quite work out the syntax yet
+exec "Snippet printf printf(\"".st."\"%s\"".et."\\n\"".st."\"%s\":CArgList(Count(@z, '%[^%]'))".et.");<CR>".st.et
+exec "Snippet vector std::vector<".st."char".et."> v".st.et.";"
+exec "Snippet struct struct ".st."name".et."<CR>{<CR>".st.et."<CR>};<CR>".st.et
+exec "Snippet template template <typename ".st."_InputIter".et."><CR>".st.et
+" TODO this one as well. Wish I knew more C
+" Snippet namespace namespace ${1:${TM_FILENAME/(.*?)\\..*/\\L$1/}}\n{\n\t$0\n};<CR>.st.et
+exec "Snippet namespace namespace ".st.":substitute(expand('%'),'.','\\l&', 'g')".et."<CR>{<CR>".st.et."<CR>};<CR>".st.et
+exec "Snippet map std::map<".st."key".et.", ".st."value".et."> map".st.et.";<CR>".st.et
+exec "Snippet mark #if 0<CR><CR>".st.et."<CR><CR>#endif<CR><CR>".st.et
+exec "Snippet if if(".st.et.")<CR>{<CR>".st.et."<CR>}<CR>".st.et
+exec "Snippet main int main (int argc, char const* argv[])<CR>{<CR>".st.et.";<CR>return 0;<CR>}<CR>".st.et
+exec "Snippet Inc #include <".st.et."><CR>".st.et
+exec "Snippet inc #include \"".st.et.".h\"".st.et
+exec "Snippet for for( ".st.et." ".st."i".et." = ".st.et."; ".st."i".et." < ".st."count".et."; ".st."i".et." += ".st.et.")<CR>{<CR>".st.et."<CR>}<CR>".st.et
2 .vim/after/ftplugin/cpp.vim
@@ -0,0 +1,2 @@
+" OmniCppComplete initialization
+call omni#cpp#complete#Init()
30 .vim/after/ftplugin/css_snippets.vim
@@ -0,0 +1,30 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet visibility ".st.et.";".st.et
+exec "Snippet list list-style-image: url(".st.et.");".st.et
+exec "Snippet text text-shadow: rgb(".st.et.", ".st.et.", ".st.et.", ".st.et." ".st.et." ".st.et.";".st.et
+exec "Snippet overflow overflow: ".st.et.";".st.et
+exec "Snippet white white-space: ".st.et.";".st.et
+exec "Snippet clear cursor: url(".st.et.");".st.et
+exec "Snippet margin padding-top: ".st.et.";".st.et
+exec "Snippet background background #".st.et." url(".st.et.") ".st.et." ".st.et." top left/top center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x% y%/x-pos y-pos')".et.";".st.et
+exec "Snippet word word-spaceing: ".st.et.";".st.et
+exec "Snippet z z-index: ".st.et.";".st.et
+exec "Snippet vertical vertical-align: ".st.et.";".st.et
+exec "Snippet marker marker-offset: ".st.et.";".st.et
+exec "Snippet cursor cursor: ".st.et.";".st.et
+exec "Snippet border border-right: ".st.et."px ".st.et." #".st.et.";".st.et
+exec "Snippet display display: block;".st.et
+exec "Snippet padding padding: ".st.et." ".st.et.";".st.et
+exec "Snippet letter letter-spacing: ".st.et."em;".st.et
+exec "Snippet color color: rgb(".st.et.", ".st.et.", ".st.et.");".st.et
+exec "Snippet font font-weight: ".st.et.";".st.et
+exec "Snippet position position: ".st.et.";".st.et
+exec "Snippet direction direction: ".st.et.";".st.et
+exec "Snippet float float: ".st.et.";".st.et
61 .vim/after/ftplugin/django_model_snippets.vim
@@ -0,0 +1,61 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+function! Count(haystack, needle)
+ let counter = 0
+ let index = match(a:haystack, a:needle)
+ while index > -1
+ let counter = counter + 1
+ let index = match(a:haystack, a:needle, index+1)
+ endwhile
+ return counter
+endfunction
+
+function! DjangoArgList(count)
+ " This needs to be Python specific as print expects a
+ " tuple and an empty tuple looks like this (,) so we'll need to make a
+ " special case for it
+ let st = g:snip_start_tag
+ let et = g:snip_end_tag
+ if a:count == 0
+ return "()"
+ else
+ return '('.repeat(st.et.', ', a:count).')'
+ endif
+endfunction
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet mmodel class ".st.et."(models.Model):<CR>\"\"\"".st.et."\"\"\"<CR>".st.et." = ".st.et."<CR><CR>class Admin:<CR>pass<CR><CR>def __unicode__(self):<CR>return \"".st."s".et."\" % ".st."s:DjangoArgList(Count(@z, '%[^%]'))".et."<CR>".st.et
+exec "Snippet mauto models.AutoField(".st.et.")".st.et
+exec "Snippet mbool models.BooleanField()".st.et
+exec "Snippet mchar models.CharField(max_length=".st."50".et.st.et.")".st.et
+exec "Snippet mcsi models.CommaSeparatedIntegerField(max_length=".st."50".et.st.et.")".st.et
+exec "Snippet mdate models.DateField(".st.et.")".st.et
+exec "Snippet mdatet models.DateTimeField(".st.et.")".st.et
+exec "Snippet memail models.EmailField(".st.et.")".st.et
+exec "Snippet mfile models.FileField(upload_to=\"".st.et."\"".st.et.")".st.et
+exec "Snippet mfilep models.FilePathField(path=\"".st.et."\"".st.et.")".st.et
+exec "Snippet mfloat models.FloatField(max_digits=".st.et.", decimal_places=".st.et.")".st.et
+exec "Snippet mimage models.ImageField(".st.et.")".st.et
+exec "Snippet mint models.IntegerField(".st.et.")".st.et
+exec "Snippet mipadd models.IPAddressField(".st.et.")".st.et
+exec "Snippet mnull models.NullBooleanField()".st.et
+exec "Snippet mphone models.PhoneNumberField(".st.et.")".st.et
+exec "Snippet mpint models.PositiveIntegerField(".st.et.")".st.et
+exec "Snippet mspint models.PositiveSmallIntegerField(".st.et.")".st.et
+exec "Snippet mslug models.SlugField(".st.et.")".st.et
+exec "Snippet msint models.SmallIntegerField(".st.et.")".st.et
+exec "Snippet mtext models.TextField(".st.et.")".st.et
+exec "Snippet mtime models.TimeField(".st.et.")".st.et
+exec "Snippet murl models.URLField(verify_exists=".st."True".et.st.et.")".st.et
+exec "Snippet muss models.USStateField(".st.et.")".st.et
+exec "Snippet mxml models.XMLField(schema_path=\"".st.et."\"".st.et.")".st.et
+exec "Snippet mfor models.ForeignKey(".st.et.")".st.et
+exec "Snippet mm2o models.ForeignKey(".st.et.")".st.et
+exec "Snippet mm2m models.ManyToManyField(".st.et.")".st.et
+exec "Snippet mo2o models.OneToOneField(".st.et.")".st.et
+exec "Snippet mman models.Manager()".st.et
32 .vim/after/ftplugin/django_template_snippets.vim
@@ -0,0 +1,32 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet {{ {% templatetag openvariable %}".st.et
+exec "Snippet }} {% templatetag closevariable %}".st.et
+exec "Snippet {% {% templatetag openblock %}".st.et
+exec "Snippet %} {% templatetag closeblock %}".st.et
+exec "Snippet now {% now \"".st.et."\" %}".st.et
+exec "Snippet firstof {% firstof ".st.et." %}".st.et
+exec "Snippet ifequal {% ifequal ".st.et." ".st.et." %}<CR>".st.et."<CR>{% endifequal %}<CR>".st.et
+exec "Snippet ifchanged {% ifchanged %}".st.et."{% endifchanged %}".st.et
+exec "Snippet regroup {% regroup ".st.et." by ".st.et." as ".st.et." %}".st.et
+exec "Snippet extends {% extends \"".st.et."\" %}<CR>".st.et
+exec "Snippet filter {% filter ".st.et." %}<CR>".st.et."<CR>{% endfilter %}".st.et
+exec "Snippet block {% block ".st.et." %}<CR>".st.et."<CR>{% endblock %}<CR>".st.et
+exec "Snippet cycle {% cycle ".st.et." as ".st.et." %}".st.et
+exec "Snippet if {% if ".st.et." %}<CR>".st.et."<CR>{% endif %}<CR>".st.et
+exec "Snippet debug {% debug %}<CR>".st.et
+exec "Snippet ifnotequal {% ifnotequal ".st.et." ".st.et." %}<CR>".st.et."<CR>{% endifnotequal %}<CR>".st.et
+exec "Snippet include {% include ".st.et." %}<CR>".st.et
+exec "Snippet comment {% comment %}<CR>".st.et."<CR>{% endcomment %}<CR>".st.et
+exec "Snippet for {% for ".st.et." in ".st.et." %}<CR>".st.et."<CR>{% endfor %}<CR>".st.et
+exec "Snippet ssi {% ssi ".st.et." ".st.et." %}".st.et
+exec "Snippet widthratio {% widthratio ".st.et." ".st.et." ".st.et." %}".st.et
+exec "Snippet load {% load ".st.et." %}<CR>".st.et
+" Field snippet contributed by Alex Pounds
+exec "Snippet field <p><label for=\"id_".st."fieldname".et."\">".st."fieldlabel".et.":</label> {{ form.".st."fieldname".et." }}<CR>{% if form.".st."fieldname".et.".errors %}*** {{ form.".st."fieldname".et.".errors|join:\", \" }} {% endif %}</p>".st.et
14 .vim/after/ftplugin/f-script_snippets.vim
@@ -0,0 +1,14 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet tbd to:".st.et." by:".st.et." do:[ ".st.et." |<CR>".st.et."<CR>].".st.et
+exec "Snippet it ifTrue:[<CR>".st.et."<CR>].".st.et
+exec "Snippet ift ifFalse:[<CR>".st.et."<CR>] ifTrue:[<CR>".st.et."<CR>].".st.et
+exec "Snippet itf ifTrue:[<CR>".st.et."<CR>] ifFalse:[<CR>".st.et."<CR>].".st.et
+exec "Snippet td to:".st.et." do:[".st.et." ".st.et." |<CR>".st.et."<CR>].".st.et
+exec "Snippet if ifFalse:[<CR>".st.et."<CR>].".st.et
9 .vim/after/ftplugin/haskell_snippets.vim
@@ -0,0 +1,9 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet mod module: ".st.et." where<CR><Tab>".st.et
57 .vim/after/ftplugin/html_snippets.vim
@@ -0,0 +1,57 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+function! SelectDoctype()
+ let st = g:snip_start_tag
+ let et = g:snip_end_tag
+ let cd = g:snip_elem_delim
+ let dt = inputlist(['Select doctype:',
+ \ '1. HTML 4.01',
+ \ '2. HTML 4.01 Transitional',
+ \ '3. HTML 4.01 Frameset',
+ \ '4. XHTML 1.0 Frameset',
+ \ '5. XHTML Strict',
+ \ '6. XHTML Transitional',
+ \ '7. XHTML Frameset'])
+ let dts = {1: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\"http://www.w3.org/TR/html4/strict.dtd\">\n".st.et,
+ \ 2: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">\n".st.et,
+ \ 3: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"\n\"http://www.w3.org/TR/html4/frameset.dtd\">\n".st.et,
+ \ 4: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n".st.et,
+ \ 5: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Strict//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n".st.et,
+ \ 6: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n".st.et,
+ \ 7: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Frameset//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n".st.et}
+
+ return dts[dt]
+endfunction
+
+exec "Snippet doct ``SelectDoctype()``"
+exec "Snippet doctype <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"<CR><TAB>\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\"><CR>".st.et
+exec "Snippet doc4s <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"<CR>\"http://www.w3.org/TR/html4/strict.dtd\"><CR>".st.et
+exec "Snippet doc4t <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"<CR>\"http://www.w3.org/TR/html4/loose.dtd\"><CR>".st.et
+exec "Snippet doc4f <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"<CR>\"http://www.w3.org/TR/html4/frameset.dtd\"><CR>".st.et
+exec "Snippet docxs <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Strict//EN\"<CR>\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><CR>".st.et
+exec "Snippet docxt <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Transitional//EN\"<CR>\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><CR>".st.et
+exec "Snippet docxf <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Frameset//EN\"<CR>\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\"><CR>".st.et
+exec "Snippet head <head><CR><meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" /><CR><title>".st.et."</title><CR>".st.et."<CR></head><CR>".st.et
+exec "Snippet script <script type=\"text/javascript\" language=\"javascript\" charset=\"utf-8\"><CR>// <![CDATA[<CR><TAB>".st.et."<CR>// ]]><CR></script><CR>".st.et
+exec "Snippet title <title>".st.et."</title>"
+exec "Snippet body <body id=\"".st.et."\" ".st.et."><CR>".st.et."<CR></body><CR>".st.et
+exec "Snippet scriptsrc <script src=\"".st.et."\" type=\"text/javascript\" language=\"".st.et."\" charset=\"".st.et."\"></script><CR>".st.et
+exec "Snippet textarea <textarea name=\"".st.et."\" rows=\"".st.et."\" cols=\"".st.et."\">".st.et."</textarea><CR>".st.et
+exec "Snippet meta <meta name=\"".st.et."\" content=\"".st.et."\" /><CR>".st.et
+exec "Snippet movie <object width=\"".st.et."\" height=\"".st.et."\"<CR>classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"<CR>codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\"><CR><param name=\"src\"<CR>value=\"".st.et."\" /><CR><param name=\"controller\" value=\"".st.et."\" /><CR><param name=\"autoplay\" value=\"".st.et."\" /><CR><embed src=\"".st.et."\"<CR>width=\"".st.et."\" height=\"".st.et."\"<CR>controller=\"".st.et."\" autoplay=\"".st.et."\"<CR>scale=\"tofit\" cache=\"true\"<CR>pluginspage=\"http://www.apple.com/quicktime/download/\"<CR>/><CR></object><CR>".st.et
+exec "Snippet div <div ".st.et."><CR>".st.et."<CR></div><CR>".st.et
+exec "Snippet mailto <a href=\"mailto:".st.et."?subject=".st.et."\">".st.et."</a>".st.et
+exec "Snippet table <table border=\"".st.et."\"".st.et." cellpadding=\"".st.et."\"><CR><tr><th>".st.et."</th></tr><CR><tr><td>".st.et."</td></tr><CR></table>"
+exec "Snippet link <link rel=\"".st.et."\" href=\"".st.et."\" type=\"text/css\" media=\"".st.et."\" title=\"".st.et."\" charset=\"".st.et."\" />"
+exec "Snippet form <form action=\"".st.et."\" method=\"".st.et."\"><CR>".st.et."<CR><CR><p><input type=\"submit\" value=\"Continue &rarr;\" /></p><CR></form><CR>".st.et
+exec "Snippet ref <a href=\"".st.et."\">".st.et."</a>".st.et
+exec "Snippet h1 <h1 id=\"".st.et."\">".st.et."</h1>".st.et
+exec "Snippet input <input type=\"".st.et."\" name=\"".st.et."\" value=\"".st.et."\" ".st.et."/>".st.et
+exec "Snippet style <style type=\"text/css\" media=\"screen\"><CR>/* <![CDATA[ */<CR>".st.et."<CR>/* ]]> */<CR></style><CR>".st.et
+exec "Snippet base <base href=\"".st.et."\"".st.et." />".st.et
52 .vim/after/ftplugin/java_snippets.vim
@@ -0,0 +1,52 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+function! UpFirst()
+ return substitute(@z,'.','\u&','')
+endfunction
+
+function! JavaTestFileName(type)
+ let filepath = expand('%:p')
+ let filepath = substitute(filepath, '/','.','g')
+ let filepath = substitute(filepath, '^.\(:\\\)\?','','')
+ let filepath = substitute(filepath, '\','.','g')
+ let filepath = substitute(filepath, ' ','','g')
+ let filepath = substitute(filepath, '.*test.','','')
+ if a:type == 1
+ let filepath = substitute(filepath, '.[A-Za-z]*.java','','g')
+ elseif a:type == 2
+ let filepath = substitute(filepath, 'Tests.java','','')
+ elseif a:type == 3
+ let filepath = substitute(filepath, '.*\.\([A-Za-z]*\).java','\1','g')
+ elseif a:type == 4
+ let filepath = substitute(filepath, 'Tests.java','','')
+ let filepath = substitute(filepath, '.*\.\([A-Za-z]*\).java','\1','g')
+ elseif a:type == 5
+ let filepath = substitute(filepath, 'Tests.java','','')
+ let filepath = substitute(filepath, '.*\.\([A-Za-z]*\).java','\1','g')
+ let filepath = substitute(filepath, '.','\l&','')
+ endif
+
+ return filepath
+endfunction
+
+let st = g:snip_start_tag
+let et = g:snip_end_tag
+let cd = g:snip_elem_delim
+
+exec "Snippet method // {{{ ".st."method".et."<CR>/**<CR> * ".st.et."<CR> */<CR>public ".st."return".et." ".st."method".et."() {<CR>".st.et."}<CR>// }}}<CR>".st.et
+exec "Snippet jps private static final ".st."string".et." ".st.et." = \"".st.et."\";<CR>".st.et
+exec "Snippet jtc try {<CR>".st.et."<CR>} catch (".st.et." e) {<CR>".st.et."<CR>} finally {<CR>".st.et."<CR>}<CR>".st.et
+exec "Snippet jlog /** Logger for this class and subclasses. */<CR><CR>protected final Log log = LogFactory.getLog(getClass());<CR>".st.et
+exec "Snippet jpv private ".st."string".et." ".st.et.";<CR><CR>".st.et
+exec "Snippet bean // {{{ set".st."fieldName:UpFirst()".et."<CR>/**<CR> * Setter for ".st."fieldName".et.".<CR> * @param new".st."fieldName:UpFirst()".et." new value for ".st."fieldName".et."<CR> */<CR>public void set".st."fieldName:UpFirst()".et."(".st."String".et." new".st."fieldName:UpFirst()".et.") {<CR>".st."fieldName".et." = new".st."fieldName:UpFirst()".et.";<CR>}<CR>// }}}<CR><CR>// {{{ get".st."fieldName:UpFirst()".et."<CR>/**<CR> * Getter for ".st."fieldName".et.".<CR> * @return ".st."fieldName".et." */<CR>public ".st."String".et." get".st."fieldName:UpFirst()".et."() {<CR>return ".st."fieldName".et.";<CR>}<CR>// }}}<CR>".st.et
+exec "Snippet jwh while (".st.et.") { // ".st.et."<CR><CR>".st.et."<CR><CR>}<CR>".st.et
+exec "Snippet sout System.out.println(\"".st.et."\");".st.et
+exec "Snippet jtest package ".st."j:JavaTestFileName(1)".et."<CR><CR>import junit.framework.TestCase;<CR>import ".st."j:JavaTestFileName(2)".et.";<CR><CR>/**<CR> * ".st."j:JavaTestFileName(3)".et."<CR> *<CR> * @author ".st.et."<CR> * @since ".st.et."<CR> */<CR>public class ".st."j:JavaTestFileName(3)".et." extends TestCase {<CR><CR>private ".st."j:JavaTestFileName(4)".et." ".st."j:JavaTestFileName(5)".et.";<CR><CR>public ".st."j:JavaTestFileName(4)".et." get".st."j:JavaTestFileName(4)".et."() { return this.".st."j:JavaTestFileName(5)".et."; }<CR>public void set".st."j:JavaTestFileName(4)".et."(".st."j:JavaTestFileName(4)".et." ".st."j:JavaTestFileName(5)".et.") { this.".st."j:JavaTestFileName(5)".et." = ".st."j:JavaTestFileName(5)".et."; }<CR><CR>public void test".st.et."() {<CR>".st.et."<CR>}<CR>}<CR>".st.et
+exec "Snippet jif if (".st.et.") { // ".st.et."<CR>".st.et."<CR>}<CR>".st.et
+exec "Snippet jelse if (".st.et.") { // ".st.et."<CR><CR>".st.et."<CR><CR>} else { // ".st.et."<CR>".st.et."<CR>}<CR>".st.et
+exec "Snippet jpm /**<CR> * ".st.et."<CR> *<CR> * @param ".st.et." ".st.et."<CR> * ".st.et." ".st.et."<CR> */<CR>private ".st."void".et." ".st.et."(".st."String".et." ".st.et.") {<CR><CR>".st.et."<CR><CR>}<CR>".st.et
+exec "Snippet main public main static void main(String[] ars) {<CR>".st."\"System.exit(0)\"".et.";<CR>}<CR>".st.et
+exec "Snippet jpum /**<CR> * ".st.et."<CR> *<CR> * @param ".st.et." ".st.et."<CR> *".st.et." ".st.et."<CR> */<CR>public ".st."void".et." ".st.et."(".st."String".et." ".st.et.") {<CR><CR>".st.et."<CR><CR>}<CR>".st.et