0
votes
3answers
564 views

How to set colors in OS X (Mavericks) terminal?

I want to set the color's palette of my terminal in order to use properly the Solarized colorscheme for Vim (http://ethanschoonover.com/solarized). I understand that i've to modify my .bash_profile ...
0
votes
2answers
62 views

Vim: How to append even lines to odd lines

I have the following lines. 1 4 2 10 3 20 4 35 5 56 ... ...(many more lines after this) And I want to change to the following in Vim. 1 4 2 10 3 20 4 35 5 56 ... ... How can I achieve this?
0
votes
2answers
155 views

home/end in INSERT mode in vi on a Mac

On a Mac I can go to the start and end of an line in vi, when not in INSERT mode: ^ (start of line) $ (end of line) This is for example explained here: How do I do “end” , “home”, “page up” and ...
0
votes
1answer
84 views

where is vimfiles directory on mac OS?

I am a new user of mac OSX, I found there is no vimfiles directory under /usr/share/vim, but directory vim73 is there. this vim was shipped with OS and I didn't install it. vimfiles was used for ...
1
vote
2answers
112 views

Vim on Mac OS X terminal

I'm on Mac OS X 10.9 using Vim 7.4 and I'm looking to find a way to map the key combination behavior "option + delete" to delete a word backwards. Currently, this works on every app in the OS, except ...
0
votes
3answers
82 views

Cannot find where this colorscheme setting is being set for vim on OS X

A long time ago I was farting around with color schemes for vim and I remember setting a line somewhere colorscheme sonofobsidian. I did this before I knew what I was doing with vim, unix, OS X, etc. ...
3
votes
0answers
470 views

Is MacVim copy-to-clipboard supposed to be working on OS X Mavericks?

I've recently found out that I can no longer copy text out of MacVim and paste into other Mac apps. I used to be able to do this on Mountain Lion. I have the usual configurations set, namely: set ...
0
votes
1answer
222 views

Remapping all OSX shortcuts from cmd to ctrl

I am new to OSX, and since I have mapped CTRL to CapsLock, and use alt a lot, I dont need CMD, how to remap all shortcuts globally not to use CMD?
0
votes
1answer
361 views

Is it possible to launch MacVim NOT in full screen mode?

Whenever I Launch MacVim it takes up the whole screen. I don't want this. Is there any way to prevent it from happening? I run OS X 10.8.
1
vote
0answers
49 views

Is it possible to use Vim plugin CSExact with iTerm2?

I'm a bit anal about my color schemes, and in order to get really nice colors in Vim, I'm trying the CSExact plugin. I'm not sure if it's supposed to work at all in iTerm2 though? My terminal is set ...
1
vote
1answer
58 views

File Corruptions when using Vim on iMac

I'm experiencing some strange file corruptions when editing PHP files in VIM/iTerm. This is not exclusive to these but the corruptions are slightly different in Nano. Same issues appear in the ...
-1
votes
1answer
111 views

How is OSX supposed to work without a mouse? [closed]

I'm a VIM user so I do buy the no-mouse manifesto. I do everything without a mouse and am more productive this way. OSX is not being very friendly, though. How I'm supposed to navigate through files ...
0
votes
1answer
192 views

Using Linux as a Virtualbox guest on a Macbook Pro. Trying to paste into Vim, which is open in gnome-terminal

