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

learn more… | top users | synonyms (1)

1
vote
0answers
14 views

Cursor keys not working with vim when using iterm2 Build 1.0.0.20140629

I have just hit this problem, and I have tried all suggested fixes with zero improvement. The version I have running is Build 1.0.0.20140629 It is the large Apple keyboard with the cursor keys next ...
0
votes
0answers
44 views

Why the shortcuts `CTRL+s` and `CTRL+q` don't behave like `stty stop/start` in terminal?

Why the shortcuts <C-s> and <C-q> don't behave like stty stop/start in terminal? 1.Enviroment Env: vim+zsh+iTerm2 on Mac OSX 10.9.2. (Same problem in vim+terminal+bash on Mac OSX 10.9.2) ...
1
vote
0answers
52 views

How can I map `Ctrl+Alt+Char` and `Ctrl+Number` in vim on Mac OSX?

1.Enviroment Env: vim+zsh+iTerm2 on Mac OSX 10.9.2. (Same problems in macvim on Mac OSX 10.9.2) 2. Mapping Problem In mac, mappings for <A-char> won't directly work in mac. :inoremap ...
0
votes
0answers
49 views

How can I keep keybindings of iTerm and vim apart

1.Enviroment Env: vim+zsh+iTerm2 on Mac OSX 10.9.2. (Same problems in vim+terminal+bash on Mac OSX 10.9.2) 2. Mapping Problems Here are mapping problems list(You can chose any of them to anwser). ...
0
votes
1answer
19 views

mac terminal and vim syntax coloring on centos server

I am using a mac temrinal window to ssh to a centos server. I have installed vim-enhanced on the server, i have created an alias for vi=vim in my bash profile, as well as confirmed i am using ...
2
votes
1answer
41 views

How do I use <Ctrl+1> instead of <Ctrl+6> in VIM?

I have been searching for a while, but i still can't get it work. I add :map <C-6> <C-1> or :map <C-1> <C-6> to '.vimrc', but it doesn't work.
2
votes
2answers
40 views

History commands render incorrect on Bash Vi mode

I'm having this werid and really annoying issue in bash vi-mode. Env: Mac 10.9.2, iTerm 2 1.0 or Terminal.app, $TERM={screen-256color|xterm-256color|xterm|vt} Repro steps: Run some long commands ...
1
vote
1answer
98 views

Vim like terminal

I recently discovered terminal's feature, you can set the keys emacs or vi style I prefer the second. so if you do set -o vi You can use k j l h keys to navigate on the command line. And you can ...
1
vote
2answers
76 views

How do I copy text from vi?

I installed zsh, and I'm using vi. I want to copy a line from vi to somewhere else. How may I do this?
2
votes
1answer
98 views

how to use the + on the numeric keypad for "+p in vim, Mac Os X

Under Mac OS X, in vim, when I issue the command "+p using the numeric keypad for the + in normal mode, instead of pasting stuff from the system clipboard Vim enters insert mode and inserts the ...
3
votes
1answer
700 views

Powerline fonts in vim & OS X 10.9 Mavericks

I'm unable to get Powerline fonts working in Vim (homebrew) on OS X 10.9 Mavericks. My Vim config is available at https://github.com/aaronlake/vimrc. From 10.8.x to 10.9 I've imported the same ...
0
votes
2answers
399 views

vi shortcuts on bash on mac not working e.g. CTRL + E, CTRL + A [duplicate]

I have used vi as my main text editor for years now on Linux (and a few years back Mac too) and on my brand new Mac (running 10.8.4) I find when trying to edit a file using vi in Terminal I can not ...
4
votes
1answer
624 views

Can't run vi from terminal

Every time I execute these commands: vi or vim in the terminal, it gives me the following error: -bash: /usr/local/bin/vi: No such file or directory or -bash: /usr/local/bin/vim: No such ...
3
votes
1answer
1k 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
438 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 ...
1
vote
1answer
659 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
15 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 ...
4
votes
2answers
3k 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
273 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 ...
7
votes
3answers
6k 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 ...
4
votes
2answers
251 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: ...
3
votes
2answers
486 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.
3
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 ...