Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last place centering #2

Closed
cpixl opened this issue Jan 21, 2015 · 3 comments
Closed

Last place centering #2

cpixl opened this issue Jan 21, 2015 · 3 comments

Comments

@cpixl
Copy link

cpixl commented Jan 21, 2015

It would be nice if it was possible to center the line on the screen instead of being at the bottom. Maybe a zz would handle it?

@farmergreg
Copy link
Owner

My vim already centers the screen. It might be one of my plugins doing it.... I'll dig deeper in to this later this week. If vim doesn't center it automatically, we will definitely add this feature!

@Dan-Silva can you double check and see what happens when you jump to the " mark ( type g`" ) inside a large text file? If it doesn't center, I'd also be interested in which version of vim you're running.

Thanks!

@farmergreg
Copy link
Owner

thanks @Dan-Silva for the great idea! Please try out the new code and let me know how it works for you!

@cpixl
Copy link
Author

cpixl commented Feb 5, 2015

g"only takes me to (apparently) the last line I was when I closed the file, but it doesn't center.vim --version` gives me this:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:47)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI. [...]

The patch fixed it, it looks nice now :) Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants