Opened 10 years ago
Closed 7 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.
- 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
- 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 10 years ago by neverpanic (Clemens Lang)
Keywords: | vim removed |
---|---|
Port: | 7.4.258 _0+huge+python27 removed |
comment:2 Changed 10 years ago by mf2k (Frank Schima)
Cc: | raimue@… removed |
---|---|
Owner: | changed from macports-tickets@… to raimue@… |
comment:3 Changed 10 years ago by raimue (Rainer Müller)
Status: | new → assigned |
---|
comment:4 Changed 9 years ago by raimue (Rainer Müller)
Summary: | vim 7.4.258 change in operation → vim: in vi compatible mode without ~/.vimrc |
---|
comment:5 Changed 7 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.
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
.