2019-03-11 gorilla.vim #2
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
source 'https://rubygems.org' | |
gem 'webrick' |
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/src/textprop.c b/src/textprop.c | |
index 674faebe2..00436f51a 100644 | |
--- a/src/textprop.c | |
+++ b/src/textprop.c | |
@@ -629,7 +629,7 @@ f_prop_remove(typval_T *argvars, typval_T *rettv) | |
mch_memmove(newptr, buf->b_ml.ml_line_ptr, | |
buf->b_ml.ml_line_len); | |
buf->b_ml.ml_line_ptr = newptr; | |
- curbuf->b_ml.ml_flags |= ML_LINE_DIRTY; | |
+ buf->b_ml.ml_flags |= ML_LINE_DIRTY; |
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:S = vital#vital#import('Data.String') | |
let s:L = vital#vital#import('Data.List') | |
function! s:count_words(text) abort | |
let F = { memo, x -> extend(memo, {x: get(memo, x, 0) + 1}) } | |
return s:L.foldl(F, {}, s:S.scan(a:text, '\w\+')) | |
endfunction | |
echo s:count_words('this is a pen or not a pen') | |
" {'this': 1, 'is': 1, 'a': 2, 'pen': 2, ...} |
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
Collecting greenlet | |
1 location(s) to search for versions of greenlet: | |
* https://pypi.python.org/simple/greenlet/ | |
Getting page https://pypi.python.org/simple/greenlet/ | |
Starting new HTTPS connection (1): pypi.python.org | |
"GET /simple/greenlet/ HTTP/1.1" 200 24008 | |
Analyzing links from page https://pypi.python.org/simple/greenlet/ | |
Skipping link https://pypi.python.org/packages/00/6b/9d4b5faa314ac579fda43f874b69246f9d7d1635a39f02c5d5f8866f04e6/greenlet-0.4.5-cp27-none-win_amd64.whl#md5=e06ab7f742a642b7d5b490c90521d0fc (from https://pypi.python.org/simple/greenlet/); it is not compatible with this Python | |
Skipping link https://pypi.python.org/packages/00/73/63fa90c85f94c2deebe229d940da56148bababc8678d3109bd3ff67f1ace/greenlet-0.4.2.win-amd64-py2.7.exe#md5=ecf74a210b67842e4759a8d81ad5ca62 (from https://pypi.python.org/simple/greenlet/); unsupported archive format: .exe | |
Skipping link https://pypi.python.org/packages/00/8b/4ccae511e6a9d429ccbf701f1df16a3fe6afbbf75b338ab143754733d831/greenlet-0.4. |
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! X() abort | |
let x = 10 | |
let scope = l: | |
let F = { -> extend(scope, {'x': 200}) } | |
call F() | |
echo x | |
endfunction | |
call 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
# put this code in your .zshrc | |
if [[ "${VIM_TERMINAL_SHELL}" != "" ]]; then | |
command_not_found_handler() { | |
if [[ "${1}" != :* ]]; then | |
echo "command not found: ${1}" > /dev/stderr | |
return 127 | |
fi | |
echo -ne "\e_$*\e\\" > /dev/tty | |
while [[ ! -f "${VIM_TERMINAL_SHELL}" ]]; do |
NewerOlder