Ⅰ. 插件描述
Useful dotfiles and accompanying directoriesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mieubrisse/dotfiles-come-back-be-here'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mieubrisse/dotfiles-come-back-be-here'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mieubrisse/dotfiles-come-back-be-here'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mieubrisse/dotfiles
Ⅳ. 文档说明
# Mieubrisse's Dotfiles Repo
Installation
TODO: Deploy everything on this machine with Ansible instead
- Clone this repo with
git clone --recursive(it has submodules) - Run
init.py(which should be idempotent)
Features
Commad Line Stuff
- "clip FILE" copies the file to the system clipboard (Mac only)
- "cd NUM.." goes up NUM directories, a la "cd 2.."
- Piping input to "filter" will let the user selectively filter which lines are passed forward. Supports ranges and disjoint sequences, so entering "4,7,1-3" will pass forward (in order) lines 4, 7, 1, 2, and 3
- "ff INPUT" is a shortening of "find -iname '*INPUT*'"
- "rgr INPUT" is a shortening of "grep -ir 'INPUT' *"
Git Stuff
- ga = add
- gcmm MESSAGE = commit with MESSAGE
- gg MESSAGE = add and commit all modified files (will not add untracked files)
- gs = status
- gb = branch
- gco = checkout
- gcl = git clone
- gl = a colored, succinct graph of the commit history
- gpll = pull
- gf = fetch
- gpsh = git push which will create the remote branch if it doesn't exist
- gprune-local = delete local branches which have been merged in the upstream (useful for deleting branches you're done with)
- gd = diff files not staged for commit
- gdc = diff files staged for commit
- Branch names should autocomplete
Vim Stuff
- J and K will page down and up respectively
- Pressing + with text highlighted in visual mode will copy it to the system clipboard
- +% will copy the entire file to the system clipboard
- Undo history will be kept even after you close a file