Re: Getting vim to work correctly.
Eric Schuele wrote: On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. PageUp capitalizes the letter next to it, and again removes me from insert mode. Home randomly capitalizes letters and shifts the cursor to the next letter. Insert decapitalizes the letter the cursor is over. Weird behavior like this... I was mistaken in that this is in vim-- this is in the natural version of vi that ships with the base OS. This is happening from PuTTY in default setting mode on a Windows box-- my MacBook is relatively better behaved. -- Jay Chandler / KB1JWQ Living Legend / Systems Exorcist Today's Excuse: heavy gravity fluctuation, move computer to floor rapidly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On Friday 28 September 2007 06:05:49 Jay Chandler wrote: Eric Schuele wrote: On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. PageUp capitalizes the letter next to it, and again removes me from insert mode. Home randomly capitalizes letters and shifts the cursor to the next letter. Insert decapitalizes the letter the cursor is over. Weird behavior like this... I was mistaken in that this is in vim-- this is in the natural version of vi that ships with the base OS. This is happening from PuTTY in default setting mode on a Windows box-- my MacBook is relatively better behaved. If you also run Linux, you can copy your ~/.vimrc or the systemwide one to your FreeBSD as ~/.vimrc and that should fix the problem. Also export your editor as vim in your ~/.bashrc. In addition, I make an alias so that when I use 'vi' as a command, I get 'vim' and not what FreeBSD uses as vi by default. I had the same problems that you report. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On 2007-09-28 13:45, Nikos Vassiliadis [EMAIL PROTECTED] wrote: On Friday 28 September 2007 11:56, Giorgos Keramidas wrote: On 2007-09-27 23:05, Jay Chandler [EMAIL PROTECTED] wrote: Eric Schuele wrote: On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. PageUp capitalizes the letter next to it, and again removes me from insert mode. Home randomly capitalizes letters and shifts the cursor to the next letter. Insert decapitalizes the letter the cursor is over. Weird behavior like this... Nothing weird, same here with every terminal I have installed(xterm, Eterm konsole). You should instal Vim if you want the old behaviour. Indeed. After Nikos' post I reread the original. Jay, what you are describing is: When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. This is expected behavior if you are using /usr/bin/vi. Keep in mind that nvi is a different program. Why don't you install Vim? Indeed, if vim's behavior is desired, then it may be a good idea to install vim. I usually keep around an installation of editors/vim-lite for those rare occassions that I have managed to break my local Emacs installation beyond repair :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On 2007-09-27 23:05, Jay Chandler [EMAIL PROTECTED] wrote: Eric Schuele wrote: On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. PageUp capitalizes the letter next to it, and again removes me from insert mode. Home randomly capitalizes letters and shifts the cursor to the next letter. Insert decapitalizes the letter the cursor is over. Weird behavior like this... I was mistaken in that this is in vim-- this is in the natural version of vi that ships with the base OS. This is happening from PuTTY in default setting mode on a Windows box-- my MacBook is relatively better behaved. This is usually a configuration error related to the $TERM setup of the client, so what's your terminal set to in the PuTTY setup of Windows? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On Fri, Sep 28, 2007 at 01:45:13PM +0300, Nikos Vassiliadis wrote: Keep in mind that nvi is a different program. Why don't you install Vim? That's my immediate recommendation, too. Another recommendation I might make is to use vi the way it was intended: keep your fingers on home row, and when you want to do something like page up or page down, use the command mode keys that correspond with the desired action. For instance, ^B will page up, and typing a number first will cause it to page up that many times. ^F does the same thing, but pages down instead. ^U and ^D move up and down, respectively, a number of lines determined by the editor's scroll option (usually half a visible page in Vim, measured in screen lines rather than file lines as it would be measured in vi). I, personally, like Vim. It's what I use. I also try to use it the way vi is best used, because the benefits apply just as much to Vim. Specifically, except when actually entering entirely new text, I stay in command mode. Editing and moving around in a document is much, much faster for me when I can do it all from the home row of the keyboard. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] McCloctnick the Lucid: The first rule of magic is simple. Don't waste your time waving your hands and hopping when a rock or a club will do. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On Friday 28 September 2007 11:56, Giorgos Keramidas wrote: On 2007-09-27 23:05, Jay Chandler [EMAIL PROTECTED] wrote: Eric Schuele wrote: On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. When in insert mode, and pagedown is pressed, the letter the cursor is over is capitalized, and the editor is removed from insert mode, as an example. PageUp capitalizes the letter next to it, and again removes me from insert mode. Home randomly capitalizes letters and shifts the cursor to the next letter. Insert decapitalizes the letter the cursor is over. Weird behavior like this... Nothing weird, same here with every terminal I have installed(xterm, Eterm konsole). You should instal Vim if you want the old behaviour. I was mistaken in that this is in vim-- this is in the natural version of vi that ships with the base OS. This is happening from PuTTY in default setting mode on a Windows box-- my MacBook is relatively better behaved. This is usually a configuration error related to the $TERM setup of the client, so what's your terminal set to in the PuTTY setup of Windows? Keep in mind that nvi is a different program. Why don't you install Vim? Actually, the only consistent behaviour is, that vi clones have inconsistencies among them :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Getting vim to work correctly.
Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... -- Jay Chandler / KB1JWQ Living Legend / Systems Exorcist Today's Excuse: heavy gravity fluctuation, move computer to floor rapidly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... FreeBSD by default uses nvi (new vi editor its own light version of vim) I would try to use that before I waist time with vim. It is included in your base distribution no need to compile. The commands are standard vi commands. For light editing you are probably better of to use ee (easy edit) the simplest FreeBSD specific editor included in distribution. This is not to say that vim doesn't work. You have to compile from ports and since I do not use vim I am not probably good person to answer your question. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting vim to work correctly.
On 09/27/2007 21:01, Jay Chandler wrote: Howdy. Sorry to keep hitting the list with questions today, but does anyone know how to get the home, delete, end, page up, etc. keys working correctly in vim? It works in Linux, drives me nuts in FreeBSD... They work perfectly fine here. How is it you expect those keys to behave? Define working correctly. -- Regards, Eric signature.asc Description: OpenPGP digital signature