MacVim



spf13 presents

Macvim Osx

spf13-vim is a distribution of vim plugins and resources for Vim, GVim and MacVim.
It is a completely cross platform distribution that stays true to the feel of vim while providing modern features like a plugin management system, autocomplete, tags and tons more.

Macvim Download

  • Featured Plugins
  • Other Awesome stuff
  • Community
spf13-vim

But with the new MacVim, I now have a GUI vim that not only looks much better but also has additional features: It has a fullscreen mode. Vim’s tab feature uses real tabs instead of ASCII-art tabs. There is an ODB input manager that adds an “Edit in MacVim” menu entry to all applications. Installs (30 days) macvim: 14,773: macvim -HEAD: 208: Installs on Request (30 days) macvim: 14,713: macvim -HEAD: 207: Build Errors (30 days) macvim: 54: macvim -HEAD. Assume MacVim is installed in the Application folder. Instead of adding MacVim path to your environment, create a link by typing this in terminal: sudo ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim Then, open. MacVim is great for beginning. I currently use NeoVim, but I only switched because vanilla Vim kept segfaulting for me at the time and nvim never did. I still use MacVim for one-off text mutations. CardMavin is a price guide for your cards. Look up how much your cards are worth. Get real market values.

Easy Installation *nix and os x

The easiest way to install spf13-vim is to use our automatic installer by simply copying and pasting the following line into a terminal. This will install spf13-vim and backup your existing vim configuration.

Macvim Tutorial

If you are upgrading from a prior version (before 3.0) this is also the recommended installation.

Updating to the latest version

Installing on Windows

On Windows and *nix Git and Curl are required.

Installing dependencies

Install msysgit

After installation try running git --version within command prompt (press Win-R, type cmd, press Enter) to make sure all good:

Setup Curl

Instructions blatently copied from vundle readmeInstalling Curl on Windows is easy as Curl is bundled with msysgit!But before it can be used with Vundle it's required make curl run in command prompt.The easiest way is to create curl.cmd with this content

And copy it to C:Program FilesGitcmdcurl.cmd, assuming msysgit was installed to c:Program FilesGit

to verify all good, run:

MacVim

Installing spf13-vim on Windows

The easiest way is to download and run the spf13-vim-windows-install.cmd file.

The .vimrc file is suited to programming. It is extremely well organized and folds in sections. Each section is labeled and each option is commented.

It fixes many of the inconveniences of vanilla vim including

  • A single config can be used across Windows, Mac and linux
  • Eliminates swap and backup files from littering directories, preferring to store in a central location.
  • Fixes common typos like :W, :Q, etc
  • Setup a solid set of settings for Formatting (change to meet your needs)
  • Setup the interface to take advantage of vim's features including
    • omnicomplete
    • line numbers
    • syntax highlighting
    • A better ruler & status line
    • & more
  • Configuring included plugins

Customization

Macvim

Create ~/.vimrc.local and ~/.gvimrc.local for any local customizations.

For example, to override the default color schemes:

Vundle The best plugin manager

Vundle is an excellent system built on the same principles as Pathogen, but with an integrated plugin management system that is Git and Github aware.

