35 votes

How to use vimium to select text from a page

If you specifically want to search for mailto but then select verycomplicatedandlong... i.e. search one string in order to find the second (unknown) string, which you then want to select. / mailto ...
Filip Nikolov's user avatar
20 votes
Accepted

Selecting the "Don't Save" button using the keyboard

The default keyboard command for Don't Save is Cmd ⌘ Backspace ⌫ which was introduced with Lion Prior to that it was Cmd ⌘ D which some apps will still respect, but not all. very late addition ...
Tetsujin's user avatar
  • 49.6k
17 votes

How does one switch between windows on VIM?

It's possible to remap these to a more convenient keys (i.e. instead of Control+W followed by h/j/k/l) Add this to your .vimrc nnoremap <C-H> <C-W>h nnoremap <C-J> <C-W>j ...
Nic Wanavit's user avatar
7 votes

How to specify shell for vim?

Not enough reputation for adding a comment, this is meant as a response to @BlackSheep comment in the accepted answer: Despite the similar syntax, the set shell=/bin/bash does not apply to shell ...
zeiky.dev's user avatar
6 votes

Homebrew “linkapps” command not found. What can replace it so I can use MacVim as default editor for some file types?

It seems like brew linkapps has been depreciated since around January 2017 according to this pull request’s comment thread. And the version of Homebrew you are using is up to date as off August 2018. ...
Giacomo1968's user avatar
  • 55.5k
6 votes

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers?

I work on Windows 10 and :recover didn't find a swap file. vim -r listed the swap file from the last edit session (also never saved) named _.swp. Recovering was possible with :recover _.
rolacher's user avatar
5 votes

Vim in OSX: How to do page-up/page-down/go to EOL through a vim file opened in terminal?

The easiest and best solution is n+↓, where n is the number of lines you would like to go down, and ↓ is the down key. I regularly just do 12+↓ and 22+↓.
T.Woody's user avatar
  • 151
4 votes

Homebrew “linkapps” command not found. What can replace it so I can use MacVim as default editor for some file types?

The alternative these days is brew install --cask macvim see here. I tested it with MacVim just now and it works like a charm.
Tobias Wilfert's user avatar
4 votes

How to use vimium to select text from a page

You might find the directions for Vimium Visual Mode helpful: https://github.com/philc/vimium/wiki/Visual-Mode They also include Caret Mode. They are the same as vim in general, though perhaps not as ...
jasonleonhard's user avatar
3 votes

How to use vimium to select text from a page

As a slight improvement on Filip's answer, I would suggest searching for mailto like he suggested, but then going into visual mode right away, then using w or e to select text to the end of the ...
potatop's user avatar
  • 31
3 votes

MacVim.app doesnt open any edit windows

If your .bash_profile has any shell command that spawns a new shell, it probably is the culprit. Try run: defaults write org.vim.MacVim MMLoginShell -bool NO If it works, you can look at the ...
Fish Monitor's user avatar
3 votes

Keep window size when resizing font in MacVim

Use set guioptions+=k. See https://github.com/macvim-dev/macvim/issues/1006. Probably should be the default but either way the option will work.
ychin's user avatar
  • 31
2 votes
Accepted

Plugins configuration file for Vim

You can separate settings for plugins in several files, and include them in .vimrc For example: " My Plugin settings { if filereadable(expand('~/.vim/my.plugin.settings.vim')) source ~/.vim/my....
Iryston's user avatar
  • 136
2 votes

MacVim is not found by Spotlight

Install the cask. It will install MacVim to the Applications directory and spotlight will be able to find it. Uninstall the non-cask formula before you do so. brew uninstall macvim brew install ...
m-sharp's user avatar
  • 203
2 votes

MacVim is not found by Spotlight

Installing MacVim using cask seems to make it available in Spotlight: brew cask install macvim
Jon's user avatar
  • 405
2 votes

MacVim - how to make mouse based selection be "visual mode"?

I think you can use this: :set mouse+=a This will tell vim to use the mouse for visual mode.
Kristian's user avatar
2 votes

Disable confirmation for loading file on file changed (MacVim)

You can achieve this for the most part with :set autoread From :h autoread *'autoread'* *'ar'* *'noautoread'* *'noar'* 'autoread' 'ar' boolean (default off) global ...
DJMcMayhem's user avatar
  • 1,052
2 votes
Accepted

Vim NERDTree increases the command line size and doesn't shrink it back

This is an incompatibility between nerdtree and vim 9 and is tracked here. The current workarounds are: let g:NERDTreeMinimalMenu=1 in ~/.vimrc Using this fork
Trent Earl's user avatar
1 vote

How to move from insert to replace/overtype mode in vim

You can map a key combination to do the role of the "Insert" key while in insert mode. For instance, to use Control-T: :inoremap <C-T> <Ins>
filbranden's user avatar
  • 1,551
1 vote

Setting alias to use Macvim in terminal instead of standard Vim

The mvim is universal starting (bash) script for the MacVim. It works based on his own name, e.g if it's name starts with m or g will start the GUI version, otherwise the console version. You can see ...
clt60's user avatar
  • 877
1 vote

Plugins configuration file for Vim

If Pathogen is not registering plugins before $HOME/.vim (which is extremely unlikely), you could simply drop your configuration file into $HOME/.vim/plugin/. That's all. No need to test anything (*), ...
Luc Hermitte's user avatar
  • 1,883
1 vote

vim and macvim are not reading my .vim directory

The easiest way I found was to add the file I needed to the system vim file that MacVim created on installation. This file can be found using :scriptnames command. I needed to use pathogen and it ...
debo's user avatar
  • 111
1 vote

Is there any way to use multiple fonts simultaneously in Vim?

If you just want to fast change to a smaller font then use : ctrl - to minimize and ctrl + to increase size However I do not think pt. it is possible to have multiple fonts, it would be a feature I ...
serup's user avatar
  • 121
1 vote

Vim: Shortcut to move to beginning of next line / end of previous line?

+/- let you move up and down on the start of every line. $ will go to the end of line, and you'll stick there with k/j.
DZet's user avatar
  • 113
1 vote

The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?

My two cents, I run this whenever upgraded my python via homebrew. brew reinstall vim --HEAD --with-cscope --with-lua --override-system-vim brew reinstall macvim --HEAD --with-cscope --with-lua --...
Alan Dong's user avatar
  • 193
1 vote

Vim scrolls very slowly when a line is too long

I think you seem to have cursorline set. I found that used to be the biggest contributor to lag in my vim. You might want to try disabling that.
AravindKrishnan's user avatar
1 vote

Move cursor to beginning of non-whitespace characters in a line in Vim

I just remap the 0 key to ^ Edit your ~/.vimrc set visualbell t_vb= map 0 ^
Sunding Wei's user avatar
1 vote

MacVim <K> not working correctly: WARNING: terminal is not fully functional

Try solving this by enabling the builtin man page plugin: runtime ftplugin/man.vim if has("gui_running") nnoremap K :<C-U>exe "Man" v:count "<C-R><C-W>"<CR> endif
cmcginty's user avatar
  • 3,269
1 vote

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers?

The answer is: all over the place. The trick is finding the right one. Some are in your /tmp directory, but lots of them are somewhere under your home directory. There maybe more efficient ways to do ...
TimHelck's user avatar
1 vote

$PATH in Vim doesn't match Terminal

I ran into this today. MacVim no longer has the "login shell" option, and editing system-wide files for a user-specific setting is sketchy. Here's a solution using only vim options (see :help :! and :...
jladan's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible