GithubHelp home page GithubHelp logo

flaper87 / vim-config-python-ide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skyl/vim-config-python-ide

1.0 2.0 1.0 419 KB

Symlink the .vim dir and the .vimrc file and change your config with ``git checkout``

Home Page: http://skyl.org/

Vim Script 100.00%

vim-config-python-ide's Introduction

Python-Vim-IDE

There will be multiple branches. The first branch will be the basic branch. The basic branch will stay true to vim defaults, adding PEP008 and basic onmicomplete, folding and path-hacking for django settings with few/no remaps. I will branch from here with a more featureful config with nerdtree, supertab and more.

The idea will be that one can check it out and symlink to $VIMRUNTIME and change configs just by checking out a different branch.

Current details of basic

  • Syntax highlighting

  • Indention

    • simple use of the following works:

      if has("autocmd")
        filetype plugin indent on
      endif

    I uncommented this from my global /etc/vim/vimrc

  • Folding

    • Just going to use indentation folds from the default .vimrc:

      :help fold
      
      zM to fold everything
      zR to unfold everything
      za to toggle the current fold
      zA to recursively toggle the current fold
      
      Everything is unfolded to start.
  • Code completion

    • Going with regular http://www.vim.org/scripts/script.php?script_id=1542:

      still <c-x><c-o> for omnicomplete (may remap to <s-tab>)
      still <c-p> for keyword completion (may remap to <tab>)
    • :help preview

      To see how to do things like close the preview viewport (:pc)

  • Django settings:

    There are two ways that you can get the settings module imported and be able to omnicomplete modules that rely on DJANGO_SETTINGS_MODULE:

    1) You can be in an environment with django and settings.py in the CWD, parent or grandparent
    
    2) You can be inside a virtualenv that contains pinax

supertab branch

The same as above except that code completion is context sensitive and you can get it with <tab>. So, if you are in insert mode and you have:

import django

you can start typing django and complete it with keyword completion:

dja<tab>

then you can type . and <tab> again and get omnicompletion:

django.c<tab>

this will give you a dropdown between conf, core and contrib

vim-config-python-ide's People

Contributors

skyl avatar flaper87 avatar centretek avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.