• Stars
    star
    131
  • Rank 266,202 (Top 6 %)
  • Language
    Vim Script
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ’ (Neo)Vim plugin for dasht integration

dasht.vim

A (Neo)Vim plugin for dasht integration:

  • Search docsets for something you type:

    " search related docsets
    nnoremap <Leader>k :Dasht<Space>
    
    " search ALL the docsets
    nnoremap <Leader><Leader>k :Dasht!<Space>
  • Search docsets for words under cursor:

    " search related docsets
    nnoremap <silent> <Leader>K :call Dasht(dasht#cursor_search_terms())<Return>
    
    " search ALL the docsets
    nnoremap <silent> <Leader><Leader>K :call Dasht(dasht#cursor_search_terms(), '!')<Return>
  • Search docsets for your selected text:

    " search related docsets
    vnoremap <silent> <Leader>K y:<C-U>call Dasht(getreg(0))<Return>
    
    " search ALL the docsets
    vnoremap <silent> <Leader><Leader>K y:<C-U>call Dasht(getreg(0), '!')<Return>
  • Specify related docsets for searching:

    let g:dasht_filetype_docsets = {} " filetype => list of docset name regexp
    
    " For example: {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
    
      " When in Elixir, also search Erlang:
      let g:dasht_filetype_docsets['elixir'] = ['elixir', 'erlang']
    
      " When in C++, also search C, Boost, and OpenGL:
      let g:dasht_filetype_docsets['cpp'] = ['cpp', '^c$', 'boost', 'OpenGL']
    
      " When in Python, also search NumPy, SciPy, and Pandas:
      let g:dasht_filetype_docsets['python'] = ['python', '(num|sci)py', 'pandas']
    
      " When in HTML, also search CSS, JavaScript, Bootstrap, and jQuery:
      let g:dasht_filetype_docsets['html'] = ['html', 'css', 'js', 'bootstrap']
    
      " When in Java, search Java SE11, but not JavaScript:
      let g:dasht_filetype_docsets['java'] = ['java_se11']
    
    " and so on... }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
  • Configure where results are displayed:

    " create window below current one (default)
    let g:dasht_results_window = 'new'
    
    " create window beside current one
    let g:dasht_results_window = 'vnew'
    
    " use current window to show results
    let g:dasht_results_window = 'enew'
    
    " create panel at left-most edge
    let g:dasht_results_window = 'topleft vnew'
    
    " create panel at right-most edge
    let g:dasht_results_window = 'botright vnew'
    
    " create new tab beside current one
    let g:dasht_results_window = 'tabnew'

Testing

Developers can run the vim-vspec tests:

gem install bundler         # first time
bundle install              # first time
bundle exec vim-flavor test # every time

License

Like my work? πŸ‘ Please spare a life today as thanks! πŸ„πŸ–πŸ‘πŸ”πŸ£πŸŸβœ¨πŸ™ŠβœŒ
Why? For πŸ’• ethics, the 🌎 environment, and πŸ’ͺ health; see link above. πŸ™‡

Copyright 2016 Suraj N. Kurapati https://github.com/sunaku

Distributed under the same terms as Vim itself.

More Repositories

1

tamzen-font

πŸ’Œ Bitmapped programming font, based on Tamsyn
Ruby
818
star
2

dasht

πŸ’ Search API docs offline, in terminal or browser
Shell
803
star
3

md2man

πŸ“š Converts markdown into UNIX manual pages
Ruby
362
star
4

vim-shortcut

πŸ’‡ Discoverable & searchable shortcuts for (Neo)Vim
Vim Script
185
star
5

tork

πŸ’ž Tests your Ruby code, in parallel, as you change it
Ruby
181
star
6

home

🏑 My $HOME directory (dot files & bin scripts)
Shell
128
star
7

.vim

✌️ A modular (Neo)Vim configuration
Vim Script
112
star
8

vim-ruby-minitest

Vim highlighting & completion for MiniTest
Vim Script
107
star
9

glove80-keymaps

Glove80 keymap: "Glorious Engrammer"
HTML
100
star
10

vim-unbundle

🎁 Fast, filetype-lazy loader of Vim scripts & plugins
Vim Script
97
star
11

wmiirc

Ruby configuration for WMII window manager
Ruby
81
star
12

tmux-navigate

πŸ₯‚ Seamless tmux/vim navigation (over SSH too!)
Shell
50
star
13

engrammer

Arno's Engram layout for programmers
Makefile
42
star
14

vim-hicterm

🌈 Highlights terminal color code numbers (0-255)
Vim Script
41
star
15

vim-modusline

🌈 Mode-specific statusline colors
Vim Script
39
star
16

binman

πŸ€“ Creates manual pages from header comments
Ruby
36
star
17

wmii

My fork of the WMII window manager.
C
36
star
18

readably

πŸ“š Static blogs: YAML + Slim β†’ HTML5
Ruby
30
star
19

simple-ftp

My final project for CMPE-150 at UCSC during Spring 2004.
C
27
star
20

rumai

Ruby interface to 9P2000 protocol and WMII window manager
Ruby
21
star
21

bdf2fon

Convert X11 BDF fonts to Microsoft .FNT and .FON formats
C
15
star
22

ruby-vpi

Ruby interface to IEEE 1364-2005 Verilog VPI
Ruby
15
star
23

sunaku.github.io

🌟 My own little corner of the Web
HTML
10
star
24

.dwm

My dwm configuration with Ruby statusbar.
C
10
star
25

inochi

Infrastructure for Ruby projects
Ruby
10
star
26

ruby-coroutine-example

How to embed Ruby inside C coroutines.
C
9
star
27

ember

eRuby template processor
Ruby
8
star
28

sm4tik-font

BDF font of sm4tik's 8x8 XBM icons.
7
star
29

erbook

Write books, manuals, and documents in eRuby.
JavaScript
7
star
30

beakl15p

BEAKL-15p keyboard layout
7
star
31

kwalify

YAML schema validation for Ruby
7
star
32

swig-ruby-ffi

Ruby FFI language module for SWIG
C++
7
star
33

structy_record

🎩 Provides a Struct-like interface for Records
Elixir
6
star
34

detest

Assertion testing library for Ruby
Ruby
5
star
35

rassmalog

Static blogging with YAML and eRuby
Ruby
5
star
36

libixp

Mirror of 9P2000 library from WMII window manager.
C
5
star
37

babelfish

Ruby interface to Yahoo! BabelFish translation service.
Ruby
4
star
38

ofc2_to_png

Open Flash Chart 2 JSON to PNG converter
JavaScript
4
star
39

knights-tour

Knight's Tour algorithm in C, OpenGL, and Cg. This was my final project for CMPE-220 at UCSC during Winter 2007.
C
3
star
40

.dmenu

My dmenu configuration.
C
3
star
41

programming-elixir-issues

Sample project from the Programming Elixir book
Elixir
2
star
42

vim-ruby-shoulda-context

Vim highlighting & completion for shoulda-context.
Vim Script
2
star
43

firefox-tranquility

My fork of the Tranquility addon for Firefox
JavaScript
1
star
44

test-loop

MOVED TO sunaku/testr
1
star
45

kernel_hash

Adds a Kernel#Hash() method like Kernel#Array()
Ruby
1
star
46

redcarpet-manpage

renamed to md2man
1
star
47

test-unit-must

Selfish "must" assertions for Test::Unit
Ruby
1
star
48

ff-bash

For each File (GNU BASH)
Shell
1
star
49

opener

πŸ‘ A 33-line alternative to Ruby's launchy gem
Ruby
1
star
50

testr

MOVED TO sunaku/tork
1
star
51

onig-5.9.2

My patches to Oniguruma 5.9.2
C
1
star
52

test-unit-must.vim

Vim syntax highlighting for test-unit-must assertions
Vim Script
1
star
53

equal_rights_for_hash

Adds Kernel#Hash() and generic #to_h() methods.
Ruby
1
star