-
Install lastest PowerShell
-
Download https://chocolatey.org/install.ps1
-
Launch Command Prompt as Administrator
-
Type below commands
View plug.vim.diff
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
diff --git a/plug.vim b/plug.vim | |
index 9ebcf53..883187b 100644 | |
--- a/plug.vim | |
+++ b/plug.vim | |
@@ -799,7 +799,7 @@ function! s:bang(cmd, ...) | |
let cmd = a:0 ? s:with_cd(a:cmd, a:1) : a:cmd | |
if s:is_win | |
let batchfile = tempname().'.bat' | |
- call writefile(['@echo off', cmd], batchfile) | |
+ call writefile(['@echo off', cmd], s:shellesc(batchfile)) |
View customCode.js
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
var originalTitle = document.title; | |
function updateTitle() { | |
document.title = document.querySelectorAll('#reply.new, #direct.new').length > 0 ? '(\u2022) ' + originalTitle : originalTitle; | |
} | |
registerPlugin({ | |
newMessageElement: updateTitle, | |
newDM: updateTitle, | |
switchTo: updateTitle | |
}); |
View file0.txt
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
% git clone http://repo.or.cz/guilt.git | |
Cloning into 'guilt'... | |
remote: Counting objects: 3844, done. | |
remote: Total 3844 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (3844/3844), 624.05 KiB | 152.00 KiB/s, done. | |
Resolving deltas: 100% (2864/2864), done. |
View .vimrc
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
if exists('$HTTP_PROXY') | |
let s:proxy_url_pattern = | |
\ '^\%(\([^:]*\):\/\/\)\=' | |
\ . '\%(\([^:@]*\)\(:[^@]*\)\=@\)\=' | |
\ . '\([^:]*\)\%(:\(\d*\)\)\=/\=$' | |
let g:twitvim_proxy = substitute($HTTP_PROXY, | |
\ s:proxy_url_pattern, '\4:\5', '') | |
let s:proxy_login = substitute($HTTP_PROXY, | |
\ s:proxy_url_pattern, '\2', '') | |
let s:proxy_pass = substitute($HTTP_PROXY, |
View .vimrc
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:vimfiles = expand('<sfile>:p:h') | |
let s:plugvim = s:vimfiles . '/autoload/plug.vim' | |
if empty(glob(s:plugvim)) | |
execute "silent !curl -fLo " . s:plugvim . " --create-dirs " | |
\ . "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
if !empty(glob(s:plugvim)) | |
call plug#begin(s:vimfiles . '/plugged') |
View vimplugins.txt
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
SyntaxComplete | |
Tail-Bundle | |
TwitVim | |
agit.vim | |
calendar-vim | |
csv.vim | |
editorconfig-vim | |
emmet-vim | |
gapply.vim | |
gitv |
View _result.txt
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
% node server.js & node client.js | |
Server running | |
{ | |
"host": "localhost:4321", | |
"accept": "application/json", | |
"content-type": "application/json", | |
"content-length": "37", | |
"connection": "close" | |
} | |
body: [{"a":1,"b":true,"c":"x","d":"漢字"}] |
View vimrc
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
if has('win32') | |
let g:EditorConfig_exclude_patterns = ['[^\x01-\x7e]'] | |
endif |
View .gitignore
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
# https://github.com/github/gitignore/blob/master/Global/Vim.gitignore | |
# swap | |
[._]*.s[a-w][a-z] | |
[._]s[a-w][a-z] | |
# session | |
Session.vim | |
# temporary | |
.netrwhist | |
*~ |
View InstallChocolatey.md