]> code.delx.au - dotfiles/commitdiff
Fixed error on unmapping wordwrap stuff
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 3 Apr 2008 07:28:37 +0000 (18:28 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 3 Apr 2008 07:28:37 +0000 (18:28 +1100)
.vim/macros.vim

index 404ee4a9638dea82373786fab19f0fe416d23cd8..f68e41cae5f00be656f499574a839882c72a35e6 100644 (file)
@@ -60,17 +60,17 @@ imap <F10> <C-o>:call WrapToggle()<CR>
 function WrapOff()
        setlocal nowrap
        " Go up and down by physical linebreaks when not wordwrapped
-       iunmap <End>
-       iunmap <Home>
-       iunmap <Down>
-       iunmap <Up>
-       nunmap <Down>
-       nunmap <Up>
-       nunmap <End>
-       nunmap <Home>
-       nunmap 0
-       nunmap ^
-       nunmap $
+       iunmap <buffer> <End>
+       iunmap <buffer> <Home>
+       iunmap <buffer> <Down>
+       iunmap <buffer> <Up>
+       nunmap <buffer> <Down>
+       nunmap <buffer> <Up>
+       nunmap <buffer> <End>
+       nunmap <buffer> <Home>
+       nunmap <buffer> 0
+       nunmap <buffer> ^
+       nunmap <buffer> $
        " Allow only backspace & space
        set whichwrap=b,s
 endfunction