Vim, como evitar: set efeito colateral cuc de definir o número da coluna

1

Possivelmente isso é um bug, mas não tenho certeza. Através do fluxo de usuários em #vim em freenode, eu confirmei nenhum efeito colateral em 7.3.409, mas há um efeito colateral em 7.3.547 (a versão em meu computador).

A maneira mais fácil de testar é copiar e colar o seguinte arquivo em um buffer vim, pular para o início (gg) e seguir as instruções.

Hi there, this is a test case.
This line is short.

After opening this file issue the following commands:
$j:set cuc<Enter>k

You'll notice that the cursor should be on the period after "case" this is expected behavior.

Next enter the following commands:
:set nocuc<Enter>$hj:set cuc<Enter>k

You'll notice that the cursor should now be on the word "a" rather than on the "e" at the end of "case"

So when you have a column value (not end of line) then :set cuc modifies this value as a sideeffect.

Existe alguma maneira de contornar esse problema? Isso é um inseto? Alguém pode se reproduzir?

    
por OmnipotentEntity 18.03.2013 / 02:28

0 respostas

Tags