Tag Info

Hot answers tagged


Instead of pressing ^ you can press _(underscore) to jump to the first non-whitespace character on the same line the cursor is on. + and - jump to the first non-whitespace character on the next / previous line. (These commands only work in command mode, not in insert mode.)


if has("x11") echo "yep" endif


I have solution, not a great one, but it works for fixing MacVim. brew uninstall macvim brew install macvim brew linkapps macvim Worked for me. Hopefully, the related question above will be the answer to my Perl version problem.


/etc/profile is not evaluated when you run sudo ... as far as I know and the problem with the symbolic link is the mvim script; if you look at it, it has these lines: # GUI mode, implies forking case "$name" in m*|g*|rm*|rg*) gui=true ;; esac Since you started it with sudo vi the name does not fullfil the criteria to launch in GUI mode. You could simply ...


I don't want to install xcode just for this, also I don't want to use aliases or brew method (which also requires xcode) so I do this: I first download MacVim from the releases page, Then I install MacVim by dragging it to my Applications folder, For terminal usage, there's also a terminal app in the zip, called mvim, I install it by running this command: ...


In my case it was good enough to comment out the fullscreen part of the extended.vim config file found under ~/.vim_runtime/vimrcs/extended.vim. Look for the if has("gui_macvim") in that file and comment out that entire block and you should be able to start MacVim in windows mode. Side note, I've also turned off the native fullscreen support for MacVim ...


The window size in MacVim is based on "number of lines and number of columns to be displayed"; if you change the font and font size, those lines and columns need less or more space and the window size is adjusted accordingly. You can specify the number or lines and columns MacVim will show with set lines=nn and set columns=mm in ~/.vimrc to get a starting ...


This might be obvious already, but if you change MacVim's preferences item "After last window closes:" to "Hide MacVim", then I think you'll get something close to the behavior you want: when you start mvim from the terminal, and then finish a file, focus will return to the Terminal as long as you don't have other MacVim windows open. At least, this gets me ...


The sessions functionality you mentioned is what you want, but you need to pass it an option to make it save buffers as well as open files and positions. You can use :mksession for this. However, :mksession is still manually controlled; although you can bind it to hotkeys for quick save/restore functionality, if you forget to run the command, you lose your ...

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