mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
settings: Remember cursor position in the view
Commit 9f3a52e73b
meant to only disable remembering options, but it
ended up disabling remembering of cursor position as well. The cursor is
still restored by last-position-jump (see usr_05.txt) if one has that in
their vimrc, but whenever there are any folds in the view, restoring
these folds resets the cursor again.
Not disabling saving of cursor position fixes this in the default
configuration and lets the user tweak viewoptions however they like.
This commit is contained in:
parent
9565f1f30e
commit
3b72535707
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ endif
|
|||
" Configure custom FoldText function
|
||||
" Altered version of the VimwikiFoldText
|
||||
setlocal foldmethod=syntax
|
||||
setlocal viewoptions=folds
|
||||
setlocal viewoptions-=options
|
||||
|
||||
function! TaskwikiFoldText()
|
||||
let line = getline(v:foldstart)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue