-
Problems summary insert モードで
int
と入力しようとすると、i
またはin
の入力で固まって、C-c
を入力するまで何もできなくなります。 -
Expected
-
Environment Information
-
OS: ubuntu32
-
Vim version: 7.4.347
-
Minimal vimrc less than 50 lines
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:bm = benchmark#new("List is empty?") | |
let s:N = 100000 | |
let s:lists = [range(0), range(100), range(10000)] | |
function! s:bm.empty() | |
let i = 0 | |
for s in s:lists | |
while i < s:N |
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:bm = benchmark#new("String is empty?") | |
let s:N = 100000 | |
let s:str = ["hello", ""] | |
function! s:bm.empty() | |
let i = 0 | |
for s in s:str | |
while i < s:N |
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
has("+relativenumber") | |
has("autocmd") | |
has("balloon_multiline") | |
has("browse") | |
has("conceal") | |
has("dos16") | |
has("dos32") | |
has("float") | |
has("folding") | |
has("gui") |
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
call expand("#") | |
call expand("$DISPLAY") | |
call expand("$HOME") | |
call expand("$USER") | |
call expand("$USERNAME") | |
call expand("$VIMRUNTIME/doc/options.txt") | |
call expand("%") | |
call expand("%:e") | |
call expand("%:h") | |
call expand("%:p") |
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
scriptencoding utf-8 | |
let s:save_cpo = &cpo | |
set cpo&vim | |
let s:v = vital#of("vital") | |
let s:m = s:v.import("Math") | |
let s:R = s:v.import("Random").new() |
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
" math utilities. | |
let s:save_cpo = &cpo | |
set cpo&vim | |
" TODO Simpler way? | |
function! s:modulo(m, n) | |
let d = a:m * a:n < 0 ? 1 : 0 | |
return a:m + (-(a:m + (0 < a:n ? d : -d)) / a:n + d) * a:n | |
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
" vim:set ts=8 sts=2 sw=2 tw=0 et: | |
" | |
" VimL parser - Vim Script Parser | |
" | |
" License: This file is placed in the public domain. | |
function! vimlparser#import() | |
return s: | |
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
let s:R = vital#of("vital").import("Random") | |
" @param n: length of list/dict | |
" @param m: # of loop | |
function! g:Go(n, m) | |
let list = range(a:n) | |
let a = s:R.shuffle(list) | |
let dict = {} | |
for i in list |
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
scriptencoding utf-8 | |
let s:save_cpo = &cpo | |
set cpo&vim | |
let s:V = vital#of('vital') | |
let s:L = s:V.import('Data.List') | |
function! s:parse_line(line) | |
let s = substitute(a:line, '[-/]', ' ', 'g') |
NewerOlder