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
Error detected while processing /home/bjorn/config/vim/nvimrc: | |
line 337: | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/home/bjorn/.local/lib/python2.7/site-packages/neovim-0.0.6-py2.7.egg/neovim/__init__.py", line 34, in start_host | |
with PluginHost(vim, discovered_plugins=[ScriptHost]) as host: | |
File "/home/bjorn/.local/lib/python2.7/site-packages/neovim-0.0.6-py2.7.egg/neovim/plugin_host.py", line 46, in __enter__ | |
self.install_plugins() | |
File "/home/bjorn/.local/lib/python2.7/site-packages/neovim-0.0.6-py2.7.egg/neovim/plugin_host.py", line 69, in install_plugins | |
self.discover_plugins() |
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
" Vundle {{{ | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Plugin 'gmarik/vundle' | |
Plugin 'SirVer/ultisnips' | |
filetype plugin indent on | |
" }}} |
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
import sys | |
import neovim | |
from threading import Thread | |
from time import sleep | |
vim = neovim.connect(sys.argv[1]) | |
buf = vim.current.buffer | |
def thread(): | |
sleep(0.2) | |
for i in range(100): |
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
from subprocess import Popen, PIPE | |
class NvimClipboard(object): | |
def __init__(self, vim): | |
self.provides = ['clipboard'] | |
def sel_name(self, reg): | |
return 'clipboard' if reg == '+' else 'primary' | |
def clipboard_get(self, reg): |
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
import xerox | |
class NvimClipboard(object): | |
def __init__(self, vim): | |
self.provides = ['clipboard'] | |
def clipboard_get(self, reg): | |
txt = xerox.paste() | |
# emulate vim behavior | |
if txt.endswith('\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
import zmq | |
import neovim | |
import threading | |
from time import sleep | |
@neovim.plugin | |
class PollTest(object): | |
def __init__(self, vim): | |
self.vim = vim | |
self.ctx = zmq.Context.instance() |
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
#!/usr/bin/env python | |
"""Edit a file in the host nvim instance.""" | |
from __future__ import print_function | |
import os | |
import sys | |
from neovim import attach | |
args = sys.argv[1:] | |
if not args: |
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
#include "kbtree.h" | |
#include <stdlib.h> | |
#include <stdbool.h> | |
KBTREE_INIT(test, int, kb_generic_cmp) | |
#define N 5000 | |
int main() { | |
kbtree_t(test) *b = kb_init(test, KB_DEFAULT_SIZE); | |
int nums[N]; | |
kbitr_t itr; |
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
cquery = [[ | |
(ERROR) @ErrorMsg | |
"break" @keyword | |
"case" @keyword | |
"continue" @keyword | |
"do" @keyword | |
"else" @keyword | |
"for" @keyword | |
"if" @keyword |
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/pangoterm.c b/pangoterm.c | |
index 5985b51..7d93af6 100644 | |
--- a/pangoterm.c | |
+++ b/pangoterm.c | |
@@ -2187,8 +2187,8 @@ void pangoterm_init_font(PangoTerm *pt) { | |
int height = pango_font_metrics_get_ascent(metrics) + pango_font_metrics_get_descent(metrics); | |
- pt->cell_width_pango = width; | |
pt->cell_width = PANGO_PIXELS_CEIL(width); |
OlderNewer