svn>> v>> 返回
项目作者: mer1in

项目描述 :
cmd line tools
高级语言: Vim script
项目地址: git://github.com/mer1in/v.git
创建时间: 2017-12-19T08:43:10Z
项目社区:https://github.com/mer1in/v

开源协议:GNU General Public License v3.0

下载


cmd line tools

ctrl+c ctrl+v

(cd /tmp && git clone https://github.com/mer1in/v && cd v && ./install.sh)

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://github.com/mer1in/v/raw/master/install.ps1'))

v
-
open file my-file @line 122

v my-file:122:

gred [—help]

grep and edit

gred 'sed .*A'

  1. 1:./gred:26: (sed -e 's,\x1B\[[0-9;]*[a-zA-Z],,g' -e 's,:.*,,'|sort -u)`"
  2. 2:./README.md:12:> `gred 'sed .*A'`
  3. 3:./README.md:16:2:./gred:26: (sed -e 's,\x1B\[[0-9;]*[a-zA-Z],,g' -e 's,:.*,,'|sort -u)`"
  4. 4:./svd:3:[ -z "$1" ] && { $0 -l|sed "s/^[ARM]\s*//" ; exit ; }
  5. 5:./v:6: [ -z "`echo $arg|sed 's^+/.*^^'`" ] && SEARCH=$arg
  6. 6:./v:8: [ -z "$SEARCH" ] && SEARCH="`echo $arg|grep ':'|sed 's/[^:]*:\([0-9]*\).*/\1/'`" && [ -n "$SEARCH" ] && SEARCH="+$SEARCH"
  7. 4 files found

3
opens file README.md on line 16 with expr sed .*A in search buffer

svd [—help]

simplify svn diff:

  1. svd [-c|-l|-a|-r|<filename>]
  2. no params - list of changed files
  3. -l - list of changed files with status
  4. -c - colordiff all changes
  5. <filename> - vimdiff changed file
  6. -a - vimdiff all changed files
  7. -r - revert all changes

cdr

go to the project root

install.sh

update && set aliases in ~/.bashrc

todo

gred

  • choose multiple files to open

svd
c support git =use fugitive

vimrc

  • load first cmd on open from ~/.vimrc_run_cmds
  • get g:ext_groups from gred - dont duplicate
  • windows support