Opened 6 years ago

Closed 2 years ago

#44708 closed defect (fixed)

vim: in vi compatible mode without ~/.vimrc

Reported by: basmac Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: vim

Description

Since the last Macports update various users have complained about operational changes in vi/vim.

  1. the arrow keys and insert mode stopped working, we had to do the following

Vim / Vi arrow keys making A,C, B etc characters instead of moving around in insert (‘i’) mode ? :set nocompatible

  1. viminfo seems to have stopped working, for remembering a search string across vi sessions

We have no workaround other than /usr/bin/vi.

All the above works fine in the Mac version in /usr/bin/vim

Change History (5)

comment:1 Changed 6 years ago by neverpanic (Clemens Lang)

Keywords: vim removed
Port: 7.4.258 _0+huge+python27 removed

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Cc: raimue@… removed
Owner: changed from macports-tickets@… to raimue@…

comment:3 Changed 6 years ago by raimue (Rainer Müller)

Status: newassigned

Without a vimrc, vim always behaves like vi. For /usr/bin/vim, this is solved by the existence of /usr/share/vim/vimrc. Creating an empty ~/.vimrc will solve this as a workaround and I guess most users have a ~/.vimrc anyway.

This ticket could be resolved at the same time with #37727 by adding a default /opt/local/share/vim/vimrc.

comment:4 Changed 5 years ago by raimue (Rainer Müller)

Summary: vim 7.4.258 change in operationvim: in vi compatible mode without ~/.vimrc

comment:5 Changed 2 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

Vim 8 now always loads a defaults.vim that enables nocompatible. I consider it enough to mark this ticket as fixed.

Note: See TracTickets for help on using tickets.