odeke-em / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
**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 commented 9 years ago
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 commented 9 years ago
Works as documented. Closing.

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Makes sense. Thanks for the follow up!

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