This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ref-codic.vim - A ref source for codic. | |
" ref-codic.vim is inspired by unite-codic.vim <https://github.com/rhysd/unite-codic.vim> | |
" Version: 0.0.1 | |
" Author : h14i <[email protected]> | |
" License: Public domain | |
" | |
" Requirements: | |
" ref.vim <https://github.com/thinca/vim-ref/> | |
" codic.vim <https://github.com/koron/codic-vim/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wrapper for ref.vim | |
# license: Public Domain | |
function vimref { | |
if [[ $# < 2 ]] then | |
print "$0 - ref.vim wrapper | |
usage: | |
$0 SOURCE KEYWORDS | |
example: | |
$0 man vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augroup typescript-tscpath | |
autocmd! | |
autocmd BufNewFile,BufRead *.ts call TSCPath() | |
augroup END | |
function! TSCPath() "{{{ | |
if !exists('g:typescript_compiler_binary') | |
" try get local tsc path | |
let tsc_path = split(system('npm ls -s --parseable typescript'), '\n')[-1] | |
if !executable(tsc_path . '/bin/tsc') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" :compiler dscanner | |
" License: Public Domain | |
scriptencoding utf-8 | |
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'dscanner' | |
if exists(':CompilerSet') != 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ~/.ctags.d/drivers | |
() { | |
COMMAND_NOT_FOUND=127 | |
if ! type dscanner; then | |
exit ${COMMAND_NOT_FOUND} | |
fi | |
} > /dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" find_rust_std.vim | |
scriptencoding utf-8 | |
function! FindRustStd(fname) | |
let fname = '*' . substitute(tolower(a:fname), '::', '/', 'g') . '.rs' | |
" echo fname | |
let found = globpath(s:path, fname) | |
if found != '' | |
return found | |
endif |
OlderNewer