Skip to content

Instantly share code, notes, and snippets.

@keith
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keith/9568343 to your computer and use it in GitHub Desktop.
Save keith/9568343 to your computer and use it in GitHub Desktop.
Some thoughts about a Vim plugin for Objective-C developement
  • Create new classes

    • Which project when multiple projects?
      • Not running from folder that actually has the project
        • Look in current dir
        • Look at top of git/hg/svn repo (code from investigate)?
        • Ask for path?
      • Set default project in cache?
        • Cache location local directory
      • When asking projects complete file path
      • Ask if it should default
        • If user says no don't ask again for session (or project (cache))
    • Ask for class name
      • Take class prefix from project file (cache it)
        • clear cache command
    • Ask for the superclass
      • Complete with a list of classes
    • Ask for save location path
      • Complete as file path
        • If the folder asked for doesnt exist ask to create it
          • Setting for auto create
    • Add .h and .m file to folder path
    • Add files to groups
      • Which group?
        • Get group from file reference of the open file?
    • Open one of the created files
      • Over current file?
      • Allow option for new tab?
        • New v/split?
  • User input

    • input() command
    • inputdialog() setting (no completion)
    • inputsave() & inputrestore()
  • Highlighting

    • Execute after default objc highlighting
    • Add matchers for missing classes to existing highlight classes
  • Integration

    • Work alongside b4winckler/vim-objc for fixed indentation
    • Work with vim-endwise for auto insert closing block keywords
    • Work with syntastic for warnings
      • Pull warnings into cache from project settings
      • Pull pch settings for target
      • Pull module settings for target
    • Work with clangcomplete for completion with cached compiler options
    • Tagbar objc settings
  • Running projects

    • Build and run based off current project settings for devices etc
    • Attempt to integrate debugger similar to Shougo/vimshell.vim
      • Small quixfix style window for commands
    • Breakpoints
      • Add with xcproj?
  • Styling

    • Copy the space/tab settings from the project
@keith
Copy link
Author

keith commented Mar 23, 2014

  • Use NERDTree like interface for showing groups from the xcodeproject. Depending on where the focused file is in that group create the new files there.

@keith
Copy link
Author

keith commented Apr 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment