Skip to content

Commit

Permalink
Use getcurpos() to preserve vertical motion
Browse files Browse the repository at this point in the history
  • Loading branch information
JNRowe committed Nov 18, 2016
1 parent e9670c6 commit 6c9573c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc.d/maps.vim
Expand Up @@ -106,7 +106,7 @@ endif
nmap <silent> <Leader>ml :call <SID>ModelineStub()<CR>
function! s:ModelineStub()
let s:save_cursor = getpos('.')
let s:save_cursor = getcurpos()
let s:fmt = ' vim: set ft=%s ts=%d sw=%d tw=%d %s:'

let s:x = printf(&commentstring,
Expand Down

0 comments on commit 6c9573c

Please sign in to comment.