Skip to content

Instantly share code, notes, and snippets.

@splhack
Created October 2, 2009 04:11
Show Gist options
  • Save splhack/199457 to your computer and use it in GitHub Desktop.
Save splhack/199457 to your computer and use it in GitHub Desktop.
--- autoload/acp.vim.orig 2009-09-15 22:54:34.000000000 +0900
+++ autoload/acp.vim 2009-10-02 13:08:38.000000000 +0900
@@ -136,6 +136,9 @@
let s:posLast = getpos('.')
if !exists('posPrev')
return 1
+ elseif has('gui_macvim')
+ return (posPrev[2] + 1 == s:posLast[2] ||
+ \ posPrev[2] - 1 == s:posLast[2])
elseif has('multi_byte_ime')
return (posPrev[1] != s:posLast[1] || posPrev[2] + 1 == s:posLast[2] ||
\ posPrev[2] > s:posLast[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment