Initial Commit

This commit is contained in:
2015-01-14 17:28:12 -06:00
commit 39327ef9ac
21 changed files with 3668 additions and 0 deletions

294
home/.vim/doc/gist-vim.txt Normal file
View File

@@ -0,0 +1,294 @@
*Gist.vim* Vimscript for creating gists (http://gist.github.com)
Usage |gist-vim-usage|
Tips |gist-vim-tips|
License |gist-vim-license|
Install |gist-vim-install|
Requirements |gist-vim-requirements|
Setup |gist-vim-setup|
FAQ |gist-vim-faq|
This is a vimscript for creating gists (http://gist.github.com)
For the latest version please see https://github.com/mattn/gist-vim.
==============================================================================
USAGE *:Gist* *gist-vim-usage*
- Post current buffer to gist, using default privacy option. >
:Gist
<
- Post selected text to gist, using default privacy option.
This applies to all permutations listed below (except multi). >
:'<,'>Gist
<
- Create a private gist. >
:Gist -p
<
- Create a public gist.
(Only relevant if you've set gists to be private by default.) >
:Gist -P
<
- Post whole text to gist as public.
This is only relevant if you've set gists to be private by default.
>
:Gist -P
<
- Create a gist anonymously. >
:Gist -a
<
- Create a gist with all open buffers. >
:Gist -m
<
- Edit the gist (you need to have opened the gist buffer first).
You can update the gist with the {:w} command within the gist buffer. >
:Gist -e
<
- Edit the gist with name "foo.js" (you need to have opened the gist buffer
first). >
:Gist -e foo.js
<
- Post/Edit with the description " (you need to have opened the gist buffer
first). >
:Gist -s something
:Gist -e -s something
<
- Delete the gist (you need to have opened the gist buffer first).
Password authentication is needed. >
:Gist -d
<
- Fork the gist (you need to have opened the gist buffer first).
Password authentication is needed. >
:Gist -f
<
- Star the gist (you need to have opened the gist buffer first).
Password authentication is needed.
>
:Gist +1
<
- Unstar the gist (you need to have opened the gist buffer first).
Password authentication is needed.
>
:Gist -1
<
- Get gist XXXXX. >
:Gist XXXXX
<
- Get gist XXXXX and add to clipboard. >
:Gist -c XXXXX
<
- List your public gists. >
:Gist -l
<
- List gists from user "mattn". >
:Gist -l mattn
<
- List everyone's gists. >
:Gist -la
<
- List gists from your starred gists.
>
:Gist -ls
<
==============================================================================
TIPS *gist-vim-tips*
If you set "g:gist_clip_command", gist.vim will copy the gist code with option
"-c".
- Mac: >
let g:gist_clip_command = 'pbcopy'
<
- Linux: >
let g:gist_clip_command = 'xclip -selection clipboard'
<
- Others (cygwin?): >
let g:gist_clip_command = 'putclip'
<
If you want to detect filetype from the filename: >
let g:gist_detect_filetype = 1
<
If you want to open the browser after the post: >
let g:gist_open_browser_after_post = 1
<
If you want to change the browser: >
let g:gist_browser_command = 'w3m %URL%'
<
or: >
let g:gist_browser_command = 'opera %URL% &'
<
On windows, this should work with your user settings.
If you want to show your private gists with ":Gist -l": >
let g:gist_show_privates = 1
<
If you want your gist to be private by default: >
let g:gist_post_private = 1
<
If you want to edit all files for gists containing more than one: >
let g:gist_get_multiplefile = 1
<
If you want to use on GitHub Enterprise: >
let g:gist_api_url = 'http://your-github-enterprise-domain/api/v3'
<
If you want to update a gist, embed >
GistID: xxxxx
>
in your local file, then call >
:Gist
>
If you want to update a gist when only |:w!|: >
" :w and :w! update a gist.
let g:gist_update_on_write = 1
" Only :w! updates a gist.
let g:gist_update_on_write = 2
>
All other values are treated as 1.
This variable's value is 1 by default.
==============================================================================
LICENSE *gist-vim-license*
Copyright 2010 by Yasuhiro Matsumoto
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
==============================================================================
INSTALL *gist-vim-install*
Copy following files into your plugin directory.
rtp:
- autoload/gist.vim
- plugin/gist.vim
If you want to uninstall gist.vim, remember to also remove `~/.gist-vim`.
You need to install webapi-vim also:
http://www.vim.org/scripts/script.php?script_id=4019
If you want to use latest one:
https://github.com/mattn/webapi-vim
==============================================================================
REQUIREMENTS *gist-vim-requirements*
- curl command (http://curl.haxx.se/)
- webapi-vim (https://github.com/mattn/webapi-vim)
- and, if you want to use your git profile, the git command-line client.
==============================================================================
SETUP *gist-vim-setup*
This plugin uses GitHub API v3. Setting value is stored in `~/.gist-vim`.
gist-vim have two ways to access APIs.
First, you need to set your GitHub username in global git config:
>
$ git config --global github.user Username
<
Then, gist.vim will ask for your password to create an authorization when you
first use it. The password is not stored and only the OAuth access token will
be kept for later use. You can revoke the token at any time from the list of
"Authorized applications" on GitHub's "Account Settings" page.
(https://github.com/settings/applications)
If you have two-factor authentication enabled on GitHub, you'll see the message
"Must specify two-factor authentication OTP code." In this case, you need to
create a "Personal Access Token" on GitHub's "Account Settings" page
(https://github.com/settings/applications) and place it in a file
named ~/.gist-vim like this:
>
token xxxxx
<
If you happen to have your password already written in ~/.gitconfig like
below:
>
[github]
password = xxxxx
<
Then, add following into your ~/.vimrc
>
let g:gist_use_password_in_gitconfig = 1
<
This is not secure at all, so strongly discouraged.
==============================================================================
FAQ *gist-vim-faq*
Q. :Gist give Forbidden error
A. Try to delete ~/.gist-vim. And authenticate again.
==============================================================================
THANKS *gist-vim-thanks*
AD7six
Bruno Bigras
c9s
Daniel Bretoi
Jeremy Michael Cantrell
Kien N
kongo2002
MATSUU Takuto
Matthew Weier O'Phinney
ornicar
Roland Schilter
steve
tyru
Will Gray
netj
vim:tw=78:ts=8:ft=help:norl:

View File

@@ -0,0 +1,260 @@
*recover.vim* Show differences for recovered files
Author: Christian Brabandt <cb@256bit.org>
Version: 0.18 Wed, 14 Aug 2013 22:39:13 +0200
Copyright: (c) 2009, 2010, 2011, 2012, 2013 by Christian Brabandt
The VIM LICENSE applies to recoverPlugin.vim and recoverPlugin.txt
(see |copyright|) except use recoverPlugin instead of "Vim".
NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK.
==============================================================================
1. Contents *RecoverPlugin*
1. Contents.....................................: |recoverPlugin|
2. recover Manual...............................: |recover-manual|
3. recover Feedback.............................: |recover-feedback|
4. recover History..............................: |recover-history|
==============================================================================
*RecoverPlugin-manual*
2. RecoverPlugin Manual *recover-manual*
Functionality
When using |recovery|, it is hard to tell, what has been changed between the
recovered file and the actual on disk version. The aim of this plugin is, to
have an easy way to see differences, between the recovered files and the files
stored on disk.
Therefore this plugin sets up an auto command, that will create a diff buffer
between the recovered file and the on-disk version of the same file. You can
easily see, what has been changed and save your recovered work back to the
file on disk.
By default this plugin is enabled. To disable it, use >
:RecoverPluginDisable
<
To enable this plugin again, use >
:RecoverPluginEnable
<
When you open a file and vim detects, that an |swap-file| already exists for a
buffer, the plugin presents the default Swap-Exists dialog from Vim adding one
additional option for Diffing (but leaves out the lengthy explanation about
handling Swapfiles that Vim by default shows): >
Found a swap file by the name "test/normal/.testfile.swp"
owned by: chrisbra dated: Wed Nov 28 16:26:42 2012
file name: ~chrisbra/code/git/vim/Recover/test/normal/testfile
modified: YES
user name: chrisbra host name: R500
process ID: 4878 [not existing]
While opening file "test/normal/testfile"
dated: Tue Nov 6 20:11:55 2012
Please choose:
D[i]ff, (O)pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete:
(Note, that additionally, it shows in the process ID row the name of the
process that has the process id or [not existing] if that process doesn't
exist.) Simply use the key, that is highlighted to chose the option. If you
press Ctrl-C, the default dialog of Vim will be shown.
If you have said 'Diff', the plugin opens a new vertical splitt buffer. On the
left side, you'll find the file as it is stored on disk and the right side
will contain your recovered version of the file (using the found swap file).
You can now use the |merge| commands to copy the contents to the buffer that
holds your recovered version. If you are finished, you can close the diff
version and close the window, by issuing |:diffoff!| and |:close| in the
window, that contains the on-disk version of the file. Be sure to save the
recovered version of you file and afterwards you can safely remove the swap
file.
*RecoverPluginFinish* *FinishRecovery*
In the recovered window, the command >
:FinishRecovery
<
deletes the swapfile closes the diff window and finishes everything up.
Alternatively you can also use the command >
:RecoveryPluginFinish
<
*RecoverPluginHelp*
The command >
:RecoverPluginHelp
<
show a small message, on what keys can be used to move to the next different
region and how to merge the changes from one windo into the other.
*RecovePlugin-config*
If you want Vim to automatically edit any file that is open in another Vim
instance but is unmodified there, you need to set the configuration variable:
g:RecoverPlugin_Edit_Unmodified to 1 like this in your |.vimrc| >
:let g:RecoverPlugin_Edit_Unmodified = 1
<
Note: This only works on Linux.
*RecoverPlugin-misc*
If your Vim was built with |+balloon_eval|, recover.vim will also set up an
balloon expression, that shows you, which buffer contains the recovered
version of your file and which buffer contains the unmodified on-disk version
of your file, if you move the mouse of the buffer. (See |balloon-eval|).
If you have setup your 'statusline', recover.vim will also inject some info
(which buffer contains the on-disk version and which buffer contains the
modified, recovered version). Additionally the buffer that is read-only, will
have a filename (|:f|) of something like 'original file (on disk-version)'. If
you want to save that version, use |:saveas|.
==============================================================================
3. Plugin Feedback *recover-feedback*
Feedback is always welcome. If you like the plugin, please rate it at the
vim-page:
http://www.vim.org/scripts/script.php?script_id=3068
You can also follow the development of the plugin at github:
http://github.com/chrisbra/Recover.vim
Please don't hesitate to report any bugs to the maintainer, mentioned in the
third line of this document.
==============================================================================
4. recover History *recover-history*
0.18: Aug 14, 2013 "{{{1
- fix issue 19 (https://github.com/chrisbra/Recover.vim/issues/19, by
replacing feedkeys("...\n") by feedkeys("...\<cr>", reported by vlmarek,
thanks!)
- fix issue 20 (https://github.com/chrisbra/Recover.vim/issues/20,
(let vim automatically edit a file, that is unmodified in another vim
instance, suggested by rking, thanks!)
- merge issue 21 (https://github.com/chrisbra/Recover.vim/pull/21, create more
usefule README.md file, contribted by Shubham Rao, thanks!)
- merge issue 22 (https://github.com/chrisbra/Recover.vim/pull/22, delete BufReadPost autocommand
contributed by Marcin Szamotulski, thanks!)
0.17: Feb 16, 2013 "{{{1
- fix issue 17 (https://github.com/chrisbra/Recover.vim/issues/17 patch by
lyokha, thanks!)
- Use default key combinations in the dialog of the normal Vim dialog (adding
only the Diff option)
- Make sure, the process ID is shown
0.16: Nov 21, 2012 "{{{1
- Recovery did not work, when original file did not exists (issue 11
https://github.com/chrisbra/Recover.vim/issues/11
reported by Rking, thanks!)
- By default, delete swapfile, if no differences found (issue 15
https://github.com/chrisbra/Recover.vim/issues/15
reported by Rking, thanks!)
- reset 'swapfile' option, so that Vim by default creates .swp files
(idea and patch by Marcin Szamotulski, thanks!)
- capture and display |E325| message (and also try to figure out the name of
the pid (issue 12 https://github.com/chrisbra/Recover.vim/issues/12)
0.15: Aug 20, 2012 "{{{1
- fix issue 5 (https://github.com/chrisbra/Recover.vim/issues/5 patch by
lyokha, thanks!)
- CheckSwapFileExists() hangs, when a swap file was not found, make sure,
s:Swapname() returns a valid file name
- fix issue 6 (https://github.com/chrisbra/Recover.vim/issues/6 patch by
lyokha, thanks!)
- Avoid recursive :redir call (https://github.com/chrisbra/Recover.vim/pull/8
patch by Ingo Karkat, thanks!)
- Do not set 'bexpr' for unrelated buffers (
https://github.com/chrisbra/Recover.vim/pull/9 patch by Ingo Karkat,
thanks!)
- Avoid aborting the diff (https://github.com/chrisbra/Recover.vim/pull/10
patch by Ingo Karkat, thanks!)
- Allow to directly delete the swapfile (
https://github.com/chrisbra/Recover.vim/issues/7 suggested by jgandt,
thanks!)
0.14: Mar 31, 2012 "{{{1
- still some problems with issue #4
0.13: Mar 29, 2012 "{{{1
- fix issue 3 (https://github.com/chrisbra/Recover.vim/issues/3 reported by
lyokha, thanks!)
- Ask the user to delete the swapfile (issue
https://github.com/chrisbra/Recover.vim/issues/4 reported by lyokha,
thanks!)
0.12: Mar 25, 2012 "{{{1
- minor documentation update
- delete swap files, if no difference found (issue
https://github.com/chrisbra/Recover.vim/issues/1 reported by y, thanks!)
- fix some small issues, that prevented the development versions from working
(https://github.com/chrisbra/Recover.vim/issues/2 reported by Rahul Kumar,
thanks!)
0.11: Oct 19, 2010 "{{{1
- use confirm() instead of inputdialog() (suggested by D.Fishburn, thanks!)
0.9: Jun 02, 2010 "{{{1
- use feedkeys(...,'t') instead of feedkeys() (this works more reliable,
although it pollutes the history), so delete those spurious history entries
- |RecoverPluginHelp| shows a small help message, about diff commands
(suggested by David Fishburn, thanks!)
- |RecoverPluginFinish| is a shortcut for |FinishRecovery|
0.8: Jun 01, 2010 "{{{1
- make :FinishRecovery more robust
0.7: Jun 01, 2010 "{{{1
- |FinishRecovery| closes the diff-window and cleans everything up (suggestion
by David Fishburn)
- DeleteSwapFile is not needed anymore
0.6: May 31, 2010 "{{{1
- |recover-feedback|
- Ask to really open a diff buffer for a file (suggestion: David Fishburn,
thanks!)
- DeleteSwapFile to delete the swap file, that was used to create the diff
buffer
- change feedkeys(...,'t') to feedkeys('..') so that not every command appears
in the history.
0.5: May 04, 2010 "{{{1
- 0r command in recover plugin adds extra \n
Patch by Sergey Khorev (Thanks!)
- generate help file with 'et' set, so the README at github looks prettier
0.4: Apr 26, 2010 "{{{1
- handle Windows and Unix path differently
- Code cleanup
- Enabled |:GLVS|
0.3: Apr 20, 2010 "{{{1
- first public verion
- put plugin on a public repository
(http://github.com/chrisbra/Recover.vim)
0.2: Apr 18, 2010 "{{{1
- Internal version, some cleanup, bugfixes for windows
0.1: Apr 17, 2010 "{{{1
- Internal version, First working version, using simple commands
==============================================================================
Modeline: "{{{1
vim:tw=78:ts=8:ft=help:et:fdm=marker:fdl=0:norl

40
home/.vim/doc/tags Normal file
View File

@@ -0,0 +1,40 @@
FinishRecovery recoverPlugin.txt /*FinishRecovery*
RecovePlugin-config recoverPlugin.txt /*RecovePlugin-config*
RecoverPlugin recoverPlugin.txt /*RecoverPlugin*
RecoverPlugin-manual recoverPlugin.txt /*RecoverPlugin-manual*
RecoverPlugin-misc recoverPlugin.txt /*RecoverPlugin-misc*
RecoverPluginFinish recoverPlugin.txt /*RecoverPluginFinish*
RecoverPluginHelp recoverPlugin.txt /*RecoverPluginHelp*
bufexplorer bufexplorer.txt /*bufexplorer*
bufexplorer-changelog bufexplorer.txt /*bufexplorer-changelog*
bufexplorer-copyright bufexplorer.txt /*bufexplorer-copyright*
bufexplorer-credits bufexplorer.txt /*bufexplorer-credits*
bufexplorer-customization bufexplorer.txt /*bufexplorer-customization*
bufexplorer-installation bufexplorer.txt /*bufexplorer-installation*
bufexplorer-todo bufexplorer.txt /*bufexplorer-todo*
bufexplorer-usage bufexplorer.txt /*bufexplorer-usage*
bufexplorer-windowlayout bufexplorer.txt /*bufexplorer-windowlayout*
bufexplorer.txt bufexplorer.txt /*bufexplorer.txt*
buffer-explorer bufexplorer.txt /*buffer-explorer*
g:bufExplorerChgWin bufexplorer.txt /*g:bufExplorerChgWin*
g:bufExplorerDefaultHelp bufexplorer.txt /*g:bufExplorerDefaultHelp*
g:bufExplorerDetailedHelp bufexplorer.txt /*g:bufExplorerDetailedHelp*
g:bufExplorerDisableDefaultKeyMapping bufexplorer.txt /*g:bufExplorerDisableDefaultKeyMapping*
g:bufExplorerFindActive bufexplorer.txt /*g:bufExplorerFindActive*
g:bufExplorerFuncRef bufexplorer.txt /*g:bufExplorerFuncRef*
g:bufExplorerReverseSort bufexplorer.txt /*g:bufExplorerReverseSort*
g:bufExplorerShowDirectories bufexplorer.txt /*g:bufExplorerShowDirectories*
g:bufExplorerShowNoName bufexplorer.txt /*g:bufExplorerShowNoName*
g:bufExplorerShowRelativePath bufexplorer.txt /*g:bufExplorerShowRelativePath*
g:bufExplorerShowTabBuffer bufexplorer.txt /*g:bufExplorerShowTabBuffer*
g:bufExplorerShowUnlisted bufexplorer.txt /*g:bufExplorerShowUnlisted*
g:bufExplorerSortBy bufexplorer.txt /*g:bufExplorerSortBy*
g:bufExplorerSplitBelow bufexplorer.txt /*g:bufExplorerSplitBelow*
g:bufExplorerSplitHorzSize bufexplorer.txt /*g:bufExplorerSplitHorzSize*
g:bufExplorerSplitOutPathName bufexplorer.txt /*g:bufExplorerSplitOutPathName*
g:bufExplorerSplitRight bufexplorer.txt /*g:bufExplorerSplitRight*
g:bufExplorerSplitVertSize bufexplorer.txt /*g:bufExplorerSplitVertSize*
recover-feedback recoverPlugin.txt /*recover-feedback*
recover-history recoverPlugin.txt /*recover-history*
recover-manual recoverPlugin.txt /*recover-manual*
recover.vim recoverPlugin.txt /*recover.vim*