Re: weird defaults in Feisty
On May 22, 2007, at 11:39 AM, fREW wrote: Hey all, I just updated to feisty on a samba server machine and a lot of the vim defaults went crazy. For example: Pressing the Up or Down keys in insert mode add new lines with just A or B on them, respectively. That I can live with, but check this out, if I have the following sentence: fREW is a silly guy and my cursor is on the s, and I press cw, it changes to fREW is a sill$ guy and it works just like I had pressed cw and it replaces up the the $ or if I press escape it only has the new text I put in, but it's just so weird! Does anyone know where these new changes in Feisty come from? I wanted to just replace /etc/vim/vimrc, but it was exactly the same. Ideas? Thanks, -fREW The letters coming from the arrow keys is probably because you don't have set nocompatible in your rc file. Not sure what the other stuff is... I am using vim on feisty right now and have never seen that stuff before :) --Mike H
Re: weird defaults in Feisty
On May 22, 2007, at 11:59 AM, fREW wrote: I figured it out and if anyone else has this problem I am sending out the solution. Basically when I run vi it is running vim.tiny. vim.tiny sources /etc/vim/vimrc.tiny, not /etc/vim/vimrc, also, vim.tiny is pretty crippled, in that it doesn't even have syntax highlighting, so consider whether that's even what you want. -fREW Yes the tiny bugs, as I call them, have hit me in another way - I tried using syntax highlighting and got a sorry this command is not implemented error. That's what lead me to install a more complete version (namely vim-ruby, which has some minor annoyances of it's own btw). I attribute these default annoyances to the fact that ubuntu is a desktop distro, not really intended for development out-of-the- box. Luckily installing and configuring the vim that you want is a trivial matter so you can go about vimming proper in no time :) --Mike H
Re: weird defaults in Feisty
On May 22, 2007, at 12:34 PM, David Nečas (Yeti) wrote: This has been hopefully explained already (vi runs a binary that really behaves like vi, whereas vim runs something more featureful -- this common in Linux distros). Anyway, it's a bit strange when a vim user describes vi as `crazy' and `so weird'... Yeti -- http://gwyddion.net/ I think it just goes to show us that in 2007 there are people who have been raised on vim, i.e. they didn't convert from vi... vim is all some people are used to. I don't think there's anything wrong with that really. A bit strange... yes I agree there, but I imagine it's only going to be more common as time passes and vi becomes more and more a vintage program :) --Mike H
Re: Vim to Vi (Was: weird defaults in Feisty)
On May 22, 2007, at 3:11 PM, Tobia wrote: The point is: I don't consider my learning path in any way peculiar, and if Vim had suddenly reverted to Vi while I was in phases 1 to 3, I would have looked at my computer with a blank, baffled expression on my face. Tobia If you find that your path is non-linear, I've actually learned vi after vim, which is even more backwards haha. Some servers I need to admin have nano and vi... I'd much rather use vi than nano, even though nano is easier to most people, because to me vi is like vim. Of course vim is the clone, not vi, but since I learned vim first that's what I've grown to expect. --Mike H
Re: instructions for compiling VIM 7 on OS X?
On Feb 27, 2007, at 9:40 PM, Simon McCorkindale wrote: Peter Michaux wrote: On 2/27/07, Peter Michaux [EMAIL PROTECTED] wrote: I have found some pre-built binaries for VIM 7 for Mac OS X but nothing for how to build the binary so it lives in /usr/bin/vim. I would like the executible to live there just like the VIM 6.2 executable that comes with OS X does now. This is a good idea isn't it? Any links for this? It seems like just make works but this installs the app in /Applications/Vim.app/ which is quite different then what I expected. When I start this application it is like it's own application. It isn't just running inside Terminal. Thanks, Peter I think you're downloading the Vim GUI application designed for Mac OS X. To update your terminal-only version (ie /usr/bin/vim) I think you'll be okay just downloading the Vim 7.0 sources from vim.org that isn't platform dependent. The underlying Unix part of OS X is just FreeBSD I think so the same source package that'll compile on FreeBSD will probably also do so on OS X. I'm just new to OS X as of a week ago so I could be wrong ;-) Simon What I've done is download the Vim from the macvim site and then aliased vim to /Applications/Vim.app/Contents/MacOS/Vim so that I don't mess with OS X's binaries at all. I can use it graphically or from my terminal this way too. I use it from the terminal all the time, since OS X has such a nice terminal :) Might work for you Peter? Mike
Re: Insert mode navigation with the arrow keys
* Viktor Kojouharov [EMAIL PROTECTED] dixit: With the upgrade to vim 7, I am no longer able to navigate in insert mode with the arrow keys. This happens in any terminal. In gvim, they work fine. Instead of moving the cursor, the arrow keys do something like pressing O in normal mode, and then inserting A, B, C or D depending on the key pressed. They broke when I migrated to vim 7, and no other changes were made. The TERM variable hasn't changed, and neither did the ncurses library. This happens to me when I forget to put set nocompatible in my .vimrc could be? Mike
Re: vim is too smart for its own good
On Aug 31, 2006, at 3:19 PM, Bruce Korb wrote: Hi, I'd like to use a plain text editor. I don't want any surprises. I don't want it to think it understands language syntax. I don't want it to colorize things. I don't want it to do anything at all for me, unless I explicitly say it is okay for it to do so. In short, I want vi. Except Linux distributions now alias vi to vim and all its wondrous wizardry. ``set compatible'' is insufficient. I still get automated commenting when the silly thing has decided that I must be editing a C file. Leave me alone, please. I want it all turned off. I have been unable to find a simple way to do that. Or even any way to do that, because I have not found any way at all to turn off the ``you must want this line prefixed with a double slash'' feature. Help! Suggestions, please? Thank you! - Bruce you might try nvi? http://www.bostic.com/vi/ Mike
Re: ESC key is too far away.
On Aug 2, 2006, at 4:13 PM, Will Maier wrote: On Wed, Aug 02, 2006 at 01:03:52PM -0700, Brian Dorsey wrote: On 8/2/06, Yakov Lerner [EMAIL PROTECTED] wrote: Regarding remote nature of Esc key, I solved it for myself by I using mini-keyboard, 28x10cm. I love it. Everything is nearer on such keyboard, fingers need to travel less. I heard other people remap Esc key to some other less distant key. I don't remember where I got the idea, but I've been very happy with mapping double commas to ESC: Make double commas into Escape. imap ,, esc I tend to use CTRL-C (which isn't exactly ESC but tends to function like it in vim) or CTRL-[ instead of ESC. No remapping needed, though your terminal configuration may get in the way. On my powerbook I changed caps lock to be ctrl, and now can achieve the effect of ESC ( via ctrl-[ ) without either hand leaving the home row :) Mike H PS it's handy for irssi too!
Re: Using GUI on Mac OS X
On May 25, 2006, at 2:57 AM, Axel Kielhorn wrote: Am 25.05.2006 um 07:04 schrieb Peter Hodge: Hello all, I am trying to compile vim with gui support on Mac OS X 10.2, but it doesn't seem to work. I use ./configure --enable-gui=auto A simple ./configure should work. (It will detect darwin and enable the carbon gui. I'm using ./configure --enable-multibyte to get unicode support. This is on 10.3, but 10.2 shouldn't be different. Do I need to install some additional libraries such as GTK to make this work? If you want a GTK vim, you will need these libraries. You can get then with fink. Axel You may want to check out http://macvim.org/OSX/index.php Saved me the trouble of compiling vim at all. Mike
Re: Shell support in Vim?
On May 10, 2006, at 2:07 PM, Jerin Joy wrote: Hi, I was just wondering if adding shell support to vim is a feature thats being considered. It would be great to be able to run commands from vim instead of having to shift to terminal to do so. I've seen vim shell but its a separate plugin: http://www.wana.at/vimshell/ You can !command to run things in your shell but it's not quite a full shell within vim. I think emacs has such functionality but I'm not sure how useful it is. In a case where you really need a shell you could use another (x)term or perhaps use screen? If you want vim like functionality in your shell you might want to look into the vi keybinding features available in bash and zsh? Just a thought, Mike