Skip to content

Instantly share code, notes, and snippets.

@ynkdir
Last active December 13, 2015 21:18
Show Gist options
  • Save ynkdir/4976029 to your computer and use it in GitHub Desktop.
Save ynkdir/4976029 to your computer and use it in GitHub Desktop.
diff -r ad7bbe9ea65b runtime/autoload/javascriptcomplete.vim
--- a/runtime/autoload/javascriptcomplete.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/autoload/javascriptcomplete.vim Thu Feb 28 21:50:37 2013 +0900
@@ -619,6 +619,7 @@
endfor
let g:fm = final_menu
return final_menu
+ endif
endfunction
diff -r ad7bbe9ea65b runtime/autoload/rubycomplete.vim
--- a/runtime/autoload/rubycomplete.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/autoload/rubycomplete.vim Thu Feb 28 21:50:37 2013 +0900
@@ -196,8 +196,9 @@
let c = line[idx-1]
if c =~ '\w'
continue
- elseif ! c =~ '\.'
- idx = -1
+ elseif c =~ '\.'
+ "or elseif c !~ '\.'
+ let idx = -1
break
else
break
diff -r ad7bbe9ea65b runtime/ftplugin/spec.vim
--- a/runtime/ftplugin/spec.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/ftplugin/spec.vim Thu Feb 28 21:50:37 2013 +0900
@@ -78,7 +78,7 @@
elseif (option == 2)
call append(line("."),"%changelog")
normal j
- chgline = line(".")
+ let chgline = line(".")
endif
endif
if (chgline != -1)
diff -r ad7bbe9ea65b runtime/indent/dylan.vim
--- a/runtime/indent/dylan.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/indent/dylan.vim Thu Feb 28 21:50:37 2013 +0900
@@ -54,7 +54,7 @@
let chg = &sw
" If previous line opened a parenthesis, and did not close it, indent
elseif prevline =~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
- return = match( prevline, '(.*\((.*)\|[^)]\)*.*$') + 1
+ let chg = match( prevline, '(.*\((.*)\|[^)]\)*.*$') + 1
"elseif prevline =~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
elseif prevline =~ '^[^(]*)\s*$'
" This line closes a parenthesis. Find opening
diff -r ad7bbe9ea65b runtime/indent/falcon.vim
--- a/runtime/indent/falcon.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/indent/falcon.vim Thu Feb 28 21:50:37 2013 +0900
@@ -132,7 +132,7 @@
" If previous line ends in a semi-colon reset indent to previous
" lines setting
if prevline =~? ';\s*$' && prevnonblank(prevline) =~? ',\s*$'
- return chg = chg - (2 * &sw)
+ let chg = chg - (2 * &sw)
endif
" If previous line ended in a comma, indent again
diff -r ad7bbe9ea65b runtime/indent/sml.vim
--- a/runtime/indent/sml.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/indent/sml.vim Thu Feb 28 21:50:37 2013 +0900
@@ -152,7 +152,7 @@
" Indent from last matching module if line matches:
elseif line =~ '^\s*\(fun\|val\|open\|structure\|and\|datatype\|type\|exception\)\>'
- cursor(lnum,1)
+ call cursor(lnum,1)
let lastModule = indent(searchpair(s:module, '', '\<end\>', 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"'))
if lastModule == -1
return 0
diff -r ad7bbe9ea65b runtime/syntax/spup.vim
--- a/runtime/syntax/spup.vim Tue Feb 26 22:54:11 2013 +0100
+++ b/runtime/syntax/spup.vim Thu Feb 28 21:50:37 2013 +0900
@@ -160,7 +160,7 @@
syn region spupCode start="^CODE"hs=e+1 end="^\$ENDCODE"he=s-1 contained
" oneline comments
if oneline_comments > 3
- oneline_comments = 2 " default
+ let oneline_comments = 2 " default
endif
if oneline_comments == 1
syn match spupComment "#[^#]*#\="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment