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

learn more… | top users | synonyms (1)

0
votes
2answers
20 views

File contents remains in terminal after exiting Vim?

I'm using the stock terminal with zsh and vim. After I exit vim, the file contents remains in the terminal. Ideally, only the previous history would be in the terminal when I exit vim (such as the ...
0
votes
0answers
16 views

How to make macvim recognise framework python in OS X?

By default, the sys.path of python in terminal vim and sys.path of python in macVim is different. In both environment, :python print sys.path in terminal vim returns: ...
0
votes
0answers
43 views

How to mouse copy a very long line in vim terminal OS X

I want to copy with mouse one line from one vim terminal to another vim terminal. This line is huge and has a hidden character (I presume at the beginning) that I do not want to copy. In other ...
0
votes
0answers
21 views

Shell not opening binary pointed to by 'which'

I installed vim74 using homebrew, and which vim returns it's path. However when i open vim, i still get into the version coming with OSX (/usr/share/vim). Why is that even though /usr/share is not in ...
0
votes
0answers
28 views

LaTeX PDF Preview in Vim

Is there plugin similar to Emacs LaTeX Preview Pane but for Vim on OSX? I need it to preview the PDF inside Vim, in its own pane/buffer. I don't need to be able to edit the PDF so no pdftotext is ...
1
vote
0answers
63 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
100 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) ...
2
votes
1answer
242 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 ...
1
vote
0answers
96 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
41 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
97 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
73 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
261 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
108 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
161 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
797 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 ...
-1
votes
2answers
587 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
1k 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 ...
6
votes
1answer
3k 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
714 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 ...
2
votes
1answer
900 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
16 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 ...
7
votes
3answers
4k 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
363 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 ...
11
votes
3answers
7k 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 ...
5
votes
3answers
334 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
488 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
2k 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 ...