hwartig / Vim Seeing Is Believing
Licence: mit
Stars: ✭ 50
Labels
Projects that are alternatives of or similar to Vim Seeing Is Believing
One Dark.vim
A vim version of Atom's gorgeous one-dark color scheme
Stars: ✭ 43 (-14%)
Mutual labels: viml
Vimrc1234567
Personalized vimrc with C++, Markdown, and text editing at its core.
Stars: ✭ 44 (-12%)
Mutual labels: viml
Vim Textobj Lastpat
Vim plugin: Text objects for the last searched pattern
Stars: ✭ 42 (-16%)
Mutual labels: viml
Plaintasks.vim
An implementation of Sublime's PlainTasks plugin for Vim
Stars: ✭ 45 (-10%)
Mutual labels: viml
Change Inside Surroundings.vim
vim plugin to change the contents of the innermost 'surrounding'
Stars: ✭ 41 (-18%)
Mutual labels: viml
Minimum Awesome
A Vim setup that will get you into Vim and make it so that you don't want to pull your hair out.
Stars: ✭ 40 (-20%)
Mutual labels: viml
Cscope.vim
create cscope database and connect to existing proper database automatically.
Stars: ✭ 49 (-2%)
Mutual labels: viml
What is this?
vim-seeing-is-believing provides utility functions which make the following easy
- insert/delete annotation mark
# =>
. - virtual keymap for marking and executing seeing-is-believing against current buffer.
seeing_is_believing is a gem and can be installed with
$ gem install seeing_is_believing
Key Mappings
-
<Plug>(seeing-is-believing-mark)
- add mark (# =>
) to the line. -
<Plug>(seeing-is-believing-run)
- run all marked lines. -
<Plug>(seeing-is-believing-mark-and-run)
- add mark to the line and run it. If line is already marked, then previous mark will be replaced.
Configuration
vim-seeing-is-believing doesn't provide any default keymap.
Set following line in your .vimrc
" Enable seeing-is-believing mappings only for Ruby
augroup seeingIsBelievingSettings
autocmd!
autocmd FileType ruby nmap <buffer> <Enter> <Plug>(seeing-is-believing-mark-and-run)
autocmd FileType ruby xmap <buffer> <Enter> <Plug>(seeing-is-believing-mark-and-run)
autocmd FileType ruby nmap <buffer> <F4> <Plug>(seeing-is-believing-mark)
autocmd FileType ruby xmap <buffer> <F4> <Plug>(seeing-is-believing-mark)
autocmd FileType ruby imap <buffer> <F4> <Plug>(seeing-is-believing-mark)
autocmd FileType ruby nmap <buffer> <F5> <Plug>(seeing-is-believing-run)
autocmd FileType ruby imap <buffer> <F5> <Plug>(seeing-is-believing-run)
augroup END
Kudos
vim-seeing-is-believing is an adaption of https://github.com/t9md/vim-ruby-xmpfilter for seeing_is_believing.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].