a text editor that runs in a command line interface. Includes other variants such as vim

learn more… | top users | synonyms

0
votes
1answer
30 views

How do I edit current shell command in VI

I have seen in blogs on Linux machines you can edit the current bash shell command in VI (or whatever the EDITOR is set to) by pressing ctrl-x,ctrl-e. This doesn't seem to work on 10.8. Any ideas on ...
1
vote
2answers
80 views

Use Cmd as Ctrl key in vim

How can I input commands such as <Ctrl-W> and <Ctrl-]> in vim using Cmd instead of Ctrl? The reason why I want to do it is because it's more comfortable. When I need to switch to a ...
0
votes
1answer
144 views

How do I compile vim with the --enable-gui=yes flag on OS X 10.8.2

I'm trying to compile the latest version of vim (7.3.785 as on date) with the --enable-gui option set to yes: ./configure --enable-gui=yes make but make fails with several errors (full output). I ...
1
vote
0answers
14 views

How can I get vi-like keybindings in other Mac applications/text entry fields than just Terminal? [duplicate]

Possible Duplicate: Is it possible to make all text fields in OS X editable with Vi keybindings? I use vim a lot, and like the keybindings. I'm aware that I can get vi-like keybindings in ...
1
vote
1answer
627 views

error: There was a problem with the editor 'vi' when using it with git

I have this strange problem with using vi as the editor for git commit -a. Normal flow is: I type git commit -a, vi appears, I enter my commit message, and then :wq to save & exit from vi. This ...
0
votes
1answer
125 views

tmux on Mac, how can I enable vi mode for the command line

I want to be able to hit escape and then use vi navigation keys like b (back a word). I can do this in my regular terminal sessions by setting set -o vi in my .bashrc file. However it's not working ...
5
votes
3answers
2k views

How do I run VI with colors on Lion?

I'm looking to enable color syntax highlighting in vi. I just enabled colors in Terminal via here. Any ideas on how to enable this? NOTE: Usually on Linux when I open vi with vi file.txt and it opens ...
3
votes
2answers
131 views

loosing vi mode in terminal

My favorite text editor beeing VIM made me add the follwing line to my ~/.bashrc set -o vi As expected, hitting escape lets me execute a vi command, BUT ONLY ONE ?!? For example if I do this: ...
2
votes
2answers
470 views

Running VI on Lion

Lion came with a sad surprise to me. Now, every time I want to run VI on terminal, I get VIM. I hate VIM. How do I get my old and bad VI back to the system? thanks.
2
votes
3answers
1k views

Where to put the .vimrc file for sudo in OS X Lion?

I always put a .vimrc in my home folder for turning :syntax on. But in OS X Lion it seems that sudo vi foo.txt ignore or can't find this vim configuration anymore. Has anyone experiences the same ...