Thursday, April 23, 2015

Open session does not restore position in files

Hi,

I create tabs and windows with certain positions to files and I try to save session and open it using the gvim toolbar and with the mappings I have:

" Show the session open dialog
map <tab>[ :browse source!<cr>

" Show the session save dialog
map <tab>] :browse mksession!<cr>

But for some windows the cursor is at the top of the file and not at the line number when I saved the session.

I have multiple windows opened on the same 2 or 3 same files.

Does somebody know if line numbers should be remembered in sessions? And why it is not keeping them in this case?

Thank you.

Alexandre

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: