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
" == Naming convention. == {{{1 | |
" Command name | |
" - CamelCase | |
" Global function name | |
" - CamelCase | |
" Local function name | |
" - s:split_by_underbar | |
" Group name for autocmd | |
" - split-by-dash | |
" In vimrc, start with "vimrc" |
NewerOlder