I'll assume you are on Linux or Mac OSX. For Windows, replace ~/.vim/ with $HOME\vimfiles\ and forward slashes with backward slashes.
Vim plugins are collections of specialized scripts that you are supposed to put in "standard" locations under your ~/.vim/ directory. Syntax scripts go into ~/.vim/syntax/, plugin scripts go into ~/.vim/plugin, documentation goes into ~/.vim/doc/ and so on. That design can lead to a messy config where it quickly becomes hard to manage your plugins.
This is not the place to explain the technicalities behind Pathogen but the basic concept is quite straightforward: each plugin lives in its own directory under ~/.vim/bundle/, where each directory simulates the standard structure of your ~/.vim/ directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| m () { | |
| echo "$0: $@" | |
| } | |
| e () { | |
| echo "Error: $0: $@" | |
| exit 1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # compositing - enable/disable compositing (Xorg + compton) | |
| # Simple compton wrapper script (default values in brackets) | |
| # | |
| # https://github.com/netzverweigerer | |
| # opacity of window borders (100) | |
| border_opacity=80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # xinitrc - @netzverweigerer (Github/Twitter) | |
| # xmessage wrapper script, stops annoying xmessage popups | |
| alias xmessage="$HOME/bin/xmessage" | |
| # terminal enthuasiast friendly keyboard repeat rate | |
| xset r rate 220 15 | |
| # enable X11 terminate keyboard shortcut (Ctrl-Alt-Backspace) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # simple compton startup script - <armin@mutt.email> | |
| killall -9 compton | |
| compton_top_offset="-10" | |
| compton_left_offset="-10" | |
| compton_opacity_borders="1.0" | |
| compton_opacity_shadows="0.5" | |
| compton_radius="10" | |
| compton -t "$compton_top_offset" -l "$compton_left_offset" --xinerama-shadow-crop --vsync opengl -e "$compton_opacity_borders" -o "$compton_opacity_shadows" -r "$compton_radius" -D 3 -m 0.95 -C -G --dbe --use-ewmh-active-win -f --no-fading-openclose -c --shadow-exclude="name = 'XOSD'" & | |
| # compton --backend glx --vsync opengl-swc -t "$compton_top_offset" -l "$compton_left_offset" --xinerama-shadow-crop -e "$compton_opacity_borders" -o "$compton_opacity_shadows" -r "$compton_radius" -D 3 -m 0.95 -C -G --dbe --use-ewmh-active-win -f --no-fading-openclose -c --shadow-exclude="name = 'XOSD'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, re | |
| class TerminalController: | |
| """ | |
| A class that can be used to portably generate formatted output to | |
| a terminal. | |
| `TerminalController` defines a set of instance variables whose | |
| values are initialized to the control sequence necessary to | |
| perform a given action. These can be simply included in normal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python2 | |
| def input_to_words(fh,col_width): | |
| for line in fh: | |
| for word in line.split(' '): | |
| w = word.strip() | |
| if len(w) > col_width: | |
| raise Exception, "%r is longer that column width" % w | |
| yield w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| ############################################################################### | |
| # Lukas Pustina | |
| # This script takes a dictionary (one word by line) as well as multiple text | |
| # files and checks how many words of these text files are part of the | |
| # dictionary. | |
| # | |
| # Primary use is to analyse the quality of tesseract. | |
| ############################################################################### | |
| # Example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SimpleHash { | |
| private: | |
| // data | |
| string * m_pData; | |
| int * counter; | |
| int maxIndex; | |
| int numberOfWords; |