C ccc Oct 24, 2013 #1 Hi I'd like to reinstall the vi editor on FreeBSD 8.4, because numbers of lines are missing.
chatwizrd Oct 24, 2013 #2 There is editors/vim If you mean the base vi that comes with the source code you would have to install that from /usr/src/usr.bin/vi.
There is editors/vim If you mean the base vi that comes with the source code you would have to install that from /usr/src/usr.bin/vi.
OP C ccc Oct 24, 2013 Thread Starter #3 Thx Thanks, I've reinstalled vim from ports, but numbers of lines are still missing. Howto How to enable them?
Thx Thanks, I've reinstalled vim from ports, but numbers of lines are still missing. Howto How to enable them?
OP C ccc Oct 24, 2013 Thread Starter #4 This problem is solved now! If you need numbers every time you start vi/vim: # vi ~/.exrc and append the following line: Code: set number
This problem is solved now! If you need numbers every time you start vi/vim: # vi ~/.exrc and append the following line: Code: set number
B Beastie Oct 24, 2013 #6 That's one of those essential options I like to have set system-wide in /etc/vi.exrc: Code: set leftright set number set ruler set showmode
That's one of those essential options I like to have set system-wide in /etc/vi.exrc: Code: set leftright set number set ruler set showmode
OP C ccc Oct 24, 2013 Thread Starter #7 Yep, but I really don't like to have these numbers on the left site. I like to have them down, like on Linux. Is it possible to have it the Linux way?
Yep, but I really don't like to have these numbers on the left site. I like to have them down, like on Linux. Is it possible to have it the Linux way?
B Beastie Oct 24, 2013 #8 The ruler option mentioned above shows the current line and column on the bottom of the screen.
OP C ccc Oct 24, 2013 Thread Starter #9 Thanks, using just: Code: set ruler set showmode in /etc/vi.exrc is exact what I want!