Public bug reported:

i am using ubuntu xenial.

when I use vim options at the end of a file like the following:

# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 autoindent paste

it should convert an entered tab into spaces (pressing tab should result
into 2 spaces). in the past it actually did. currently it does not
anymore. the problem here seems to be the last option "paste". if i
leave out the paste options the expandtab (et) option works again. the
paste option should not have any effect on the expandtab option though.


steps to reproduce:

- create a file with "# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 
autoindent paste" at the end of the file. 
- save it
- reopen it with vim
- in insert mode: press tab key
- the tab should have been converted into 2 spaces (but it doesn't)
- remove the paste option  "# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 
autoindent"
- save it
- reopen it with vim
- in insert mode: press tab key again
- now the tab is converted into 2 spaces

** Affects: vim (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/1576583

Title:
  vim paste option bracks expandtab option

Status in vim package in Ubuntu:
  New

Bug description:
  i am using ubuntu xenial.

  when I use vim options at the end of a file like the following:

  # vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 autoindent paste

  it should convert an entered tab into spaces (pressing tab should
  result into 2 spaces). in the past it actually did. currently it does
  not anymore. the problem here seems to be the last option "paste". if
  i leave out the paste options the expandtab (et) option works again.
  the paste option should not have any effect on the expandtab option
  though.

  
  steps to reproduce:

  - create a file with "# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 
autoindent paste" at the end of the file. 
  - save it
  - reopen it with vim
  - in insert mode: press tab key
  - the tab should have been converted into 2 spaces (but it doesn't)
  - remove the paste option  "# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 
autoindent"
  - save it
  - reopen it with vim
  - in insert mode: press tab key again
  - now the tab is converted into 2 spaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1576583/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to