• Stars
    star
    165
  • Rank 228,906 (Top 5 %)
  • Language
    Ruby
  • Created about 13 years ago
  • Updated almost 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iOS plugin for Vim

About

ios.vim is a plugin for Vim for iOS development. It is inspired mostly by rails.vim.

Installation

ios.vim requires a Vim with ruby scripting support built in. You can get one using either the Homebrew or MacPorts package managers. For MacPorts, use:

ports install vim +ruby

For Homebrew:

brew install macvim --override-system-vim

Once you have a good Vim installed, we move merrily along to installing ios.vim itself. If you have no preference, I recommend using pathogen.vim. Once pathogen is installed and configured, you can clone this repository into ~/.vim/bundle like so:

mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/eraserhd/vim-ios.git

After which, everything should Just Work(tm).

Building Your Project

The :Xbuild command will build the Xcode project in Vim's working directory. If the build is successful, you will see 'OK' in the status line. Otherwise, the command will put you into quickfix mode so you can fix compilation errors.

Similar to clang_complete, a configuration file named .build must be in your project's root directory to be properly built. A build file simply contains switches that are sent to xcodebuild when building a project. For example, a .build file may look like this:

-sdk iphoneos6.0
-configuration Debug

Installing Your Application

The :Xinstall command will install a built application. Please note that fruitstrap is a dependency that must be in your PATH for installing to work. A specific fork of fruitstrap is required. Others may work, but only the one located here has been tested. Currently, installing to the simulator is not supported however adding support is in the pipeline.

Navigation

replace file in new split in new vertical split in new tab Description
:A, :AE :AS :AV :AT Open alternate file. This will open the corresponding header or implementation file for the current buffer.
:Rspec, :REspec :RSspec :RVspec :RTspec Open corresponding test suite or spec.
:Rimpl, :REimpl :RSimpl :RVimpl :RTimpl Open corresponding implementation file.
:R, :RE :RS :RV :RT Open corresponding file of next type.

Feature Requests (and More)

I use Trello to track development progress. You can vote on new features or watch progress on my Vim for Objective-C Trello board.

Trello does not seem to allow setting a column to be world-writable at the moment. If you'd like to request a feature, ping me on Twitter (@eraserhd) or by e-mail.

Shameless Self-Promotion

I am writing this to help Vimmers in the Apple world, since it is quite convenient for a platform provider like Apple to stick everyone into one little box (oh, just use Xcode, it is what we provide) and perhaps forget that we've been developing some pretty good tools and idioms for building software since around 1973.

If you like this philosophy, I would like to help you. I produce weekly screencasts and charge the small sum of $9 US per month for them. I also make free screencasts and the usual text-style blog posts (also free) from time to time. You can find these at The Objective Vimmer.

More Repositories

1

parinfer-rust

A Rust port of parinfer.
Rust
533
star
2

rep

A single-shot nREPL client designed for shell invocation
C
93
star
3

kak-ansi

Kakoune support for rendering ANSI-colored text.
C
40
star
4

objective-vim

Quickly bootstrap vim for Objective-C hacking
Vim Script
33
star
5

dotfiles

Nix
19
star
6

Idris-json

Formally verified JSON parser
Idris
14
star
7

vim-kiwi

vim plugin for doing Kiwi BDD
Vim Script
12
star
8

osxsnarf

A Plan 9-inspired way to share your OS X clipboard to multiple hosts.
C
11
star
9

clara-eql

Clojure
9
star
10

kak-plumb

Kakoune integration with the plan9port plumber
Shell
9
star
11

nix-zmk

Nix building and dev environments for ZMK
Nix
9
star
12

Idris-book

Idris for Everybody
TeX
9
star
13

select-nrepl

Text-object support for your editor as nREPL middleware.
Clojure
8
star
14

objc-kata

Skeleton and Makefile for running Objective-C katas
Vim Script
8
star
15

tmux-ctrlw

Emulate Vim's C-w in tmux, making pane navigation really snazzy.
Shell
7
star
16

ehk

What @eraserhd knows
C
6
star
17

acd

Apple Coder utility
Ruby
4
star
18

git-zeal

Zealously run your tests (on every commit)
Shell
4
star
19

tmux-plumb

Send text to the Plan 9 plumber from tmux copy mode.
Shell
3
star
20

markdorg-vim

A somewhat brutal mashup of Org Mode and Markdown.
Vim Script
2
star
21

presentations

My presentations
2
star
22

kb

Keyboard files
OpenSCAD
2
star
23

flow

Solver for the mobile "Flow" game
Scheme
2
star
24

im

Improbable Mission - A clone of the C64 "Impossible Mission"
C++
2
star
25

gd

Binding to the libgd library from Haskell.
Haskell
2
star
26

clojerbil

Scheme
2
star
27

onesock

Creative use of a scanner to do your bills
Haskell
2
star
28

impromptu

Spawn $EDITOR to update association list for CLI scripts
Scheme
2
star
29

ehhack

Vim plugin for writing hacks in various languages super quick
Ruby
2
star
30

kak-jira

Kakoune syntax files for JIRA markup
Nix
2
star
31

rkanban

R utilities for working with software kanban board data
2
star
32

gitout

Scheme
1
star
33

vigilance

Automatically exported from code.google.com/p/vigilance
C++
1
star
34

android-workbench

An alternate build system for Android
1
star
35

git-story

a 'story' subcommand for git for developing tickets on branches
CoffeeScript
1
star
36

gewgaw

Shows an overlay on windows to allow keyboard selection in scripts
C
1
star
37

markdorg-cli

Command-line tool for Markdorg
Makefile
1
star
38

ehgml

ICFP 2000 ray tracer
C++
1
star
39

phptools

An old project for parsing PHP
Scheme
1
star
40

rest-test

Example Clojure REST service
Clojure
1
star
41

gerbil-bencode

Scheme
1
star
42

tmux-editor-copy-mode

Shell
1
star
43

kak-open

Shell
1
star
44

toggl

Add time to toggl
Haskell
1
star
45

facts

Scheme
1
star
46

zmk-config

1
star
47

cl-infix

Infix operators for common lisp
Common Lisp
1
star
48

add-missing

Shell
1
star
49

sqltools

Go
1
star
50

window-sigils

C
1
star
51

suggest-commit

Pre-populate commit messages with likely text
C
1
star
52

git-zeal-vim

Vim helpers for git-zeal
Vim Script
1
star