Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
v:lnum doesn't return the current line number in my gvim, I modified the script a bit, this way :
[...] if l:ccol != l:fcol call cursor(line('.'), l:fcol) else call cursor(line('.'), l:hcol) endif [...]
There is a similar function in smartmove.vim (http://www.vim.org/scripts/script.php?script_id=3050) that also takes into account the line wrapping and will do g0/g^ on wrapped lines. The End key is mapped in a similar way.
You can install Home/End keys with :call smartmove#MapHomeEnd() or adapt the code in smartmove#MapHomeEnd() for other keys.