added vscode extensions
This commit is contained in:
parent
7cde0829be
commit
26e2a50441
316 changed files with 37301 additions and 0 deletions
3
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/.gitignore
vendored
Normal file
3
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.vim-flavor
|
||||
Gemfile.lock
|
||||
VimFlavor.lock
|
||||
4
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/.travis.yml
vendored
Normal file
4
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/.travis.yml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
language: ruby
|
||||
rvm:
|
||||
- 2.1.5
|
||||
script: rake ci
|
||||
3
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/Gemfile
vendored
Normal file
3
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/Gemfile
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gem 'vim-flavor', '~> 2.0'
|
||||
11
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/Rakefile
vendored
Normal file
11
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/Rakefile
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env rake
|
||||
|
||||
task :ci => [:dump, :test]
|
||||
|
||||
task :dump do
|
||||
sh 'vim --version'
|
||||
end
|
||||
|
||||
task :test do
|
||||
sh 'bundle exec vim-flavor test'
|
||||
end
|
||||
1
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/VimFlavor
vendored
Normal file
1
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/VimFlavor
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
# No dependencies.
|
||||
62
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/autoload/altercmd.vim
vendored
Normal file
62
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/autoload/altercmd.vim
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
" altercmd - Alter built-in Ex commands by your own ones
|
||||
" Version: 0.0.1
|
||||
" Copyright (C) 2009-2015 Kana Natsuno <http://whileimautomaton.net/>
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
" "Software"), to deal in the Software without restriction, including
|
||||
" without limitation the rights to use, copy, modify, merge, publish,
|
||||
" distribute, sublicense, and/or sell copies of the Software, and to
|
||||
" permit persons to whom the Software is furnished to do so, subject to
|
||||
" the following conditions:
|
||||
"
|
||||
" The above copyright notice and this permission notice shall be included
|
||||
" in all copies or substantial portions of the Software.
|
||||
"
|
||||
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
" }}}
|
||||
" Interface "{{{1
|
||||
function! altercmd#define(...) "{{{2
|
||||
let [buffer, original_name, alternate_name]
|
||||
\ = (a:000[0] ==? '<buffer>' ? [] : ['']) + a:000
|
||||
|
||||
if original_name =~ '\['
|
||||
let [original_name_head, original_name_tail] = split(original_name, '[')
|
||||
let original_name_tail = substitute(original_name_tail, '\]', '', '')
|
||||
else
|
||||
let original_name_head = original_name
|
||||
let original_name_tail = ''
|
||||
endif
|
||||
|
||||
let original_name_tail = ' ' . original_name_tail
|
||||
for i in range(len(original_name_tail))
|
||||
let lhs = original_name_head . original_name_tail[1:i]
|
||||
execute 'cnoreabbrev <expr>' buffer lhs
|
||||
\ '(getcmdtype() == ":" && getcmdline() ==# "' . lhs . '")'
|
||||
\ '?' ('"' . alternate_name . '"')
|
||||
\ ':' ('"' . lhs . '"')
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
function! altercmd#load() "{{{2
|
||||
runtime plugin/altercmd.vim
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
" __END__ "{{{1
|
||||
" vim: foldmethod=marker
|
||||
134
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/doc/altercmd.txt
vendored
Normal file
134
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/doc/altercmd.txt
vendored
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
*altercmd.txt* Alter built-in Ex commands by your own ones
|
||||
|
||||
Version 0.0.1
|
||||
Script ID: 2675
|
||||
Copyright (C) 2009-2015 Kana Natsuno <http://whileimautomaton.net/>
|
||||
License: MIT license {{{
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
}}}
|
||||
|
||||
CONTENTS *altercmd-contents*
|
||||
|
||||
Introduction |altercmd-introduction|
|
||||
Interface |altercmd-interface|
|
||||
Commands |altercmd-commands|
|
||||
Functions |altercmd-functions|
|
||||
Bugs |altercmd-bugs|
|
||||
Changelog |altercmd-changelog|
|
||||
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
INTRODUCTION *altercmd-introduction*
|
||||
|
||||
*altercmd* is a Vim plugin to provide an easy way to alternate built-in Ex
|
||||
commands by user-defined Ex commands. This plugin provides |:AlterCommand|
|
||||
for this purpose. For example, if you define :CD, a custom version of |:cd|,
|
||||
add the following in your vimrc.
|
||||
>
|
||||
AlterCommand cd CD
|
||||
<
|
||||
With the above setting, you can use :cd as if it is :CD. It means that :CD
|
||||
will be automatically inserted if you type :cd as an Ex command, so you don't
|
||||
have to type :CD to use :cd and you'll never encounter mistyping :cd and :CD.
|
||||
|
||||
:AlterCommand also supports partial command names. For example, |:help| can
|
||||
be invoked with :h, :he, :hel or :help.
|
||||
>
|
||||
AlterCommand h[elp] HELP
|
||||
<
|
||||
With the above setting, you can use :h, :he, :hel and :help as if they are
|
||||
:HELP, your own version of :help.
|
||||
|
||||
|
||||
Requirements:
|
||||
- Vim 7.2 or later
|
||||
|
||||
Latest version:
|
||||
https://github.com/kana/vim-altercmd
|
||||
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
INTERFACE *altercmd-interface*
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
COMMANDS *altercmd-commands*
|
||||
|
||||
*:AlterCommand*
|
||||
:AlterCommand [<buffer>] {original} {alternative}
|
||||
Declare to use {alternative} Ex command instead of
|
||||
{original} Ex command.
|
||||
|
||||
If <buffer> is given, this declaration is only
|
||||
available for the current buffer. Otherwise, this
|
||||
declaration is available globally.
|
||||
|
||||
See also |altercmd-introduction| for examples.
|
||||
|
||||
Technically, this Ex command does just define some
|
||||
|abbreviations| in Command-line mode.
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
FUNCTIONS *altercmd-functions*
|
||||
|
||||
altercmd#define({original}, {alternative}) *altercmd#define()*
|
||||
altercmd#define('<buffer>', {original}, {alternative})
|
||||
Function version of |:AlterCommand|.
|
||||
|
||||
altercmd#load() *altercmd#load()*
|
||||
Load this plugin. You have to call this in your vimrc
|
||||
if you want to use |:AlterCommand| in your vimrc.
|
||||
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
BUGS *altercmd-bugs*
|
||||
|
||||
- Not all cases are supported. For example:
|
||||
|
||||
- [range] is not supported yet. If [range] is given, altercmd doesn't work.
|
||||
|
||||
- If any argument is not given to an Ex command which has an alternative Ex
|
||||
command, altercmd doesn't work.
|
||||
|
||||
- And there may be more cases where altercmd doesn't work well.
|
||||
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
CHANGELOG *altercmd-changelog*
|
||||
|
||||
0.0.1 2015-01-31T23:52:24+09:00
|
||||
- Fix a bug that buffer-local |:AlterCommand| could not be defined.
|
||||
|
||||
0.0.0 2009-06-14T03:47:25+09:00
|
||||
- Initial version.
|
||||
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
vim:tw=78:ts=8:ft=help:norl:fen:fdl=0:fdm=marker:
|
||||
41
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/plugin/altercmd.vim
vendored
Normal file
41
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/plugin/altercmd.vim
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
" altercmd - Alter built-in Ex commands by your own ones
|
||||
" Version: 0.0.1
|
||||
" Copyright (C) 2009-2015 Kana Natsuno <http://whileimautomaton.net/>
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
" "Software"), to deal in the Software without restriction, including
|
||||
" without limitation the rights to use, copy, modify, merge, publish,
|
||||
" distribute, sublicense, and/or sell copies of the Software, and to
|
||||
" permit persons to whom the Software is furnished to do so, subject to
|
||||
" the following conditions:
|
||||
"
|
||||
" The above copyright notice and this permission notice shall be included
|
||||
" in all copies or substantial portions of the Software.
|
||||
"
|
||||
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
" }}}
|
||||
|
||||
if exists('g:loaded_altercmd')
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
command! -bar -complete=command -nargs=* AlterCommand
|
||||
\ call altercmd#define(<f-args>)
|
||||
|
||||
|
||||
|
||||
|
||||
let g:loaded_altercmd = 1
|
||||
|
||||
" __END__
|
||||
" vim: foldmethod=marker
|
||||
45
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/t/basics.vim
vendored
Normal file
45
.vscode/extensions/asvetliakov.vscode-neovim-0.0.82/vim/vim-altercmd/t/basics.vim
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
call altercmd#define('full', 'F-U-L-L')
|
||||
call altercmd#define('ab[br]', 'A-B-B-R')
|
||||
|
||||
function! RecordTheCurrentCommandLine()
|
||||
let g:cmdline = getcmdline()
|
||||
return ''
|
||||
endfunction
|
||||
cnoremap <expr> {X} RecordTheCurrentCommandLine()
|
||||
|
||||
function! Test(lhs, rhs)
|
||||
let g:cmdline = ''
|
||||
silent execute 'normal' ":".a:lhs."\<C-]>{X}\<C-c>"
|
||||
Expect g:cmdline ==# a:rhs
|
||||
endfunction
|
||||
|
||||
describe 'altercmd#define'
|
||||
it 'replaces a built-in command'
|
||||
call Test('full', 'F-U-L-L')
|
||||
end
|
||||
|
||||
it 'replaces all abbreviated names of a built-in command'
|
||||
call Test('ab', 'A-B-B-R')
|
||||
call Test('abb', 'A-B-B-R')
|
||||
call Test('abbr', 'A-B-B-R')
|
||||
end
|
||||
|
||||
it 'supports <buffer>'
|
||||
silent edit 'test-A'
|
||||
call altercmd#define('<buffer>', 'ctx', 'Axe')
|
||||
silent edit 'test-B'
|
||||
call altercmd#define('<buffer>', 'ctx', 'Bow')
|
||||
silent edit 'test-C'
|
||||
call altercmd#define('<buffer>', 'ctx', 'Club')
|
||||
|
||||
silent edit 'test-A'
|
||||
call Test('full', 'F-U-L-L')
|
||||
call Test('ctx', 'Axe')
|
||||
silent edit 'test-B'
|
||||
call Test('full', 'F-U-L-L')
|
||||
call Test('ctx', 'Bow')
|
||||
silent edit 'test-C'
|
||||
call Test('full', 'F-U-L-L')
|
||||
call Test('ctx', 'Club')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue