vimdb 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gemspec CHANGED
@@ -14,8 +14,9 @@ Gem::Specification.new do |s|
14
14
  s.executables = %w(vimdb)
15
15
  s.add_dependency 'thor', '~> 0.14.6'
16
16
  s.add_dependency 'hirb', '~> 0.5.0'
17
- s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc,md} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
- s.files += Dir.glob(['man/*', '*.gemspec'])
17
+ s.add_development_dependency 'minitest', '~> 2.5.1'
18
+ s.files = Dir.glob(%w[{lib,spec}/**/*.rb bin/* [A-Z]*.{txt,rdoc,md} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
19
+ s.files += Dir.glob(['spec/fixtures/*', 'spec/.vimdbrc'])
19
20
  s.extra_rdoc_files = ["README.md", "LICENSE.txt"]
20
21
  s.license = 'MIT'
21
22
  end
@@ -1,2 +1,7 @@
1
+ = 0.2.0
2
+ * Several bug fixes
3
+ * Add support for commands
4
+ * Add tests
5
+
1
6
  = 0.1.0
2
7
  * Finally a release!
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  Description
2
2
  ===========
3
3
 
4
- Improve your knowledge of vim by tabularizing vim items: keybindings, options and more. This allows for
5
- precise searching of items. Keys can be searched by keystroke, mode, description or where they came
6
- from. This gem creates a vimdb database, ~/.vimdb.pstore, from your vim documentation. Tested with
7
- vim >= 7.2 on a mac.
4
+ Improve your knowledge of vim by precise searching of vim items: keybindings, options and commands.
5
+ For example, keys can be searched by keystroke, mode, description or where they came from. This gem
6
+ creates a vimdb database, ~/.vimdb.pstore, from your vim documentation. Tested with vim >= 7.2 on a
7
+ mac. Works only on ruby 1.9.x.
8
8
 
9
9
  Usage
10
10
  =====
@@ -37,8 +37,8 @@ Usage
37
37
  # List keys I've defined in vimrc
38
38
  $ vimdb keys user -f=from
39
39
 
40
- # Plugins are assumed to be in ~/.vim/plugins/ directory
41
- # Change with Vimdb::Keys.config[:plugins_dir]
40
+ # Plugins are assumed to be in ~/.vim/bundle/ i.e. for pathogen
41
+ # Change with Vimdb.plugins_dir
42
42
  # List keys from my plugins
43
43
  $ vimdb keys plugin -f=from
44
44
 
@@ -51,6 +51,9 @@ Usage
51
51
  # List options that contain window in description
52
52
  $ vimdb opts window -f=desc
53
53
 
54
+ # List commands about buffers
55
+ $ vimdb commands buffer -f=desc
56
+
54
57
  # Info about how vim items were made
55
58
  $ vimdb info keys
56
59
  $ vimdb info options
@@ -84,10 +87,15 @@ Motivation
84
87
 
85
88
  Wanted to learn faster than :help would let me.
86
89
 
90
+ Contributing
91
+ ============
92
+ [See here](http://tagaholic.me/contributing.html)
93
+
87
94
  Todo
88
95
  ====
89
96
 
90
- * Tests!
91
- * Add support for more vim items - commands, variables, functions
97
+ * Fix test coupling
98
+ * More tests!
92
99
  * Fix keys - index.txt edge cases
100
+ * Add support for more vim items - variables, functions
93
101
  * Considering user annotation for vim items
data/Rakefile CHANGED
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  desc 'Run tests'
31
31
  task :test do |t|
32
- sh 'bacon -q -Ilib -I. test/*_test.rb'
32
+ sh 'testrb spec/*_spec.rb'
33
33
  end
34
34
 
35
35
  task :default => :test
@@ -3,11 +3,11 @@ module Vimdb
3
3
  autoload :User, 'vimdb/user'
4
4
  autoload :DB, 'vimdb/db'
5
5
  autoload :Item, 'vimdb/item'
6
- autoload :Keys, 'vimdb/keys'
7
6
 
8
- class << self; attr_accessor :default_item, :vim; end
9
- self.default_item = ENV['VIMDB_ITEM'] || 'keys'
7
+ class << self; attr_accessor :default_item, :vim, :plugins_dir; end
8
+ self.default_item = 'keys'
10
9
  self.vim = 'vim'
10
+ self.plugins_dir = 'bundle'
11
11
 
12
12
  def self.user(item_name = nil, db = DB.new)
13
13
  @user ||= User.new(item(item_name), db)
@@ -0,0 +1,70 @@
1
+ class Vimdb::Commands < Vimdb::Item
2
+ def initialize
3
+ @plugins_dir = Vimdb.plugins_dir
4
+ end
5
+
6
+ def create
7
+ cmds = parse_index_file create_index_file
8
+ cmds + parse_command_file(create_command_file)
9
+ end
10
+
11
+ def create_index_file
12
+ tempfile(:commands_index) do |file|
13
+ vim 'silent help index.txt', "silent! w! #{file}"
14
+ end
15
+ end
16
+
17
+ def parse_index_file(file)
18
+ lines = File.read(file)[/={10,}\n5. EX commands.*/m].split("\n")
19
+
20
+ cmds = []
21
+ lines.each do |line|
22
+ if line =~ /^(\S+)\t+(\S+)\t+([^\t]+)$/
23
+ cmd = { name: $2, tag: $1, desc: $3, from: 'default' }
24
+ cmd[:name].sub!(/^:/, '')
25
+ if cmd[:name][/^(.*)\[([a-z]+)\]$/]
26
+ cmd[:alias] = $1
27
+ cmd[:name] = $1 + $2
28
+ end
29
+ cmds << cmd
30
+ elsif line =~ /^\t+([^\t]+)$/
31
+ cmds[-1][:desc] << ' ' + $1
32
+ end
33
+ end
34
+ cmds
35
+ end
36
+
37
+ def create_command_file
38
+ tempfile(:commands_command) do |file|
39
+ vim "redir! > #{file}", 'exe "silent! verbose command"', 'redir END'
40
+ end
41
+ end
42
+
43
+ def parse_command_file(file)
44
+ lines = File.read(file).strip.split("\n")
45
+ completions = Regexp.union('dir', 'file', 'buffer', 'shellcmd', 'customlist')
46
+
47
+ lines.slice_before {|e| e !~ /Last set/ }.map do |arr|
48
+ cmd = {}
49
+
50
+ cmd[:file] = arr[1].to_s[%r{Last set from (\S+)}, 1] or next
51
+ cmd[:from] = cmd[:file].to_s[%r{/#{@plugins_dir}/([^/]+)\S+}, 1] || 'user'
52
+ cmd[:from] << ' plugin' if cmd[:from] != 'user'
53
+ cmd[:name] = arr[0][/^(?:[!b" ]+)(\S+)/, 1]
54
+ cmd[:desc] = arr[0][/^(?:[!b" ]+)\S+\s*(.*)$/, 1]
55
+ if cmd[:desc][/^(\*|\+|\?|\d)\s+(\dc?|%|\.)?\s*(#{completions})?\s*(.*)/]
56
+ cmd[:args] = $1
57
+ cmd[:desc] = $4
58
+ end
59
+ cmd
60
+ end.compact
61
+ end
62
+
63
+ def display_fields
64
+ [:name, :alias, :from, :desc]
65
+ end
66
+
67
+ def info
68
+ "Created using index.txt and :command"
69
+ end
70
+ end
@@ -3,7 +3,7 @@ require 'pstore'
3
3
  module Vimdb
4
4
  class DB
5
5
  attr_accessor :file
6
- def initialize(file = Dir.home + '/.vimdb.pstore')
6
+ def initialize(file = ENV['VIMDB_DB'] || Dir.home + '/.vimdb.pstore')
7
7
  @file = file
8
8
  @db = PStore.new(@file)
9
9
  end
@@ -1,16 +1,12 @@
1
+ require 'tempfile'
2
+
1
3
  module Vimdb
2
4
  class Item
3
5
  def self.inherited(mod)
4
6
  (@descendants ||= []) << mod
5
7
  end
6
8
 
7
- def self.load_item(name)
8
- require "vimdb/#{name}"
9
- rescue LoadError
10
- end
11
-
12
9
  def self.instance(name)
13
- load_item(name)
14
10
  item = @descendants.find {|e| e.item_name == name } or
15
11
  abort "Item '#{name}' not found"
16
12
  item.new
@@ -20,6 +16,10 @@ module Vimdb
20
16
  name[/\w+$/].downcase
21
17
  end
22
18
 
19
+ def self.all
20
+ @descendants.map(&:item_name)
21
+ end
22
+
23
23
  def search(items, query, options = {})
24
24
  if query
25
25
  query = Regexp.escape(query) unless options[:regexp]
@@ -51,5 +51,21 @@ module Vimdb
51
51
  def vim(*cmds)
52
52
  system %[#{Vimdb.vim} -c 'colorscheme default | #{cmds.join(' | ')} | qa']
53
53
  end
54
+
55
+ if ENV['VIMDB_FIXTURE_DIR']
56
+ def tempfile(name)
57
+ File.join ENV['VIMDB_FIXTURE_DIR'], name.to_s
58
+ end
59
+ else
60
+ def tempfile(name)
61
+ file = Tempfile.new(Time.now.to_i.to_s).path
62
+ yield(file)
63
+ file
64
+ end
65
+ end
54
66
  end
55
67
  end
68
+
69
+ require 'vimdb/keys'
70
+ require 'vimdb/options'
71
+ require 'vimdb/commands'
@@ -1,16 +1,13 @@
1
- require 'tempfile'
2
-
3
1
  class Vimdb::Keys < Vimdb::Item
4
2
  class << self; attr_accessor :config end
5
3
  self.config = {
6
- plugins_dir: 'plugins',
7
4
  modifiers: {'<Esc>' => 'E'},
8
5
  mode_map: {'!' => 'ci', 'v' => 'vs', 'x' => 'v', 'l' => 'ci'},
9
6
  }
10
7
 
11
8
  def initialize
12
9
  @modifiers, @mode_map = self.class.config.values_at(:modifiers, :mode_map)
13
- @plugins_dir = self.class.config[:plugins_dir]
10
+ @plugins_dir = Vimdb.plugins_dir
14
11
  end
15
12
 
16
13
  def create
@@ -41,17 +38,18 @@ class Vimdb::Keys < Vimdb::Item
41
38
  private
42
39
 
43
40
  def get_leader
44
- file = Tempfile.new('vim-leader').path
45
- leader_cmd = %[silent! echo exists("mapleader") ? mapleader : ""]
46
- vim "redir! > #{file}", leader_cmd, 'redir END'
41
+ file = tempfile(:keys_leader) do |file|
42
+ leader_cmd = %[silent! echo exists("mapleader") ? mapleader : ""]
43
+ vim "redir! > #{file}", leader_cmd, 'redir END'
44
+ end
47
45
  leader = File.readlines(file).last.chomp
48
46
  {' ' => '<Space>', '' => '\\'}[leader] || leader
49
47
  end
50
48
 
51
49
  def create_index_file
52
- file = Tempfile.new('vim-index').path
53
- vim 'silent help index.txt', "silent! w! #{file}"
54
- file
50
+ tempfile(:keys_index) do |file|
51
+ vim 'silent help index.txt', "silent! w! #{file}"
52
+ end
55
53
  end
56
54
 
57
55
  def parse_index_file(file)
@@ -89,13 +87,14 @@ class Vimdb::Keys < Vimdb::Item
89
87
  end
90
88
 
91
89
  def translate_index_key(key)
92
- key.gsub(/CTRL-([A-Z])/) {|s| "C-#{$1.downcase}" }
90
+ key.gsub(/CTRL-(\S)/) {|s| "C-#{$1.downcase}" }
93
91
  end
94
92
 
95
93
  def create_map_file
96
- file = Tempfile.new('vim-map').path
97
- vim "redir! > #{file}", "silent! verbose map", 'redir END'
98
- file
94
+ tempfile(:keys_map) do |file|
95
+ vim "redir! > #{file}", "silent! verbose map", "silent! verbose map!",
96
+ 'redir END'
97
+ end
99
98
  end
100
99
 
101
100
  def parse_map_file(file)
@@ -8,16 +8,14 @@ class Vimdb::Options < Vimdb::Item
8
8
  end
9
9
 
10
10
  def create
11
- file = '.vimdb.temp'
12
- # TODO: tempfile not working
13
- #file = Tempfile.new('vim-options').path
14
- vim 'silent help option-list', 'exe "normal 2_y}"', 'new', 'exe "normal p"',
15
- "silent! w! #{file}"
11
+ file = tempfile(:options_help) do |file|
12
+ vim 'silent help option-list', 'exe "normal 2_y}"', 'new',
13
+ 'exe "normal p"', "silent! w! #{file}"
14
+ end
16
15
 
17
16
  opts = File.read(file).scan(/^'(\S+)'\s*('\S*')?\s*(.*$)/).map do |line|
18
17
  { name: line[0], alias: line[1] ? line[1][1..-2] : '', desc: line[2] }
19
18
  end
20
- File.unlink file
21
19
  opts
22
20
  end
23
21
  end
@@ -3,7 +3,7 @@ require 'hirb'
3
3
 
4
4
  class Vimdb::Runner < Thor
5
5
  def self.start(*args)
6
- rc = ENV['VIMDBRC'] || '~/.vimdbrc'
6
+ rc = ENV['VIMDB_RC'] || '~/.vimdbrc'
7
7
  begin
8
8
  load(rc) if File.exists?(File.expand_path(rc))
9
9
  rescue StandardError, SyntaxError, LoadError => err
@@ -26,6 +26,7 @@ class Vimdb::Runner < Thor
26
26
  method_option :mode, :type => :string, :desc => 'search by mode, multiple modes are ORed', :aliases => '-m'
27
27
  desc 'keys [QUERY]', 'List vim keys'
28
28
  def keys(query = nil)
29
+ Vimdb.item('keys')
29
30
  search_item(query)
30
31
  end
31
32
 
@@ -37,6 +38,14 @@ class Vimdb::Runner < Thor
37
38
  search_item(query)
38
39
  end
39
40
 
41
+ common_options
42
+ method_option :field, :default => 'name', :desc => 'field to query', :aliases => '-f'
43
+ desc 'commands [QUERY]', 'List vim commands'
44
+ def commands(query = nil)
45
+ Vimdb.item('commands')
46
+ search_item(query)
47
+ end
48
+
40
49
  desc 'info', 'Prints info about an item'
41
50
  def info(item = nil)
42
51
  puts Vimdb.item(item).info
@@ -1,3 +1,3 @@
1
1
  module Vimdb
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -0,0 +1 @@
1
+ Vimdb.plugins_dir = 'plugins'
@@ -0,0 +1,48 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/helper')
2
+
3
+ describe "vimdb commands" do
4
+ it "lists all commands by default" do
5
+ vimdb 'commands'
6
+ stdout.must_match /643 rows/
7
+ end
8
+
9
+ it "searches :name field by default" do
10
+ vimdb 'commands', 'bufd'
11
+ stdout.must_match /1 row/
12
+ end
13
+
14
+ it 'lists command names without symbol' do
15
+ vimdb 'commands', 'bad'
16
+ stdout.must_include <<-STR
17
+ | badd | bad | default | add buffer to the buffer list |
18
+ STR
19
+ end
20
+
21
+ it "lists command name without alias" do
22
+ vimdb 'commands', 'bufd'
23
+ stdout.must_include <<-STR
24
+ | bufdo | | default | execute command in each listed buffer |
25
+ STR
26
+ end
27
+
28
+ it 'lists multi-line index commands correctly' do
29
+ vimdb 'commands', 'wp'
30
+ stdout.must_include <<-STR
31
+ | wprevious | wp | default | write to a file and go to previous file in argument list |
32
+ STR
33
+ end
34
+
35
+ it "lists user-defined commands correctly" do
36
+ vimdb 'commands', 'GitGrep'
37
+ stdout.must_include <<-STR
38
+ | GitGrep | | user | call GitGrep(<q-args>) |
39
+ STR
40
+ end
41
+
42
+ it "lists plugin commands correctly" do
43
+ vimdb 'commands', 'Gist'
44
+ stdout.must_include <<-STR
45
+ | Gist | | gist-vim plugin | :call Gist(<line1>, <line2>, <f-args>) |
46
+ STR
47
+ end
48
+ end
@@ -0,0 +1 @@
1
+ minitest ~>2.5.1
@@ -0,0 +1,257 @@
1
+
2
+
3
+ Name Args Range Complete Definition
4
+ ! b Gblame * 0 :execute s:Blame(<bang>0,<line1>,<line2>,<count>,[<f-args>])
5
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
6
+ ! b Gbrowse ? 0c customlist :execute s:Browse(<bang>0,<line1>,<count>,<f-args>)
7
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
8
+ ! b Gcd ? customlist :cd<bang> `=s:repo().bare() ? s:repo().dir(<q-args>) : s:repo().tree(<q-args>)`
9
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
10
+ b Gcommit ? customlist :execute s:Commit(<q-args>)
11
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
12
+ ! b Gdiff ? customlist :execute s:Diff(<bang>0,<f-args>)
13
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
14
+ ! b Ge ? customlist :execute s:Edit('edit<bang>',0,<f-args>)
15
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
16
+ ! b Gedit ? customlist :execute s:Edit('edit<bang>',0,<f-args>)
17
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
18
+ ! b Ggrep ? customlist :execute s:Grep(<bang>0,<q-args>)
19
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
20
+ ! b Git ? customlist :execute s:Git(<bang>0,<q-args>)
21
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
22
+ ! b Glcd ? customlist :lcd<bang> `=s:repo().bare() ? s:repo().dir(<q-args>) : s:repo().tree(<q-args>)`
23
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
24
+ ! b Glog * customlist :execute s:Log('grep<bang>',<f-args>)
25
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
26
+ ! b Gmove 1 customlist :execute s:Move(<bang>0,<q-args>)
27
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
28
+ ! b Gpedit ? customlist :execute s:Edit('pedit',<bang>0,<f-args>)
29
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
30
+ ! b Gread ? 0c customlist :execute s:Edit((!<count> && <line1> ? '' : <count>).'read',<bang>0,<f-args>)
31
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
32
+ ! b Gremove 0 :execute s:Remove(<bang>0)
33
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
34
+ b Gsdiff ? customlist :execute s:Diff(1,<f-args>)
35
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
36
+ ! b Gsplit ? customlist :execute s:Edit('split',<bang>0,<f-args>)
37
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
38
+ b Gstatus 0 :execute s:Status()
39
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
40
+ ! b Gtabedit ? customlist :execute s:Edit('tabedit',<bang>0,<f-args>)
41
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
42
+ b Gvdiff ? customlist :execute s:Diff(0,<f-args>)
43
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
44
+ ! b Gvsplit ? customlist :execute s:Edit('vsplit',<bang>0,<f-args>)
45
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
46
+ ! b Gw ? customlist :execute s:Write(<bang>0,<f-args>)
47
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
48
+ ! b Gwq ? customlist :execute s:Wq(<bang>0,<f-args>)
49
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
50
+ ! b Gwrite ? customlist :execute s:Write(<bang>0,<f-args>)
51
+ Last set from ~/code/fork/vimfiles/plugins/vim-fugitive/plugin/fugitive.vim
52
+ Ack * file call Ack(<q-args>)
53
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
54
+ ! AddTabularPattern + call AddTabularPattern(<q-args>, <bang>0)
55
+ Last set from ~/code/fork/vimfiles/plugins/tabular/plugin/Tabular.vim
56
+ ! AddTabularPipeline + call AddTabularPipeline(<q-args>, <bang>0)
57
+ Last set from ~/code/fork/vimfiles/plugins/tabular/plugin/Tabular.vim
58
+ CommandT ? dir call <SNR>20_CommandTShowFileFinder(<q-args>)
59
+ Last set from ~/code/fork/vimfiles/plugins/command-t/plugin/command-t.vim
60
+ CommandTBuffer 0 call <SNR>20_CommandTShowBufferFinder()
61
+ Last set from ~/code/fork/vimfiles/plugins/command-t/plugin/command-t.vim
62
+ CommandTFlush 0 call <SNR>20_CommandTFlush()
63
+ Last set from ~/code/fork/vimfiles/plugins/command-t/plugin/command-t.vim
64
+ ConqueTerm + shellcmd call conque_term#open(<q-args>)
65
+ Last set from ~/code/fork/vimfiles/plugins/vim-conque/plugin/conque_term.vim
66
+ ConqueTermSplit + shellcmd call conque_term#open(<q-args>, ['belowright split'])
67
+ Last set from ~/code/fork/vimfiles/plugins/vim-conque/plugin/conque_term.vim
68
+ ConqueTermTab + shellcmd call conque_term#open(<q-args>, ['tabnew'])
69
+ Last set from ~/code/fork/vimfiles/plugins/vim-conque/plugin/conque_term.vim
70
+ ConqueTermVSplit + shellcmd call conque_term#open(<q-args>, ['belowright vsplit'])
71
+ Last set from ~/code/fork/vimfiles/plugins/vim-conque/plugin/conque_term.vim
72
+ DoMatchParen 0 runtime plugin/matchparen.vim | windo doau CursorMoved
73
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/matchparen.vim
74
+ Errors 0 call s:ShowLocList()
75
+ Last set from ~/code/fork/vimfiles/plugins/syntastic/plugin/syntastic.vim
76
+ ! Explore * 0c dir call netrw#Explore(<count>,0,0+<bang>0,<q-args>)
77
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
78
+ GLVS 0 call getscript#GetLatestVimScripts()
79
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
80
+ GetLatestVimScripts 0 call getscript#GetLatestVimScripts()
81
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
82
+ GetScripts 0 call getscript#GetLatestVimScripts()
83
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
84
+ Gist ? % :call Gist(<line1>, <line2>, <f-args>)
85
+ Last set from ~/code/fork/vimfiles/plugins/gist-vim/plugin/gist.vim
86
+ GitGrep * file call GitGrep(<q-args>)
87
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
88
+ Grep * file call Grep(<q-args>)
89
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
90
+ GrepKeys 1 :cd ~/.vim | :call GitGrep('^[a-z]*map.*<args>') | :cd -
91
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
92
+ GrepPlugins * file call Grep(<q-args> . ' ~/.vim/plugins')
93
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
94
+ GrepSnippets 1 :call GrepSnippets('<args>')
95
+ Last set from ~/code/fork/vimfiles/after/plugin/snipmate.vim
96
+ GrepVim * :cd ~/.vim | :call GitGrep(<q-args>) | :cd -
97
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
98
+ Helptags 0 :call pathogen#helptags()
99
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
100
+ ! Hexplore * 0c dir call netrw#Explore(<count>,1,2+<bang>0,<q-args>)
101
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
102
+ ! MkVimball + . file call vimball#MkVimball(<line1>,<line2>,<bang>0,<f-args>)
103
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
104
+ NERDTree ? dir :call s:initNerdTree('<args>')
105
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
106
+ NERDTreeClose 0 :call s:closeTreeIfOpen()
107
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
108
+ NERDTreeFind 0 call s:findAndRevealPath()
109
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
110
+ NERDTreeFromBookmark 1 customlist call s:initNerdTree('<args>')
111
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
112
+ NERDTreeMirror 0 call s:initNerdTreeMirror()
113
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
114
+ NERDTreeToggle ? dir :call s:toggle('<args>')
115
+ Last set from ~/code/fork/vimfiles/plugins/nerdtree/plugin/NERD_tree.vim
116
+ NetUserPass * call NetUserPass(<f-args>)
117
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
118
+ ! NetrwClean 0 call netrw#NetrwClean(<bang>0)
119
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
120
+ NetrwSettings 0 call netrwSettings#NetrwSettings()
121
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
122
+ ! Nexplore * call netrw#Explore(-1,0,0,<q-args>)
123
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
124
+ NoMatchParen 0 windo 3match none | unlet! g:loaded_matchparen | au! matchparen
125
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/matchparen.vim
126
+ NotRocket 0 % :<line1>,<line2>s/:\(\w\+\)\s*=>/\1:/ge
127
+ Last set from ~/code/fork/vimfiles/rc/autoload/ruby.vim
128
+ Nread * 1c call netrw#NetrwSavePosn()|call netrw#NetRead(<count>,<f-args>)|call netrw#NetrwRestorePosn()
129
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
130
+ Nsource * call netrw#NetrwSavePosn()|call netrw#NetSource(<f-args>)|call netrw#NetrwRestorePosn()
131
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
132
+ Nwrite * % call netrw#NetrwSavePosn()|<line1>,<line2>call netrw#NetWrite(<f-args>)|call netrw#NetrwRestorePosn()
133
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
134
+ OpenURL 1 :!open <args>
135
+ Last set from ~/code/fork/vimfiles/rc/functions.vim
136
+ ! Pexplore * call netrw#Explore(-2,0,0,<q-args>)
137
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
138
+ ! Rails * dir :if s:autoload()|call rails#new_app_command(<bang>0,<f-args>)|endif
139
+ Last set from ~/code/fork/vimfiles/plugins/vim-rails/plugin/rails.vim
140
+ RmVimball * dir call vimball#SaveSettings()|call vimball#RmVimball(<f-args>)|call vimball#RestoreSettings()
141
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
142
+ ! Sexplore * 0c dir call netrw#Explore(<count>,1,0+<bang>0,<q-args>)
143
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
144
+ SyntasticDisable ? call s:Disable(<f-args>)
145
+ Last set from ~/code/fork/vimfiles/plugins/syntastic/plugin/syntastic.vim
146
+ SyntasticEnable ? call s:Enable(<f-args>)
147
+ Last set from ~/code/fork/vimfiles/plugins/syntastic/plugin/syntastic.vim
148
+ ! TComment * . customlist keepjumps call tcomment#Comment(<line1>, <line2>, 'G', "<bang>", <f-args>)
149
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
150
+ ! TCommentAs + . customlist call tcomment#CommentAs(<line1>, <line2>, "<bang>", <f-args>)
151
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
152
+ ! TCommentBlock * . customlist keepjumps call tcomment#Comment(<line1>, <line2>, 'B', "<bang>", <f-args>)
153
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
154
+ ! TCommentInline * . customlist keepjumps call tcomment#Comment(<line1>, <line2>, 'I', "<bang>", <f-args>)
155
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
156
+ ! TCommentMaybeInline * . customlist keepjumps call tcomment#Comment(<line1>, <line2>, 'i', "<bang>", <f-args>)
157
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
158
+ ! TCommentRight * . customlist keepjumps call tcomment#Comment(<line1>, <line2>, 'R', "<bang>", <f-args>)
159
+ Last set from ~/code/fork/vimfiles/plugins/tcomment_vim/plugin/tcomment.vim
160
+ TOhtml 0 % :call tohtml#Convert2HTML(<line1>, <line2>)
161
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/tohtml.vim
162
+ Tabularize * . customlist <line1>,<line2>call Tabularize(<q-args>)
163
+ Last set from ~/code/fork/vimfiles/plugins/tabular/plugin/Tabular.vim
164
+ Texplore * 0c dir call netrw#Explore(<count>,0,6 ,<q-args>)
165
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
166
+ Tlist 0 TlistToggle
167
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
168
+ TlistAddFiles + file call s:Tlist_Add_Files(<f-args>)
169
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
170
+ TlistAddFilesRecursive + dir call s:Tlist_Add_Files_Recursive(<f-args>)
171
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
172
+ TlistClose 0 call s:Tlist_Window_Close()
173
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
174
+ TlistDebug ? file call s:Tlist_Debug_Enable(<q-args>)
175
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
176
+ TlistHighlightTag 0 call s:Tlist_Window_Highlight_Tag( fnamemodify(bufname('%'), ':p'), line('.'), 2, 1)
177
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
178
+ TlistLock 0 let Tlist_Auto_Update=0
179
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
180
+ TlistMessages 0 call s:Tlist_Debug_Show()
181
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
182
+ TlistOpen 0 call s:Tlist_Window_Open()
183
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
184
+ TlistSessionLoad * file call s:Tlist_Session_Load(<q-args>)
185
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
186
+ TlistSessionSave * file call s:Tlist_Session_Save(<q-args>)
187
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
188
+ TlistShowPrototype * buffer echo Tlist_Get_Tag_Prototype_By_Line(<f-args>)
189
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
190
+ TlistShowTag * buffer echo Tlist_Get_Tagname_By_Line(<f-args>)
191
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
192
+ TlistSync 0 TlistHighlightTag
193
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
194
+ TlistToggle 0 call s:Tlist_Window_Toggle()
195
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
196
+ TlistUndebug 0 call s:Tlist_Debug_Disable()
197
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
198
+ TlistUnlock 0 let Tlist_Auto_Update=1
199
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
200
+ TlistUpdate 0 call s:Tlist_Update_Current_File()
201
+ Last set from ~/code/fork/vimfiles/plugins/taglist.vim/plugin/taglist.vim
202
+ UseVimball ? dir call vimball#Vimball(1,<f-args>)
203
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
204
+ ! Ve 1 1c customlist :execute s:find(<count>,'edit<bang>',<q-args>,0)
205
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
206
+ ! Vedit 1 1c customlist :execute s:find(<count>,'edit<bang>',<q-args>,0)
207
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
208
+ ! Vexplore * 0c dir call netrw#Explore(<count>,1,4+<bang>0,<q-args>)
209
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
210
+ VimballList 0 call vimball#Vimball(0)
211
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
212
+ Vimuntar ? file call tar#Vimuntar(<q-args>)
213
+ Last set from /usr/local/Cellar/macvim/7.3-57/MacVim.app/Contents/Resources/vim/runtime/plugin/tarPlugin.vim
214
+ ! Vopen 1 1c customlist :execute s:find(<count>,'edit<bang>',<q-args>,1)
215
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
216
+ ! Vpedit 1 1c customlist :execute s:find(<count>,'pedit',<q-args>,<bang>1)
217
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
218
+ ! Vread 1 1c customlist :execute s:find(<count>,'read',<q-args>,<bang>1)
219
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
220
+ ! Vsplit 1 1c customlist :execute s:find(<count>,'split',<q-args>,<bang>1)
221
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
222
+ ! Vtabedit 1 1c customlist :execute s:find(<count>,'tabedit',<q-args>,<bang>1)
223
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
224
+ ! Vvsplit 1 1c customlist :execute s:find(<count>,'vsplit',<q-args>,<bang>1)
225
+ Last set from ~/code/fork/vimfiles/autoload/pathogen.vim
226
+ YRClear 0 call s:YRClear()
227
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
228
+ ! YRDeleteRange ? . <line1>,<line2>call s:YRYankRange(<bang>1, <args>)
229
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
230
+ YRGetElem * call s:YRGetElem(<args>)
231
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
232
+ ! YRGetMultiple ? call s:YRGetMultiple(<bang>0, <args>)
233
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
234
+ YRMapsCreate 0 call s:YRMapsCreate()
235
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
236
+ YRMapsDelete 0 call s:YRMapsDelete()
237
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
238
+ " YRPaste * 0c call s:YRPaste(0,1,<args>)
239
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
240
+ YRPop ? <line1>,<line2>call s:YRPop(<args>)
241
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
242
+ " YRPush ? call s:YRPush(<args>)
243
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
244
+ " YRReplace * 0c call s:YRPaste(1,<args>)
245
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
246
+ YRSearch ? call s:YRSearch(<q-args>)
247
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
248
+ YRShow ? call s:YRShow(<args>)
249
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
250
+ YRToggle ? call s:YRToggle(<args>)
251
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
252
+ " YRYankCount * 0c call s:YRYankCount(<args>)
253
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
254
+ ! YRYankRange ? . <line1>,<line2>call s:YRYankRange(<bang>0, <args>)
255
+ Last set from ~/code/fork/vimfiles/plugins/yankring.vim/plugin/yankring.vim
256
+ ZoomWin 0 :set lz|silent call ZoomWin#ZoomWin()|set nolz
257
+ Last set from ~/code/fork/vimfiles/plugins/zoomwin/plugin/ZoomWinPlugin.vim