New answers tagged macvim
" Clear undo history (:w to clear the undo file if presented) command! -bar UndoClear exe "set ul=-1 | m-1 | let &ul=" . &ul When you set 'undolevels' to -1 the undo information is not immediately cleared, this happens at the next change, i.e. m-1, which doesn't actually change your text. When 'undofile' is on, :w to clear the undo file, or chain ...
Control + W twice does the trick for me on Macbook Pro.
First set in your .vimrc: set nocp filetype plugin on save and exit. Restart vim and enter: :e scp://user@host//path/to/file The system will prompt you for the user's password. And you're in.
You can use the built-in netrw plugin: :e scp://user:pass@host//path/to/dir/ :e scp://user:pass@host//path/to/dir/file See :help netrw. You can also use Vim on the remote host in your terminal.
There is something called conque that allows you to run a shell or other command in a Vim buffer. It hasn't been updated since 2011, however.
That unfortunately cannot be changed. Vim's implementation cannot handle that the cursor is outside the currently visible viewport; that's why it has to move. As a lot of plugins also use this assumption, this is unlikely to change.
From the answers on MacVim Google Groups, it seems like this does not exist yet and maybe this would also be better done at Vim-level, i.e. not MacVim specific. I implemented it myself as a Vim script here.
Top 50 recent answers are included