ここではあなたはNugetをインストールしており、Visual Studio 2010を使って いることを前提として話を進めています。 しかしこれと同等なことをMono(Version 2.10.2以降)とMonoDevelopを使っても できます。 NancyとNancyのASP.NET Hostingを使った"hello world"アプリケーション作成に
This file contains 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
function! MyLogged(context) | |
call vimconsole#winopen() | |
endfunction | |
let g:vimconsole#hooks.on_logged = function('MyLogged') |
This file contains 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
autocmd FileType vimshell call vimshell#hook#add('emptycmd', 'my_emptycmd', 'g:my_emptycmd') | |
function! g:my_emptycmd(args,context) | |
if empty(a:args) | |
call vimshell#execute('ls') | |
return 'git status' | |
else | |
return a:args | |
endif | |
endfunction |
This file contains 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
function! g:search() | |
let search_str = '' | |
let tmp = &l:hlsearch | |
try | |
setlocal hlsearch | |
while 1 | |
let n = getchar() | |
if n == char2nr("\<cr>") | |
break | |
elseif n == char2nr("\<esc>") |
This file contains 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
マルチバイトなMarkdownを考える | |
============================== | |
日本の社会人たちが好んで使うマルチバイトの記号 | |
---------------------------------------------- | |
括弧内はVimのdigraphです。(`:set digraph`) |
This file contains 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
18: Shougo/unite.vim | |
15: mattn/webapi-vim | |
15: Shougo/vimproc | |
14: Shougo/neocomplcache | |
14: Shougo/neobundle.vim | |
13: tpope/vim-surround | |
13: thinca/vim-ref | |
13: Shougo/vimfiler | |
12: tyru/open-browser.vim | |
12: tpope/vim-fugitive |
This file contains 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
function! s:vim_version() " {{{ | |
redir => lines | |
silent! version | |
redir END | |
let m1 = [] | |
let m2 = [] | |
let regex1 = '^VIM - Vi IMproved \(\d\+.\i\+\) ' | |
let regex2 = '^Included patches: \(\d\+\)-\(\d\+\)' | |
for line in split(lines,"\n") | |
if line =~# regex1 |
This file contains 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
function! s:explorer(path) | |
if a:path ==# '.' | |
new | |
elseif isdirectory(a:path) | |
execute 'cd ' . a:path | |
else | |
execute 'tabedit ' . a:path | |
return | |
endif | |
let list = filter(glob('*', 1, 1) + glob('.*', 1, 1), 'v:val !~ "^\\.$"') |
This file contains 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
let g:vimtips#tips_dir = get(g:,'vimtips#tips_dir',expand('~/.tips')) | |
let g:vimtips#tipsfile_default_encoding = get(g:,'vimtips#tipsfile_default_encoding','utf-8') | |
function! s:contents_list() " {{{ | |
let list = [] | |
for x in split(globpath(g:vimtips#tips_dir,'*.*'),"\n") | |
let list += [{ | |
\ 'path' : x, |
This file contains 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
let s:V = vital#of('vital') | |
let s:S = s:V.import('Assertion') | |
call s:S.define('Assert',1) | |
function! s:hoge(x) | |
return a:x * 3 | |
endfunction | |
Assert 3 <!> s:hoge(4) |
OlderNewer