Skip to content
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
View foo.c
#define WBY_IMPLEMENTATION
#include <stdio.h>
#include <stdlib.h>
#include "mm_json.h"
#include "mm_web.h"
#if defined(_WIN32)
#define socket_startup() \
WORD wsa_version = MAKEWORD(2,2); \
WSADATA wsa_data; \
View time1.go
package main
import (
"net/http"
"time"
"github.com/labstack/echo"
mw "github.com/labstack/echo/middleware"
)
View lambda.diff
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 2d7beb7..623e417 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -119,9 +119,10 @@ You will not get an error if you try to change the type of a variable.
1.2 Function references ~
*Funcref* *E695* *E718*
-A Funcref variable is obtained with the |function()| function. It can be used
-in an expression in the place of a function name, before the parenthesis
View gist:0fe281cea1a3d56895332bf2a998fc38
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 2d7beb7..99dca2f 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2003,6 +2003,7 @@ json_decode({string}) any decode JSON
json_encode({expr}) String encode JSON
keys({dict}) List keys in {dict}
len({expr}) Number the length of {expr}
+lambda({expr}) Create lambda function constructed with {expr}
libcall({lib}, {func}, {arg}) String call {func} in library {lib} with {arg}
View gist:70305daecfc78a5a82d8fe77416c1a23
diff --git a/src/gui_w32.c b/src/gui_w32.c
index b2ee9ca..0679ed2 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -2218,7 +2218,7 @@ gui_mch_wait_for_chars(int wtime)
parse_queued_messages();
if (pPeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
- || MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLEVENTS)
+ || MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLINPUT)
View gist:f70b5b3a8f11ae2bf7c72aa8cc1a84f0
diff --git a/src/eval.c b/src/eval.c
index 9f6db31..4e9f45f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -11368,7 +11368,9 @@ f_feedkeys(typval_T *argvars, typval_T *rettv UNUSED)
/* Avoid a 1 second delay when the keys start Insert mode. */
msg_scroll = FALSE;
+ ++ex_normal_busy;
exec_normal(TRUE);
View gist:4ac2c12698156a5e2285129838cf674d
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 26f4219..1f19c88 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10068,7 +10068,9 @@ exec_normal(int was_typed)
&& typebuf.tb_len > 0)) && !got_int)
{
update_topline_cursor();
+ ++ex_normal_busy;
normal_cmd(&oa, TRUE); /* execute a Normal mode cmd */
View omniwrap.vim
let s:wrap = {}
let s:last = ''
function! s:omniwrap(name)
if has_key(s:wrap, &ft)
let s:wrap[&ft] = []
endif
if index(s:wrap[&ft], a:name) == -1
call add(s:wrap[&ft], a:name)
endif
Something went wrong with that request. Please try again.