spf13-vim uses the Vundle plugin management system to have a well organized vim directory (Similar to mac's app folders). Vundle also ensures that the latest versions of your plugins are installed and makes it easy to keep them up to date.

NERDTreefile navigation

NERDTree is a file explorer plugin that provides 'project drawer' functionality to your vim editing. You can learn more about it with :help NERDTree or checkout my post on NERDTree.

Deezer Premium, 3 months free cannot be combined with any other offer and valid one time only. This offer is non-binding. You may cancel your subscription at any time. Check if you are eligible for the offer by clicking 'Try it Now'. This offer grants you a 3-month free trial to the Deezer Premium service. At the end of your free trial period, you will be automatically converted to a full price Deezer Premium subscription at £9.99 per month, unless you opt out at least 48 hours before the date of. Get 3 Months of Deezer Premium for free. Then 50% off of Deezer Premium for a year. Go to the Properties Panel (on the right) and scroll to ‘Background’. In the ‘Style’ drop down, select image and choose or upload one you like. Your desktop and mobile views are connected. In June only, Deezer is offering new customers 3 months of Deezer Family completely free. It's usually £14.99 per month so you save just shy of £45 in total. You can also get a three-month free. Deezer 3 months free code.

QuickStart Launch using <Leader>e.

Customizations:

  • Use <C-E> to toggle NERDTree
  • Use <leader>e or <leader>nt to load NERDTreeFind which opens NERDTree where the current file is located.
  • Hide clutter ('.pyc', '.git', '.hg', '.svn', '.bzr')
  • Treat NERDTree more like a panel than a split.

ctrlpfast file finder

Ctrlp replaces the Command-T plugin with a 100% viml plugin. It provides an intuitive and fast mechanism to load files from the file system (with regex and fuzzy find), from open buffers, and from recently used files.

QuickStart Launch using <c-p>.

Surroundmanaging all the '[{}]' etc

This plugin is a tool for dealing with pairs of 'surroundings.' Examples of surroundings include parentheses, quotes, and HTML tags. They are closely related to what Vim refers to as text-objects. Provided are mappings to allow for removing, changing, and adding surroundings.

Details follow on the exact semantics, but first, consider the following examples. An asterisk (*) is used to denote the cursor position.

Solid colour cake activated with water. Highly pigmented with an opaque matte finish. Sheers down easily. An amazing product for body painting and fake tattoos. Available in a wide range of shades including primary, secondary, neutral and fantasy. For a smoother application with colours such as White, use a MAC Mixing Medium instead of water to provide a creamier texture and more play time. Achieve any eye look with MAC eyeliners and eye pencils, formulated for long wear, rich colour, and flawless finishes. Free shipping on all eye liner types. Mac cake eyeliner.

For instance, if the cursor was inside 'foo bar', you could type cs' to convert the text to 'foo bar'.

There's a lot more, check it out at :help surround

NERDCommentercomment++

M torrent free download. NERDCommenter allows you to wrangle your code comments, regardless of filetype. View help :NERDCommenter for all the details.

QuickStart Toggle comments using <Leader>c<space> in Visual or Normal mode.

Syntasticintegrated syntax checking

Syntastic is a syntax checking plugin that runs buffers through external syntax checkers as they are saved and opened. If syntax errors are detected, the user is notified and is happy because they didn't have to compile their code or execute their script to find them.

numbers.vimbetter line numbers

This plugin will alternate between relative numbering (normal mode) and absolute numbering (insert mode) depending on the mode you are in. This allows you to easily move code around with the relative line numbers when in normal mode. As well as providing accurate line numbers when writing code in insert mode

neocomplcacheautocomplete++

NeoComplCache is an amazing autocomplete plugin with additional support for snippets. It can complete simulatiously from the dictionary, buffer, omnicomplete and snippets. This is the one true plugin that brings Vim autocomplete on par with the best editors.

QuickStart Just start typing, it will autocomplete where possible

Customizations:

  • Automatically present the autocomplete menu
  • Support tab and enter for autocomplete
  • <C-k> for completing snippets.

Fugitive deep git integration

Fugitive adds pervasive git support to git directories in vim. For more information, use :help fugitive

Use :Gstatus to view git status and type - on any file to stage or unstage it. Type p on a file to enter git add -p and stage specific hunks in the file.

Use :Gdiff on an open file to see what changes have been made to that file

QuickStart<leader>gs to bring up git status

Customizations:

  • <leader>gs :Gstatus
  • <leader>gd :Gdiff
  • <leader>gc :Gcommit
  • <leader>gb :Gblame
  • <leader>gl :Glog
  • <leader>gp :Git push
  • :Git ___ will pass anything along to git.

Macvim Mvim

PIV PHP editing

The most feature complete and up to date PHP Integration for Vim with proper support for PHP 5.3+ including latest syntax, functions, better fold support, etc.

PIV provides:

  • PHP 5.3 support
  • Auto generation of PHP Doc (,pd on (function, variable, class) definition line)
  • Autocomplete of classes, functions, variables, constants and language keywords
  • Better indenting
  • Full PHP documentation manual (hit K on any function for full docs)

Tabularize align everything

Tabularize lets you align statements on their equal signs and other characters

Customizations:

  • <Leader>a= :Tabularize /=
  • <Leader>a: :Tabularize /:
  • <Leader>a:: :Tabularize /:zs
  • <Leader>a, :Tabularize /,
  • <Leader>a<Bar> :Tabularize /

Tagbartag generation and navigation

spf13-vim includes the Tagbar plugin. This plugin requires exuberant-ctags and will automatically generate tags for your open files. It also provides a panel to navigate easily via tags

QuickStartCTRL-] while the cursor is on a keyword (such as a function name) to jump to it's definition.