I am using XCFE Arch Linux as a Virtualbox guest on a Macbook Pro. Trying to paste into Vim, which is open in gnome-terminal. How can I do that? The usual suspects ("+P, Middle mouse click, etc) are ...
1
vote
2answers
82 views

Vim is missing on Lion

I uninstalled brew and macports and reinstalled homebrew. I dont have vi under /usr/bin/ anymore. How can I fix this? I tried using brew to install it but it says Error: No available formula for vi ...
1
vote
1answer
95 views

“autocmd FileType” doesn't work the same way in Mac and Linux

Here is a small vimrc snippet that I was trying to use on my Mac function SetCommonDefaults() " Set line numbers set nu endfunction autocmd FileType cpp call SetCommonDefaults() What I expect ...
1
vote
1answer
91 views

Bind key in vim for switch window

Operation System: OS X Console: iTerm sh: zsh This worked fine i go to bottom window from top: map <c-down> <c-w><down> imap <c-down> <esc><c-w><c-down> ...
1
vote
3answers
608 views

How do I represent the capslock key for vim key mappings?

I'm trying to set a key mapping in vim. I know that <c-j> means Control-J. What is the text representation of the capslock key? I tried <capslock> but that does not work. Is there a list ...
0
votes
1answer
174 views

How to merge file when unarchive the tarball?

I downloaded a tarball(abc.tar.gz) which has a root folder(abc) and multiple subfolders(a, b, c, etc). And I have a folder called Target in machine(macbook pro), with multiple subfolders(a, b, c, etc) ...
2
votes
2answers
1k views

Shortcut for redo in vim

In vim, u = undo r = replace Is there one key shortcut for redo ? ctrl + r is a two key stroke (in my thinking), and I often hit the wrong combination (I just recently switch to Mac) Or is it ...
3
votes
2answers
3k views

How to let Ctrl + Page Down switch tabs inside Vim in Terminal.app?

When running vim inside the Terminal in Ubuntu, I can use Ctrl + Page Up or Page Down to switch between the vim tabs. How do I set up this for Terminal.app or iTerm2 for Mac OS X? I have a Macbook Air ...
2
votes
1answer
98 views

What is the opposite of this terminal keyboard action?

Open terminal > preferences > keyboard I have control cursor right as \005. I like it! When inside Vim, it moves the page down 1 line while keeping my cursor unmoved. Try it. My question is: how ...
0
votes
0answers
664 views

Remap control key in iTerm2 to caps lock key

I want to remap the control key to use the caps lock key in iTerm2. How can I do this?
7
votes
4answers
6k views

Solarized colors in vim don't seem to be working for me

I am running vim, and trying to get the vim solarized colors to work in terminal. I have this in my vimrc file: set syntax on set t_Co=256 " let g:solarized_termcolors=16 set background=light ...
0
votes
2answers
890 views

Already have vim installed, how to re-install over existing?

I'm on a mac osx and I need to re-install or build VIM with some custom switches. How should I go about doing this? Will it just write over the existing or should I un-install somehow? I know ...
0
votes
2answers
380 views

MacVim symlink points to earlier vim version

Using homebrew I installed MacVim 7.3, but when typing "vim" in terminal it points met to 7.2 version that I installed by downloading MacVim from the web. I must have installed it a while ago and set ...
1
vote
1answer
631 views

MacVim IM INSERT MODE

While using MacVim to edit markdown files, when I enter the insert (i) or append (a) mode and type the grave ` character to start or end a line of code, MacVim switches to IM INSERT MODE and sometimes ...
0
votes
3answers
2k views

Mapping keys in VIM on Mac

I had a previous problem that was solved, but it seems I am stuck once again. I'm trying to reassign the keys for switching between Windows to be more intuitive. I've found that you should be able to ...
14
votes
2answers
7k views

How does one switch between windows on VIM?

I'm using both Vim and MacVim (or well, trying to). I installed the Tagbar plugin but find it impossible to switch to the actual Tagbar window to make my selection. I've been reading loads about ...
0
votes
5answers
2k views

How to have Vim launched and opening a specific folder at startup on MacOS?

Switching from TextMate to Vim, I'd like to have Vim launched and opening a specific folder at startup on MacOS? Manually I can start Vim from the shell with mvim someFolder. I use MacOS 10.6 and ...
2
votes
1answer
209 views

How do I get Unifying Keyboard to swap caps lock and control key on Mac OS-X?

I recently bought the Logitech K320 keyboard. However, when I tried to swap my caps lock key and control key via system preferences, it wouldn't take. Has anyone got this to work?
1
vote
2answers
212 views

Do I need the meta-key for vim?

I'm looking in to learning emacs or vim. I started out with emacs but found the need for a meta key to be a hassle, especially since I have a non-english keyboard layout on my macbook. So far I ...
5
votes
3answers
3k views

How to switch MiniBufExplorer tabs in VIM when connecting with xterm?

I just installed MiniBufExplorer in VIM on an Ubuntu server, to which I'm connecting using xterm from a Mac (via ssh). From what I gather, after giving the command :set mouse=a I can use the mouse in ...
0
votes
0answers
149 views

remapping cap_locks key to escape in snow leopard [duplicate]

Possible Duplicate: How can I remap my Caps-Lock key to Escape (for Vim) in Snow Leopard? I want to remap my cap locks key to escape specifically for vim, but all the methods suggested in ...
5
votes
3answers
3k views

Mac OS X: how to open vim in terminal when double click on a file

I have defined my own custom vim file type with highlighting etc. I would like to open it using the terminal based vim when I double click on it. I am using mac os x. Any pointers on how to start ...
4
votes
1answer
974 views

Mapping a Piped Shell Command in Vim

In a previous question I asked about outputting evaluated code to a new window in MacVim. I got a great solution, but it presented another question: How can I map a key command in my .vimrc that ...
2
votes
1answer
1k views

What's the difference between tiny, huge and small in vim on MacPorts?

I'm trying to install vim via MacPorts. I found this port at http://trac.macports.org/browser/trunk/dports/editors/vim/Portfile. There are variants like tiny, small and huge. Is there any way to tell ...
39
votes
6answers
20k views

Mac OS X Terminal: mouse support?

Is there a native option (ie. without installing extra soft/package/plugins) to enable mouse support in the Terminal app? Actually, I'm using a lot vim with the option set mouse=a (activating mouse ...
8
votes
5answers
7k views

How to jump to the beginning or end of line in vim + OS X

In terminal I can do this by pressing shift+home and shift+end, but it doesn't seem to work in vim. Home and end keys scroll terminal window only. I would like to jump in edit mode.
2
votes
4answers
3k views

vim is very slow on my Mac

I use vim on Mac OS X, but this is realy slow in Terminal.app and iTerm. Progress over many lines becomes tedious. some idea of solution?
15
votes
3answers
9k views

Mousing and Page-Up/Down in Terminal for Mac OS X

Compared to *nix, Terminal.app seems pretty lame. How can I get it to: Send Page-Up/Down to an application, instead of just scrolling the terminal output Mouse around in vim. set mouse=a isn't ...
4
votes
4answers
6k views

Vim and mouse with ssh from Mac to Linux

I certainly know it's possible to make the mouse work in Vim on a remote session to a Linux machine from my Mac, but I haven't figured out just how. Daily vim gives a tip on making it work but if I ...
1
vote
1answer
480 views

How do I run gvim within the same shell window?

I'm running gvim on my mac from /usr/local/bin. If I invoke it from a terminal window it opens it up in a new window. I'd like to get it to just run in the same window I'm already using. How do I ...
2
votes
3answers
238 views

How to type # in vim with a British keyboard layout on OS X

My Mac has a British keyboard layout and the # symbol is entered with option-3, instead of shift-3 as with the US layout. This arrangement, though odd, works fine most of the time. However, when ...
2
votes
2answers
4k views

How to use UTF-8 in vim on Mac OS X?

I want to edit UTF-8 documents with vim (7.2 installed via MacPorts, big feautre set, iconv support enabled, multi-byte support enabled) on Mac OS X 10.4 within terminal.app. Terminal.app is ...