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

Setting (paste) input mode after setting ruler causes ruler to hide #184

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 7 comments
Closed

Comments

@GoogleCodeExporter
Copy link

**What steps will reproduce the problem?
1. With file open in vim, issue command ':set ruler'
2. issue command ':set paste'

**What is the expected output? What do you see instead?
After issuing ':set ruler', the line and column number appear in the lower 
right hand corner.
I would expect that to remain after doing ':set paste'. But instead, line and 
column numbers disappear. 

**What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 23 2013 15:59:08)
MacOS X (unix) version
OS X 10.9

**Please provide any additional information below.
It seems to be strictly an order thing. If paste mode is set first, and then 
ruler, paste mode will still be enabled but ruler numbers will be visible. 

Original issue reported on code.google.com by kyle.hau...@gmail.com on 2 Dec 2013 at 5:00

@GoogleCodeExporter
Copy link
Author

This is expected behavior. See ":help 'paste'" where is listed the options that 
are reset while 'paste' is set. This list includes 'ruler'.

Original comment by gary....@gmail.com on 2 Dec 2013 at 6:47

@GoogleCodeExporter
Copy link
Author

Works as documented. Closing.

Original comment by chrisbr...@googlemail.com on 3 Oct 2014 at 11:43

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

OK, I see that it's documented at :help 'paste'. But...WHY? I understand most 
of the options that are reset or disabled in paste mode, because they affect 
the inserting of text. But why 'ruler' and 'showmatch'? I guess 'showmatch' can 
cause a paste to take longer as the cursor can move around unnecessarily; but 
that's a stretch, and 'ruler' has no justification at all that I can think of. 
Especially since 'statusline' continues to function just fine.

Original comment by benjamin...@rockwellcollins.com on 3 Oct 2014 at 1:46

@GoogleCodeExporter
Copy link
Author

Curious as well. What is the technical explanation for why "set ruler" 
interferes with paste mode?

Original comment by Josh.End...@gmail.com on 12 Jan 2015 at 11:47

@GoogleCodeExporter
Copy link
Author

Pasting can involve a large amount of text (someone just complained about 
pasting more than 1500 lines not working).  Keeping the ruler updated adds 
overhead and makes pasting a bit slower.  'showmatch' is even more expensive.  
Setting the 'paste' option is a quick way to make pasting efficient.

Original comment by brammool...@gmail.com on 14 Jan 2015 at 10:42

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Makes sense. Thanks for the follow up!

Original comment by Josh.End...@gmail.com on 14 Jan 2015 at 6:59

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

No branches or pull requests

1 participant