Customizations: spf13-vim binds <Leader>tt to toggle the tagbar panel

Note: For full language support, run brew install ctags to install exuberant-ctags.

Tip: Check out :help ctags for information about VIM's built-in ctag support. Tag navigation creates a stack which can traversed via Ctrl-] (to find the source of a token) and Ctrl-T (to jump back up one level).

EasyMotionjump anywhere

EasyMotion provides an interactive way to use motions in Vim.

It quickly maps each possible jump destination to a key allowing very fast and straightforward movement.

QuickStart EasyMotion is triggered using the normal movements, but prefixing them with <leader><leader>

For example this screen shot demonstrates pressing ,w

Adding Your Own Bundles

Create ~/.vimrc.bundles.local for any additional bundles.

Www.mavimodel.com

To add a new bundle

Custom Settings

Create ~/.vimrc.local and ~/.gvimrc.local for any local customizations.

For example, to override the default color schemes:

Additional Syntaxes

spf13-vim ships with a few additional syntaxes:

MacVim
  • Markdown (bound to *.markdown, *.md, and *.mk)
  • Twig
  • Git commits (set your EDITOR to mvim -f)

Amazing Colors

spf13-vim includes solarized and spf13 vim color pack:

  • ir_black
  • molokai
  • peaksea

Use :color molokai to switch to a color scheme.

Snippets

It also contains a very complete set of snippets for use with snipmate or NeoComplCache.

Tutorials

  • Type vimtutor into a shell to go through a brief interactive tutorial inside VIM.
  • Read the slides at VIM: Walking Without Crutches.

Modes

  • VIM has two (common) modes:
    • insert mode- stuff you type is added to the buffer
    • normal mode- keys you hit are interpreted as commands
  • To enter insert mode, hit i
  • To exit insert mode, hit <ESC>

Useful commands

  • Use :q to exit vim
  • Certain commands are prefixed with a <Leader> key, which by default maps to .
  • Spf13-vim uses let mapleader = ',' to change this to , which is in a consistent and convenient location.
  • Keyboard cheat sheet.

Mailing List
Be notified of major updates

Discussion Group
Discuss issues, ideas, plugins

Contributing
GitHub makes for easy contribution

All development is done via GitHub. Fork and issue a pull request or file an issue.

Question or issue on macOS:

I have installed MacVim but I cannot figure out how to do some formatting things.

The screen shot below shows:

Here is what I would like to do:

http://torch.cs.dal.ca/~summers/Picture%205.png

This is my .gvimrc:

This is the color scheme for .jak files located in (~/.vim/syntax/jak.vim):

How to solve this problem?

Solution no. 1:

For the font issue (in .gvimrc):

will set the font in MacVim to Menlo, size 11.

As for the syntax highlighting, it might just be that the colorscheme you are using in console vim is not being picked up by MacVim:

Putting this command in .gvimrc will use the xoria256 colorscheme (for example). I have found that the colorscheme setting in .vimrc are not always picked up correctly.

Solution no. 2:

If you’d like to experiment with your font settings try

That will allow you to choose a font using the standard mac font window. Once you’ve found the font you like, type:

It will show you what the current setting is for guifont. Then you can type that into your .gvimrc.

Solution no. 3:

I’m not on a mac right now so I can’t find the exact reference for you, but I found that while playing around in the menus, one can manually change some of these settings… and then to bring up the configuration file to see what those settings translate to in words. As a result, I was able to add these lines to my standard ~/.vimrc (which Macvim does read), in order to change the font:

You should be able to find similar settings for colours very nearby.
(I’ll edit this answer when I get back to my mac to add more details… you’ll have to wait ~6 hours though.)

Solution no. 4:

You can change the font with this command:

The text color is a bit more complicated because it is syntax highlighting. But you can change this the same way you change the text color in any whatever version of vim you have used before. I use GVIM for Mac every day and I don’t notice any differences between it and GVIM for Windows, for example. For color schema changes might I suggest this great script:

It should give you a lot of great color schemes to try, and any of them can be easily edited, so it’s a good starting point. Good luck!

Solution no. 5:

Long story short: :h :hi (:h is a shortcut for :help, :hi for :highlight) and look for the guifg.

In your custom color scheme you define only cterm part – the guifg, guibg, etc are all missing. That’s why VIM in GUI mode is using default colors from your color scheme (:h :colo).

Hope this helps!