Skip to content

Instantly share code, notes, and snippets.

View heavenshell's full-sized avatar
💭
Use Vim

Shinya Ohyanagi heavenshell

💭
Use Vim
  • Hyogo, Japan
  • 18:16 (UTC +09:00)
View GitHub Profile
diff --git a/src/edit.c b/src/edit.c
index 0d9e9d4..bedda9c 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2820,7 +2820,7 @@ set_completion(colnr_T startcol, list_T *list)
compl_cont_status = 0;
compl_curr_match = compl_first_match;
- if (compl_no_insert || compl_no_select)
+ if ((compl_no_insert || compl_no_select) && list->lv_len > 1)
@heavenshell
heavenshell / app.py
Created September 30, 2011 16:01
Flask static file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
let s:save_cpo = &cpo
set cpo&vim
function! s:rand(list)
let s:choice = ''
py << endpy
def _choice(l):
import random
import vim
ret = random.choice(l)
function <SNR>159_define_signals..<SNR>159_libcall の処理中にエラーが検出されました:
行 4:
dlerror = "dlsym(0x7fbd6cd9c770, vp_get_signals): symbol not found"
E364: "vp_get_signals"() のライブラリ呼出に失敗しました
if g:jedi#popup_select_first == 0
inoremap <buffer> . .<C-R>=jedi#complete_opened() ? "" : "\<lt>C-X>\<lt>C-O>\<lt>C-P>"<CR>
end
diff --git a/plugin/jedi.vim b/plugin/jedi.vim
index 9e0b013..aba7e18 100644
--- a/plugin/jedi.vim
+++ b/plugin/jedi.vim
@@ -68,7 +68,7 @@ if 1:
text = 'import %s' % args.pop()
scr = jedi.Script(text, 1, len(text), '')
try:
- path = scr.goto()[0].module_path
+ path = scr.goto_assignments()[0].module_path
Running Transaction
Installing : riak-1.3.1-1.el6.x86_64 1/1
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/bitcask-1.6.1/priv/bitcask.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/syslog-1.0.1/priv/syslog_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/dyntrace.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/trace_file_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/runtime_tools-1.8.8/priv/lib/trace_ip_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/erlang_js-1.2.2/priv/erlang_js_drv.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/crypto-2.1/priv/lib/crypto.so'
chcon: can't apply partial context to unlabeled file `/usr/lib64/riak/lib/asn1-1.7/priv/lib/asn1_erl_nif.so'
$ git clone https://github.com/ryuzee/sahara.git
$ bundle install --path vendor/bundle
$ bundle exec rake build
$ vagrant plugin install pkg/sahara-0.0.14.gem
Process: Vim [18518]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [373]
User ID: 501
Date/Time: 2013-04-24 23:26:14.728 +0900
OS Version: Mac OS X 10.8.3 (12D78)
org.eclipse.core.runtime.CoreException: プラグイン org.eclipse.m2e.editor はクラス org.eclipse.m2e.editor.pom.MavenPomEditor をロードできませんでした。
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(E