Anonymous avatar Anonymous committed 4182ea9 Draft

add colortheme

Comments (0)

Files changed (218)

 set fileencodings=utf-8,gbk,ucs-bom,cp936
 set termencoding=utf-8
 set encoding=prc
+"set encoding=utf8
+set paste
 
-set guifont=DejaVu\ Sans\ Mono
-colorscheme autumn
+"set guifont=DejaVu\ Sans\ Mono
+"set guifont=Lucida\ Console:h11
+set guifont=Ubuntu\ Mono:h12
+colorscheme Tomorrow-Night-Eighties
 " remove toolbar
 if has('gui_running')
     set guioptions-=T
-    set guioptions-=M
+    set guioptions-=m
     set guioptions-=r
-    colorscheme molokai
 endif
 " disable backup
 set nobackup
 
 
 set showmode
+set incsearch
 
 " table and indent
 set expandtab
 set wildmenu
 set wildmode=list:longest
 set noswapfile
+set linebreak
 set cursorline
 "set cmdheight=2
 
 nnoremap <leader>f ggVG=
 
 " Open snipMate snippets directory
-nnoremap >s :e /home/sting/.vim/bundle/ultisnips/UltiSnips/ <cr>
+nnoremap >s :e d:\programs\vim\vimfiles\bundle\ultisnips\UltiSnips<cr>
 
 " close window in normal mode
 nmap <leader>cw <c-w>c
 nnoremap <leader>p "+gP
 
 filetype plugin on
+filetype indent on
 ""let g:pydiction_location='d:\Program Files\vim\vimfiles\ftplugin\pydiction\complete-dict'
 
 " change pydoc's command
 
 " auto command for template
 autocmd BufNewFile * silent! 0r /home/sting/.vim/templates/%:e.tpl
+autocmd BufNewFile * silent! 0r d:\programs\vim\templates/%:e.tpl
 
 set viewdir=$HOME/.vim/views
 
 "let g:miniBufExplVSplit = 25
 "let g:miniBufExplSplitBelow = 1
 "
-let g:vimwiki_list = [{'path': '~/Documents/wiki/', 'path_html': '~/Documents/blog/', 'template_path': '~/Documents/wiki/', 'template_default': 'def_template', 'template_ext': '.html'}]
+let g:vimwiki_list = [{'path': 'e:\documents\wiki\', 'path_html': 'e:\documents\wiki\html\', 'template_path': 'e:\documents\wiki\', 'template_default': 'def_template', 'template_ext': '.html'}]
 
 "Settings for neocomplcache
 let g:acp_enableAtStartup = 1
 
 " snips 
 let g:UltiSnipsUsePythonVersion = 2
-let g:UltiSnipsSnippetsDir = "/home/sting/.vim/bundle/ultisnips/UltiSnips/"
+let g:UltiSnipsSnippetsDir = "d:\programs\vim\vimfiles\bundle\ultisnips\UltiSnips"
 let g:UltiSnipsExpandTrigger="<tab>"
 let g:UltiSnipsJumpForwardTrigger="<tab>"
 let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
 nmap <right> :3wincmd ><cr>
 nmap <up> :3wincmd +<cr>
 nmap <down> :3wincmd -<cr>
-
 autocmd BufRead *.py nmap <F5> :!python %<cr>
 map <leader>n :NERDTreeToggle<CR>
 
     \ }
 let g:ctrlp_working_path_mode = 2
 
+nmap <leader>bill :e e:\scripts\python\account\bills.txt<cr>
+nnoremap <tab> %
+vnoremap <tab> %
+nnoremap ; :
+" Save file when losing focus
+au FocusLost * :wa
+nnoremap _hd :set ft=htmldjango<cr>
 nmap <leader>g :CtrlPBuffer<cr>
+
+set statusline=%f
+set statusline+=%y
+
+let g:pymode_run = 1
+let g:pymode_run_key = 'R'
+nmap <leader>t :TagbarToggle<cr>
+nmap <leader>s :e e:\documents\resophnotes\<cr>

bundle/ColorSamplerPack/colors/ir_black.vim

+" ir_black color scheme
+" More at: http://blog.infinitered.com
+
+
+" ********************************************************************************
+" Standard colors used in all ir_black themes:
+" Note, x:x:x are RGB values
+"
+"  normal: #f6f3e8
+" 
+"  string: #A8FF60  168:255:96                   
+"    string inner (punc, code, etc): #00A0A0  0:160:160
+"  number: #FF73FD  255:115:253                 
+"  comments: #7C7C7C  124:124:124
+"  keywords: #96CBFE  150:203:254             
+"  operators: white
+"  class: #FFFFB6  255:255:182
+"  method declaration name: #FFD2A7  255:210:167
+"  regular expression: #E9C062  233:192:98
+"    regexp alternate: #FF8000  255:128:0
+"    regexp alternate 2: #B18A3D  177:138:61
+"  variable: #C6C5FE  198:197:254
+"  
+" Misc colors:
+"  red color (used for whatever): #FF6C60   255:108:96 
+"     light red: #FFB6B0   255:182:176
+"
+"  brown: #E18964  good for special
+"
+"  lightpurpleish: #FFCCFF
+" 
+" Interface colors:
+"  background color: black
+"  cursor (where underscore is used): #FFA560  255:165:96
+"  cursor (where block is used): white
+"  visual selection: #1D1E2C  
+"  current line: #151515  21:21:21
+"  search selection: #07281C  7:40:28
+"  line number: #3D3D3D  61:61:61
+
+
+" ********************************************************************************
+" The following are the preferred 16 colors for your terminal
+"           Colors      Bright Colors
+" Black     #4E4E4E     #7C7C7C
+" Red       #FF6C60     #FFB6B0
+" Green     #A8FF60     #CEFFAB
+" Yellow    #FFFFB6     #FFFFCB
+" Blue      #96CBFE     #B5DCFE
+" Magenta   #FF73FD     #FF9CFE
+" Cyan      #C6C5FE     #DFDFFE
+" White     #EEEEEE     #FFFFFF
+
+
+" ********************************************************************************
+set background=dark
+hi clear
+
+if exists("syntax_on")
+  syntax reset
+endif
+
+let colors_name = "ir_black"
+
+
+"hi Example         guifg=NONE        guibg=NONE        gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+
+" General colors
+hi Normal           guifg=#f6f3e8     guibg=black       gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+hi NonText          guifg=#070707     guibg=black       gui=NONE      ctermfg=black       ctermbg=NONE        cterm=NONE
+
+hi Cursor           guifg=black       guibg=white       gui=NONE      ctermfg=black       ctermbg=white       cterm=reverse
+hi LineNr           guifg=#3D3D3D     guibg=black       gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
+
+hi VertSplit        guifg=#202020     guibg=#202020     gui=NONE      ctermfg=darkgray    ctermbg=darkgray    cterm=NONE
+hi StatusLine       guifg=#CCCCCC     guibg=#202020     gui=italic    ctermfg=white       ctermbg=darkgray    cterm=NONE
+hi StatusLineNC     guifg=black       guibg=#202020     gui=NONE      ctermfg=blue        ctermbg=darkgray    cterm=NONE  
+
+hi Folded           guifg=#a0a8b0     guibg=#384048     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+hi Title            guifg=#f6f3e8     guibg=NONE        gui=bold      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+hi Visual           guifg=NONE        guibg=#262D51     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=REVERSE
+
+hi SpecialKey       guifg=#808080     guibg=#343434     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+
+hi WildMenu         guifg=green       guibg=yellow      gui=NONE      ctermfg=black       ctermbg=yellow      cterm=NONE
+hi PmenuSbar        guifg=black       guibg=white       gui=NONE      ctermfg=black       ctermbg=white       cterm=NONE
+"hi Ignore           guifg=gray        guibg=black       gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+
+hi Error            guifg=NONE        guibg=NONE        gui=undercurl ctermfg=white       ctermbg=red         cterm=NONE     guisp=#FF6C60 " undercurl color
+hi ErrorMsg         guifg=white       guibg=#FF6C60     gui=BOLD      ctermfg=white       ctermbg=red         cterm=NONE
+hi WarningMsg       guifg=white       guibg=#FF6C60     gui=BOLD      ctermfg=white       ctermbg=red         cterm=NONE
+hi LongLineWarning  guifg=NONE        guibg=#371F1C     gui=underline ctermfg=NONE        ctermbg=NONE	      cterm=underline
+
+" Message displayed in lower left, such as --INSERT--
+hi ModeMsg          guifg=black       guibg=#C6C5FE     gui=BOLD      ctermfg=black       ctermbg=cyan        cterm=BOLD
+
+if version >= 700 " Vim 7.x specific colors
+  hi CursorLine     guifg=NONE        guibg=#121212     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=BOLD
+  hi CursorColumn   guifg=NONE        guibg=#121212     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=BOLD
+  hi MatchParen     guifg=#f6f3e8     guibg=#857b6f     gui=BOLD      ctermfg=white       ctermbg=darkgray    cterm=NONE
+  hi Pmenu          guifg=#f6f3e8     guibg=#444444     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+  hi PmenuSel       guifg=#000000     guibg=#cae682     gui=NONE      ctermfg=NONE        ctermbg=NONE        cterm=NONE
+  hi Search         guifg=NONE        guibg=#2F2F00     gui=underline ctermfg=NONE        ctermbg=NONE	      cterm=underline
+endif
+
+" Syntax highlighting
+hi Comment          guifg=#7C7C7C     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
+hi String           guifg=#A8FF60     guibg=NONE        gui=NONE      ctermfg=green       ctermbg=NONE        cterm=NONE
+hi Number           guifg=#FF73FD     guibg=NONE        gui=NONE      ctermfg=magenta     ctermbg=NONE        cterm=NONE
+
+hi Keyword          guifg=#96CBFE     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE
+hi PreProc          guifg=#96CBFE     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE
+hi Conditional      guifg=#6699CC     guibg=NONE        gui=NONE      ctermfg=blue        ctermbg=NONE        cterm=NONE  " if else end
+
+hi Todo             guifg=#8f8f8f     guibg=NONE        gui=NONE      ctermfg=red         ctermbg=NONE        cterm=NONE
+hi Constant         guifg=#99CC99     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
+
+hi Identifier       guifg=#C6C5FE     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
+hi Function         guifg=#FFD2A7     guibg=NONE        gui=NONE      ctermfg=brown       ctermbg=NONE        cterm=NONE
+hi Type             guifg=#FFFFB6     guibg=NONE        gui=NONE      ctermfg=yellow      ctermbg=NONE        cterm=NONE
+hi Statement        guifg=#6699CC     guibg=NONE        gui=NONE      ctermfg=lightblue   ctermbg=NONE        cterm=NONE
+
+hi Special          guifg=#E18964     guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
+hi Delimiter        guifg=#00A0A0     guibg=NONE        gui=NONE      ctermfg=cyan        ctermbg=NONE        cterm=NONE
+hi Operator         guifg=white       guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
+
+hi link Character       Constant
+hi link Boolean         Constant
+hi link Float           Number
+hi link Repeat          Statement
+hi link Label           Statement
+hi link Exception       Statement
+hi link Include         PreProc
+hi link Define          PreProc
+hi link Macro           PreProc
+hi link PreCondit       PreProc
+hi link StorageClass    Type
+hi link Structure       Type
+hi link Typedef         Type
+hi link Tag             Special
+hi link SpecialChar     Special
+hi link SpecialComment  Special
+hi link Debug           Special
+
+
+" Special for Ruby
+hi rubyRegexp                  guifg=#B18A3D      guibg=NONE      gui=NONE      ctermfg=brown          ctermbg=NONE      cterm=NONE
+hi rubyRegexpDelimiter         guifg=#FF8000      guibg=NONE      gui=NONE      ctermfg=brown          ctermbg=NONE      cterm=NONE
+hi rubyEscape                  guifg=white        guibg=NONE      gui=NONE      ctermfg=cyan           ctermbg=NONE      cterm=NONE
+hi rubyInterpolationDelimiter  guifg=#00A0A0      guibg=NONE      gui=NONE      ctermfg=blue           ctermbg=NONE      cterm=NONE
+hi rubyControl                 guifg=#6699CC      guibg=NONE      gui=NONE      ctermfg=blue           ctermbg=NONE      cterm=NONE  "and break, etc
+"hi rubyGlobalVariable          guifg=#FFCCFF      guibg=NONE      gui=NONE      ctermfg=lightblue      ctermbg=NONE      cterm=NONE  "yield
+hi rubyStringDelimiter         guifg=#336633      guibg=NONE      gui=NONE      ctermfg=lightgreen     ctermbg=NONE      cterm=NONE
+"rubyInclude
+"rubySharpBang
+"rubyAccess
+"rubyPredefinedVariable
+"rubyBoolean
+"rubyClassVariable
+"rubyBeginEnd
+"rubyRepeatModifier
+"hi link rubyArrayDelimiter    Special  " [ , , ]
+"rubyCurlyBlock  { , , }
+
+hi link rubyClass             Keyword 
+hi link rubyModule            Keyword 
+hi link rubyKeyword           Keyword 
+hi link rubyOperator          Operator
+hi link rubyIdentifier        Identifier
+hi link rubyInstanceVariable  Identifier
+hi link rubyGlobalVariable    Identifier
+hi link rubyClassVariable     Identifier
+hi link rubyConstant          Type  
+
+
+" Special for Java
+" hi link javaClassDecl    Type
+hi link javaScopeDecl         Identifier 
+hi link javaCommentTitle      javaDocSeeTag 
+hi link javaDocTags           javaDocSeeTag 
+hi link javaDocParam          javaDocSeeTag 
+hi link javaDocSeeTagParam    javaDocSeeTag 
+
+hi javaDocSeeTag              guifg=#CCCCCC     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
+hi javaDocSeeTag              guifg=#CCCCCC     guibg=NONE        gui=NONE      ctermfg=darkgray    ctermbg=NONE        cterm=NONE
+"hi javaClassDecl              guifg=#CCFFCC     guibg=NONE        gui=NONE      ctermfg=white       ctermbg=NONE        cterm=NONE
+
+
+" Special for XML
+hi link xmlTag          Keyword 
+hi link xmlTagName      Conditional 
+hi link xmlEndTag       Identifier 
+
+
+" Special for HTML
+hi link htmlTag         Keyword 
+hi link htmlTagName     Conditional 
+hi link htmlEndTag      Identifier 
+
+
+" Special for Javascript
+hi link javaScriptNumber      Number 
+
+
+" Special for Python
+"hi  link pythonEscape         Keyword      
+
+
+" Special for CSharp
+hi  link csXmlTag             Keyword      
+
+
+" Special for PHP
+

bundle/python-mode/.gitignore

+*.pyc
+tags
+todo.txt
+.ropeproject

bundle/python-mode/Changelog.rst

+Changelog
+=========
+
+## 2012-03-?? 0.6.1
+-------------------
+* Fix pymode_run for "unnamed" clipboard
+
+## 2012-03-13 0.6.0
+-------------------
+* Add 'pymode_lint_hold' option 
+* Improve pymode loading speed
+* Add pep8, mccabe lint checkers
+* Now g:pymode_lint_checker can have many values
+  Ex. "pep8,pyflakes,mccabe"
+* Add 'pymode_lint_ignore' and 'pymode_lint_select' options 
+* Fix rope keys
+* Fix python motion in visual mode
+* Add folding 'pymode_folding'
+* Warning: 'pymode_lint_checker' now set to 'pyflakes,pep8,mccabe' by default
+
+## 2012-02-12 0.5.8
+-------------------
+* Fix pylint for Windows users
+* Python documentation search running from Vim (delete g:pydoc option)
+* Python code execution running from Vim (delete g:python option)
+
+## 2012-02-11 0.5.7
+-------------------
+* Fix 'g:pymode_lint_message' mode error
+* Fix breakpoints
+* Fix python paths and virtualenv detection
+
+## 2012-02-06 0.5.6
+-------------------
+* Fix 'g:pymode_syntax' option
+* Show error message in bottom part of screen
+  see 'g:pymode_lint_message'
+* Fix pylint for windows users
+* Fix breakpoint command (Use pdb when idpb not installed)
+
+## 2012-01-17 0.5.5
+-------------------
+* Add a sign for info messages from pylint.
+  (c) Fredrik Henrysson
+* Change motion keys: vic - viC, dam - daM and etc
+* Add 'g:pymode_lint_onfly' option
+
+## 2012-01-09 0.5.3
+-------------------
+* Prevent the configuration from breaking python-mode
+  (c) Dirk Wallenstein
+
+## 2012-01-08 0.5.2
+-------------------
+* Fix ropeomnicompletion
+* Add preview documentation
+
+## 2012-01-06 0.5.1
+-------------------
+* Happy new year!
+* Objects and motion  fixes
+
+## 2011-11-30 0.5.0
+-------------------
+* Add python objects and motions (beta)
+  :h pymode_motion
+
+## 2011-11-27 0.4.8
+-------------------
+* Add `PyLintWindowToggle` command
+* Fix some bugs
+
+## 2011-11-23 0.4.6
+-------------------
+* Enable all syntax highlighting
+  For old settings set in your vimrc:
+    let g:pymode_syntax_builtin_objs = 0
+    let g:pymode_syntax_builtin_funcs = 0
+
+* Change namespace of syntax variables
+  See README
+
+## 2011-11-18 0.4.5
+-------------------
+* Add 'g:pymode_syntax' option
+* Highlight 'self' keyword
+
+## 2011-11-16 0.4.4
+-------------------
+* Minor fixes
+
+## 2011-11-11 0.4.3
+-------------------
+* Fix pyflakes
+
+## 2011-11-09 0.4.2
+-------------------
+* Add FAQ
+* Some refactoring and fixes
+
+## 2011-11-08 0.4.0
+-------------------
+* Add alternative code checker "pyflakes"
+  See :h 'pymode_lint_checker'
+* Update install docs
+
+## 2011-10-30 0.3.3
+-------------------
+* Fix RopeShowDoc
+
+## 2011-10-28 0.3.2
+-------------------
+* Add 'g:pymode_options_*' stuff, for ability
+  to disable default pymode options for python buffers
+
+## 2011-10-27 0.3.1
+-------------------
+* Add 'g:pymode_rope_always_show_complete_menu' option
+* Some pylint fixes
+
+## 2011-10-25 0.3.0
+-------------------
+* Add g:pymode_lint_minheight and g:pymode_lint_maxheight
+  options
+* Fix PyLintToggle
+* Fix Rope and PyLint libs loading
+
+## 2011-10-21 0.2.12
+--------------------
+* Auto open cwindow with results
+  on rope find operations
+
+## 2011-10-20 0.2.11
+--------------------
+* Add 'pymode_lint_jump' option
+
+## 2011-10-19 0.2.10
+--------------------
+* Minor fixes (virtualenv loading, buffer commands)
+
+## 2011-10-18 0.2.6
+-------------------
+* Add <C-space> shortcut for macvim users.
+* Add VIRTUALENV support
+
+## 2011-10-17 0.2.4
+-------------------
+* Add current work path to sys.path
+* Add 'g:pymode' option (disable/enable pylint and rope)
+* Fix pylint copyright
+* Hotfix rope autocomplete
+
+## 2011-10-15 0.2.1
+-------------------
+* Change rope variables (ropevim_<name> -> pymode_rope_<name>)
+* Add "pymode_rope_auto_project" option (default: 1)
+* Update and fix docs
+* 'pymode_rope_extended_complete' set by default
+* Auto generate rope project and cache
+* "<C-c>r a" for RopeAutoImport
+
+## 2011-10-12 0.1.4
+-------------------
+* Add default pylint configuration
+
+## 2011-10-12 0.1.3
+-------------------
+* Fix pylint and update docs
+
+## 2011-10-11 0.1.2
+-------------------
+* First public release

bundle/python-mode/README.rst

+Python-mode, Python in VIM
+##########################
+
+Python-mode is a vim plugin that allows you to use the pylint_, rope_, pydoc_, pyflakes_, pep8_, mccabe_ libraries in vim to provide
+features like python code looking for bugs, refactoring and some other useful things.
+
+This plugin allow you create python code in vim very easily.
+There is no need to install the pylint_, rope_ or any used python library on your system.
+
+- Python objects and motion (]], 3[[, ]]M, vaC, viM, daC, ciM, ...)
+- Folding of python code
+- Virtualenv support
+- Highlight syntax errors
+- Highlight and auto fix unused imports
+- Many linters (pylint_, pyflakes_, ...) that can be run simultaneously
+- Strong code completion
+- Code refactoring
+- Python documentation
+- Run python code
+- Go to definition
+- Powerful customization
+- And more, more ...
+
+See (very old) screencast here: http://t.co/3b0bzeXA (sorry for quality, this is my first screencast)
+
+
+.. contents::
+
+
+Changelog
+=========
+
+## 2012-02-12 0.5.8
+-------------------
+* Fix pylint for Windows users
+* Python documentation search running from Vim (delete g:pydoc option)
+* Python code execution running from Vim (delete g:python option)
+
+
+Requirements
+============
+
+- VIM >= 7.0 with python support
+  (also ``--with-features=big`` if you want use g:pymode_lint_signs)
+
+
+
+How to install
+==============
+
+
+Using pathogen_ (recomended)
+----------------------------
+::
+
+    % cd ~/.vim
+    % mkdir -p bundle && cd bundle
+    % git clone git://github.com/klen/python-mode.git
+
+- Enable pathogen_ in your ``~/.vimrc``: ::
+
+    " Pathogen load
+    filetype off
+
+    call pathogen#infect()
+    call pathogen#helptags()
+
+    filetype plugin indent on
+    syntax on
+
+
+Manually
+--------
+::
+
+    % git clone git://github.com/klen/python-mode.git
+    % cd python-mode.vim
+    % cp -R * ~/.vim
+
+Then rebuild **helptags** in vim::
+
+    :helptags ~/.vim/doc/
+
+
+.. note:: **filetype-plugin** (``:help filetype-plugin-on``) and **filetype-indent** (``:help filetype-indent-on``)
+    must be enabled for use python-mode.
+
+
+Settings
+========
+
+.. note:: Also you can see vim help. ``:help PythonModeOptions``
+
+To change this settings, edit your ``~/.vimrc``: ::
+
+    " Disable pylint checking every save
+    let g:pymode_lint_write = 0
+
+    " Set key 'R' for run python code
+    let g:pymode_run_key = 'R'
+
+
+Show documentation
+------------------
+
+Default values: ::
+
+    " Load show documentation plugin
+    let g:pymode_doc = 1
+
+    " Key for show python documentation
+    let g:pymode_doc_key = 'K'
+
+
+Run python code
+---------------
+
+Default values: ::
+
+    " Load run code plugin
+    let g:pymode_run = 1
+
+    " Key for run python code
+    let g:pymode_run_key = '<leader>r'
+
+
+Code checking
+-------------
+
+Default values: ::
+
+    " Load pylint code plugin
+    let g:pymode_lint = 1
+
+    " Switch pylint, pyflakes, pep8, mccabe code-checkers
+    " Can have multiply values "pep8,pyflakes,mcccabe"
+    let g:pymode_lint_checker = "pyflakes,pep8,mccabe"
+
+    " Skip errors and warnings
+    " E.g. "E501,W002", "E2,W" (Skip all Warnings and Errors startswith E2) and etc
+    let g:pymode_lint_ignore = "E501"
+
+    " Select errors and warnings
+    " E.g. "E4,W"
+    let g:pymode_lint_select = ""
+
+    " Run linter on the fly
+    let g:pymode_lint_onfly = 0
+
+    " Pylint configuration file
+    " If file not found use 'pylintrc' from python-mode plugin directory
+    let g:pymode_lint_config = "$HOME/.pylintrc"
+
+    " Check code every save
+    let g:pymode_lint_write = 1
+
+    " Auto open cwindow if errors be finded
+    let g:pymode_lint_cwindow = 1
+
+    " Show error message if cursor placed at the error line
+    let g:pymode_lint_message = 1
+
+    " Auto jump on first error
+    let g:pymode_lint_jump = 0
+
+    " Hold cursor in current window
+    " when quickfix is open
+    let g:pymode_lint_hold = 0
+
+    " Place error signs
+    let g:pymode_lint_signs = 1
+
+    " Minimal height of pylint error window
+    let g:pymode_lint_minheight = 3
+
+    " Maximal height of pylint error window
+    let g:pymode_lint_maxheight = 6
+
+
+.. note:: 
+    Pylint options (ex. disable messages) may be defined in ``$HOME/pylint.rc``
+    See pylint documentation: http://pylint-messages.wikidot.com/all-codes
+
+
+Rope refactoring library
+------------------------
+
+Default values: ::
+
+    " Load rope plugin
+    let g:pymode_rope = 1
+
+    " Auto create and open ropeproject
+    let g:pymode_rope_auto_project = 1
+
+    " Enable autoimport
+    let g:pymode_rope_enable_autoimport = 1
+
+    " Auto generate global cache
+    let g:pymode_rope_autoimport_generate = 1
+
+    let g:pymode_rope_autoimport_underlineds = 0
+
+    let g:pymode_rope_codeassist_maxfixes = 10
+
+    let g:pymode_rope_sorted_completions = 1
+
+    let g:pymode_rope_extended_complete = 1
+
+    let g:pymode_rope_autoimport_modules = ["os","shutil","datetime"]
+
+    let g:pymode_rope_confirm_saving = 1
+
+    let g:pymode_rope_global_prefix = "<C-x>p"
+
+    let g:pymode_rope_local_prefix = "<C-c>r"
+
+    let g:pymode_rope_vim_completion = 1
+
+    let g:pymode_rope_guess_project = 1
+
+    let g:pymode_rope_goto_def_newwin = 0
+
+    let g:pymode_rope_always_show_complete_menu = 0
+
+
+Automatically folding of python code
+--------------------------------------
+
+Default values: ::
+
+    " Enable python folding
+    let g:pymode_folding = 1
+
+
+Vim python motions and operators
+--------------------------------
+
+Default values: ::
+
+    " Enable python objects and motion
+    let g:pymode_motion = 1
+
+
+Virtualenv support
+------------------
+
+Default values: ::
+
+    " Auto fix vim python paths if virtualenv enabled
+    let g:pymode_virtualenv = 1
+
+
+Other stuff
+-----------
+
+Default values: ::
+
+    " Load breakpoints plugin
+    let g:pymode_breakpoint = 1
+
+    " Key for set/unset breakpoint
+    let g:pymode_breakpoint_key = '<leader>b'
+
+    " Autoremove unused whitespaces
+    let g:pymode_utils_whitespaces = 1
+
+    " Set default pymode python indent options
+    let g:pymode_options_indent = 1
+
+    " Set default pymode python other options
+    let g:pymode_options_other = 1
+
+
+Syntax highlight
+----------------
+
+Default values: ::
+
+    " Enable pymode's custom syntax highlighting
+    let g:pymode_syntax = 1
+
+    " Enable all python highlightings
+    let g:pymode_syntax_all = 1
+
+    " Highlight "print" as function
+    let g:pymode_syntax_print_as_function = 0
+
+    " Highlight indentation errors
+    let g:pymode_syntax_indent_errors = g:pymode_syntax_all
+
+    " Highlight trailing spaces
+    let g:pymode_syntax_space_errors = g:pymode_syntax_all
+
+    " Highlight string formatting
+    let g:pymode_syntax_string_formatting = g:pymode_syntax_all
+
+    " Highlight str.format syntax
+    let g:pymode_syntax_string_format = g:pymode_syntax_all
+
+    " Highlight string.Template syntax
+    let g:pymode_syntax_string_templates = g:pymode_syntax_all
+
+    " Highlight doc-tests
+    let g:pymode_syntax_doctests = g:pymode_syntax_all
+
+    " Highlight builtin objects (__doc__, self, etc)
+    let g:pymode_syntax_builtin_objs = g:pymode_syntax_all
+
+    " Highlight builtin functions
+    let g:pymode_syntax_builtin_funcs = g:pymode_syntax_all
+
+    " Highlight exceptions
+    let g:pymode_syntax_highlight_exceptions = g:pymode_syntax_all
+
+    " For fast machines
+    let g:pymode_syntax_slow_sync = 0
+
+
+Default keys
+============
+
+.. note:: Also you can see vim help ``:help PythonModeKeys``
+
+============== =============
+Keys           Command
+============== =============
+**K**          Show python docs (g:pymode_doc enabled)
+-------------- -------------
+**<C-Space>**  Rope autocomplete (g:pymode_rope enabled)
+-------------- -------------
+**<C-c>g**     Rope goto definition  (g:pymode_rope enabled)
+-------------- -------------
+**<C-c>d**     Rope show documentation  (g:pymode_rope enabled)
+-------------- -------------
+**<C-c>f**     Rope find occurrences  (g:pymode_rope enabled)
+-------------- -------------
+**<Leader>r**  Run python  (g:pymode_run enabled)
+-------------- -------------
+**<Leader>b**  Set, unset breakpoint (g:pymode_breakpoint enabled)
+-------------- -------------
+[[             Jump on previous class or function (normal, visual, operator modes)
+-------------- -------------
+]]             Jump on next class or function  (normal, visual, operator modes)
+-------------- -------------
+[M             Jump on previous class or method (normal, visual, operator modes)
+-------------- -------------
+]M             Jump on next class or method (normal, visual, operator modes)
+-------------- -------------
+aC C           Select a class. Ex: vaC, daC, dC, yaC, yC, caC, cC (normal, operator modes)
+-------------- -------------
+iC             Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
+-------------- -------------
+aM M           Select a function or method. Ex: vaM, daM, dM, yaM, yM, caM, cM (normal, operator modes)
+-------------- -------------
+iM             Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)
+============== =============
+
+.. note:: See also ``:help ropevim.txt``
+
+
+Commands
+========
+
+.. note:: Also you can see vim help ``:help PythonModeCommands``
+
+==================== =============
+Command              Description
+==================== =============
+:Pydoc <args>        Show python documentation
+-------------------- -------------
+PyLintToggle         Enable, disable pylint
+-------------------- -------------
+PyLintCheckerToggle  Toggle code checker (pylint, pyflakes)
+-------------------- -------------
+PyLint               Check current buffer
+-------------------- -------------
+Pyrun                Run current buffer in python
+==================== =============
+
+.. note:: See also ``:help ropevim.txt``
+
+
+F.A.Q.
+======
+
+Rope completion is very slow
+----------------------------
+
+To work rope_ creates a service directory: ``.ropeproject``.
+If ``g:pymode_rope_guess_project`` set (by default) and ``.ropeproject`` in current dir not found, rope scan ``.ropeproject`` on every dir in parent path.
+If rope finded ``.ropeproject`` in parent dirs, rope set project for all child dir and scan may be slow for many dirs and files.
+
+Solutions:
+
+- Disable ``g:pymode_rope_guess_project`` to make rope always create ``.ropeproject`` in current dir.
+- Delete ``.ropeproject`` from dip parent dir to make rope create ``.ropeproject`` in current dir.
+- Press ``<C-x>po`` or ``:RopeOpenProject`` to make force rope create ``.ropeproject`` in current dir.
+
+
+
+Pylint check is very slow
+-------------------------
+
+In some projects pylint_ may check slowly, because it also scan imported modules if posible.
+Try use pyflakes_, see ``:h 'pymode_lint_checker'``.
+
+.. note:: You may ``set exrc`` and ``set secure`` in your ``vimrc`` for auto set custom settings from ``.vimrc`` from your projects directories.
+    Example: On Flask projects I automaticly set ``g:pymode_lint_checker = "pyflakes"``, on django ``g:pymode_lint_cheker = "pylint"``
+
+
+
+Bugtracker
+===========
+
+If you have any suggestions, bug reports or
+annoyances please report them to the issue tracker
+at https://github.com/klen/python-mode/issues
+
+
+Contributing
+============
+
+Development of pylint-mode happens at github: https://github.com/klen/python-mode
+
+
+Copyright
+=========
+
+Copyright (C) 2012 Kirill Klenov (klen_)
+
+    **Rope**
+        Copyright (C) 2006-2010 Ali Gholami Rudi
+
+        Copyright (C) 2009-2010 Anton Gritsay
+
+    **Pylint**
+        Copyright (C) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
+        http://www.logilab.fr/
+
+    **Pyflakes**:
+        Copyright (c) 2005 Divmod, Inc.
+        http://www.divmod.com/
+
+    **Python syntax for vim**
+        Copyright (c) 2010 Dmitry Vasiliev
+        http://www.hlabs.spb.ru/vim/python.vim
+
+
+License
+=======
+
+Licensed under a `GNU lesser general public license`_.
+
+If you like this plugin, you can send me postcard :) 
+My address is here: "Russia, 143401, Krasnogorsk, Shkolnaya 1-19" to "Kirill Klenov".
+**Thanks for support!**
+
+
+.. _GNU lesser general public license: http://www.gnu.org/copyleft/lesser.html
+.. _klen: http://klen.github.com/
+.. _pylint: http://www.logilab.org/857
+.. _pyflakes: http://pypi.python.org/pypi/pyflakes
+.. _rope: http://rope.sourceforge.net/
+.. _pydoc: http://docs.python.org/library/pydoc.html
+.. _pathogen: https://github.com/tpope/vim-pathogen
+.. _pep8: http://pypi.python.org/pypi/pep8
+.. _mccabe: http://en.wikipedia.org/wiki/Cyclomatic_complexity

bundle/python-mode/after/ftplugin/python.vim

+" Fix omnifunc
+if g:pymode && g:pymode_rope && g:pymode_rope_vim_completion
+    setlocal omnifunc=RopeOmni
+endif
+
+" Motion {{{
+
+    if !pymode#Default('g:pymode_motion', 1) || g:pymode_motion
+
+        nnoremap <buffer> ]]  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', '')<CR>
+        nnoremap <buffer> [[  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR>
+        nnoremap <buffer> ]C  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', '')<CR>
+        nnoremap <buffer> [C  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR>
+        nnoremap <buffer> ]M  :<C-U>call pymode#motion#move('^\s*def\s', '')<CR>
+        nnoremap <buffer> [M  :<C-U>call pymode#motion#move('^\s*def\s', 'b')<CR>
+
+        onoremap <buffer> ]]  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', '')<CR>
+        onoremap <buffer> [[  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR>
+        onoremap <buffer> ]C  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', '')<CR>
+        onoremap <buffer> [C  :<C-U>call pymode#motion#move('^\(class\\|def\)\s', 'b')<CR>
+        onoremap <buffer> ]M  :<C-U>call pymode#motion#move('^\s*def\s', '')<CR>
+        onoremap <buffer> [M  :<C-U>call pymode#motion#move('^\s*def\s', 'b')<CR>
+
+        vnoremap <buffer> ]]  :call pymode#motion#vmove('^\(class\\|def\)\s', '')<CR>
+        vnoremap <buffer> [[  :call pymode#motion#vmove('^\(class\\|def\)\s', 'b')<CR>
+        vnoremap <buffer> ]M  :call pymode#motion#vmove('^\s*def\s', '')<CR>
+        vnoremap <buffer> [M  :call pymode#motion#vmove('^\s*def\s', 'b')<CR>
+
+        onoremap <buffer> C  :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
+        onoremap <buffer> aC :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
+        onoremap <buffer> iC :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
+        vnoremap <buffer> aC :<C-U>call pymode#motion#select('^\s*class\s', 0)<CR>
+        vnoremap <buffer> iC :<C-U>call pymode#motion#select('^\s*class\s', 1)<CR>
+
+        onoremap <buffer> M  :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
+        onoremap <buffer> aM :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
+        onoremap <buffer> iM :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
+        vnoremap <buffer> aM :<C-U>call pymode#motion#select('^\s*def\s', 0)<CR>
+        vnoremap <buffer> iM :<C-U>call pymode#motion#select('^\s*def\s', 1)<CR>
+
+    endif
+
+" }}}

bundle/python-mode/autoload/pymode.vim

+" Python-mode base functions
+
+
+fun! pymode#Default(name, default) "{{{
+    " DESC: Set default value if it not exists
+    "
+    if !exists(a:name)
+        let {a:name} = a:default
+        return 0
+    endif
+    return 1
+endfunction "}}}
+
+
+fun! pymode#QuickfixOpen(onlyRecognized, holdCursor, maxHeight, minHeight, jumpError) "{{{
+    " DESC: Open quickfix window
+    "
+    let numErrors = len(filter(getqflist(), 'v:val.valid'))
+    let numOthers = len(getqflist()) - numErrors
+    if numErrors > 0 || (!a:onlyRecognized && numOthers > 0)
+        botright copen
+        exe max([min([line("$"), a:maxHeight]), a:minHeight]) . "wincmd _"
+        if a:jumpError
+            cc
+        elseif a:holdCursor
+            wincmd p
+        endif
+    else
+        cclose
+    endif
+    redraw
+    if numOthers > 0
+        echo printf('Quickfix: %d(+%d)', numErrors, numOthers)
+    else
+        echo printf('Quickfix: %d', numErrors)
+    endif
+endfunction "}}}
+
+
+fun! pymode#PlaceSigns() "{{{
+    " DESC: Place error signs
+    "
+    sign unplace *
+    for item in filter(getqflist(), 'v:val.bufnr != ""')
+        execute printf('silent! sign place 1 line=%d name=%s buffer=%d', item.lnum, item.type, item.bufnr)
+    endfor
+endfunction "}}}
+
+
+fun! pymode#CheckProgram(name, append) "{{{
+    " DESC: Check program is executable or redifined by user.
+    "
+    let name = 'g:' . a:name
+    if pymode#Default(name, a:name)
+        return 1
+    endif
+    if !executable(eval(l:name))
+        echoerr "Can't find '".eval(name)."'. Please set ".name .", or extend $PATH, ".a:append
+        return 0
+    endif
+    return 1
+endfunction "}}}
+
+
+fun! pymode#TempBuffer() "{{{
+    " DESC: Open temp buffer.
+    "
+    pclose | botright 8new
+    setlocal buftype=nofile bufhidden=delete noswapfile nowrap previewwindow
+    redraw
+endfunction "}}}
+
+
+fun! pymode#ShowStr(str) "{{{
+    " DESC: Open temp buffer with `str`.
+    "
+    let g:pymode_curbuf = bufnr("%")
+    call pymode#TempBuffer()
+    put! =a:str
+    redraw
+    normal gg 
+    wincmd p
+endfunction "}}}
+
+
+fun! pymode#ShowCommand(cmd) "{{{
+    " DESC: Run command and open temp buffer with result
+    "
+    call pymode#TempBuffer()
+    try
+        silent exec 'r!' . a:cmd
+    catch /.*/
+        close
+        echoerr 'Command fail: '.a:cmd
+    endtry
+    redraw
+    normal gg
+    wincmd p
+endfunction "}}}
+
+
+fun! pymode#WideMessage(msg) "{{{
+    " DESC: Show wide message
+
+    let x=&ruler | let y=&showcmd
+    set noruler noshowcmd
+    redraw
+    echo strpart(a:msg, 0, &columns-1)
+    let &ruler=x | let &showcmd=y
+endfunction "}}}
+
+
+fun! pymode#BlockStart(lnum, ...) "{{{
+    let pattern = a:0 ? a:1 : '^\s*\(@\|class\s.*:\|def\s\)'
+    let lnum = a:lnum + 1
+    let indent = 100
+    while lnum
+        let lnum = prevnonblank(lnum - 1)
+        let test = indent(lnum)
+        let line = getline(lnum)
+        if line =~ '^\s*#' " Skip comments
+            continue
+        elseif !test " Zero-level regular line
+            return lnum
+        elseif test >= indent " Skip deeper or equal lines
+            continue
+        " Indent is strictly less at this point: check for def/class
+        elseif line =~ pattern && line !~ '^\s*@'
+            return lnum
+        endif
+        let indent = indent(lnum)
+    endwhile
+    return 0
+endfunction "}}}
+
+
+fun! pymode#BlockEnd(lnum, ...) "{{{
+    let indent = a:0 ? a:1 : indent(a:lnum)
+    let lnum = a:lnum
+    while lnum
+        let lnum = nextnonblank(lnum + 1)
+        if getline(lnum) =~ '^\s*#' | continue
+        elseif lnum && indent(lnum) <= indent
+            return lnum - 1
+        endif
+    endwhile
+    return line('$')
+endfunction "}}}
+
+
+" vim: fdm=marker:fdl=0

bundle/python-mode/autoload/pymode/breakpoint.vim

+fun! pymode#breakpoint#Set(lnum) "{{{
+    let line = getline(a:lnum)
+    if strridx(line, g:pymode_breakpoint_cmd) != -1
+        normal dd
+    else
+        let plnum = prevnonblank(a:lnum)
+        call append(line('.')-1, repeat(' ', indent(plnum)).g:pymode_breakpoint_cmd)
+        normal k
+    endif
+    if &modifiable && &modified | write | endif	
+endfunction "}}}

bundle/python-mode/autoload/pymode/doc.vim

+" Python-mode search by documentation
+
+
+fun! pymode#doc#Show(word) "{{{
+    if a:word == ''
+        echoerr "No name/symbol under cursor!"
+    else
+        py sys.stdout, _ = StringIO.StringIO(), sys.stdout
+        py help(vim.eval('a:word'))
+        py sys.stdout, out = _, sys.stdout.getvalue()
+        redi @">
+        sil!py print out
+        redi END
+        call pymode#TempBuffer()
+        normal Pdd
+        wincmd p
+    endif
+endfunction "}}}
+
+
+" vim: fdm=marker:fdl=0

bundle/python-mode/autoload/pymode/folding.vim

+" Python-mode folding functions
+
+
+let s:defpat = '^\s*\(@\|class\s.*:\|def\s\)'
+
+
+fun! pymode#folding#text() " {{{
+    let fs = v:foldstart
+    while getline(fs) =~ '^\s*@' 
+        let fs = nextnonblank(fs + 1)
+    endwhile
+    let line = getline(fs)
+
+    let nucolwidth = &fdc + &number * &numberwidth
+    let windowwidth = winwidth(0) - nucolwidth - 3
+    let foldedlinecount = v:foldend - v:foldstart
+
+    " expand tabs into spaces
+    let onetab = strpart('          ', 0, &tabstop)
+    let line = substitute(line, '\t', onetab, 'g')
+
+    let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
+    let fillcharcount = windowwidth - len(line) - len(foldedlinecount)
+    return line . '…' . repeat(" ",fillcharcount) . foldedlinecount . '…' . ' '
+endfunction "}}}
+
+
+fun! pymode#folding#indent(lnum) "{{{
+    let indent = indent(pymode#BlockStart(a:lnum))
+    return indent ? indent + &shiftwidth : 0
+endfunction "}}}
+
+
+fun! pymode#folding#expr(lnum) "{{{
+    let line = getline(a:lnum)
+    let indent = indent(a:lnum)
+
+    if line == '' | return getline(a:lnum+1) == ''?'=':'-1' | endif
+
+    if line =~ s:defpat && getline(prevnonblank(a:lnum-1)) !~ '^\s*@'
+        let n = a:lnum
+        while getline(n) =~ '^\s*@' | let n = nextnonblank(n + 1) | endwhile
+        if getline(n) =~ s:defpat
+            return ">".(indent/&shiftwidth+1)
+        endif
+    endif
+
+    let p = prevnonblank(a:lnum-1)
+    while p>0 && getline(p) =~ '^\s*#' | let p = prevnonblank(p-1)
+    endwhile
+    let pind = indent(p)
+    if getline(p) =~ s:defpat && getline(prevnonblank(a:lnum - 1)) !~ '^\s*@'
+        let pind = pind + &shiftwidth
+    elseif p==0 | let pind = 0
+    endif
+
+    if indent>0 && indent==pind | return '='
+    elseif indent>pind | return '='
+    elseif indent==0
+        if pind==0 && line =~ '^#' | return 0
+        elseif line !~'^#'
+            if 0<pind && line!~'^else\s*:\|^except.*:\|^elif.*:\|^finally\s*:' | return '>1'
+            elseif 0==pind && getline(prevnonblank(a:lnum-1)) =~ '^\s*#' | return '>1'
+            else | return '='
+            endif
+        endif
+        let n = nextnonblank(a:lnum+1)
+        while n>0 && getline(n) =~'^\s*#' | let n = nextnonblank(n+1)
+        endwhile
+        if indent(n)==0 | return 0
+        else | return -1
+        end
+    endif
+    let blockindent = indent(pymode#BlockStart(a:lnum)) + &shiftwidth
+    if blockindent==0 | return 1 | endif
+    let n = nextnonblank(a:lnum+1)
+    while n>0 && getline(n) =~'^\s*#' | let n = nextnonblank(n+1) | endwhile
+    let nind = indent(n)
+    if line =~ '^\s*#' && indent>=nind | return -1
+    elseif line =~ '^\s*#' | return nind / &shiftwidth
+    else | return blockindent / &shiftwidth
+    endif
+endfunction "}}}
+
+
+" vim: fdm=marker:fdl=0

bundle/python-mode/autoload/pymode/lint.vim

+fun! pymode#lint#Check()
+
+    if !g:pymode_lint | return | endif
+
+    let b:errors = {}
+
+    if &modifiable && &modified
+        try
+            write
+        catch /E212/
+            echohl Error | echo "File modified and I can't save it. Cancel code checking." | echohl None
+            return 0
+        endtry
+    endif	
+
+    py check_file()
+
+    if g:qf_list != b:qf_list
+
+        call setqflist(b:qf_list, 'r')
+
+        let g:qf_list = b:qf_list
+
+        if g:pymode_lint_message
+            for v in b:qf_list
+                let b:errors[v['lnum']] = v['text']
+            endfor
+            call pymode#lint#show_errormessage()
+        endif
+
+        if g:pymode_lint_cwindow
+            call pymode#QuickfixOpen(0, g:pymode_lint_hold, g:pymode_lint_maxheight, g:pymode_lint_minheight, g:pymode_lint_jump)
+        endif
+
+    endif
+
+    if g:pymode_lint_signs
+        call pymode#PlaceSigns()
+    endif
+
+endfunction
+
+
+fun! pymode#lint#Toggle() "{{{
+    let g:pymode_lint = g:pymode_lint ? 0 : 1
+    call pymode#lint#toggle_win(g:pymode_lint, "Pymode lint")
+endfunction "}}}
+
+
+fun! pymode#lint#ToggleWindow() "{{{
+    let g:pymode_lint_cwindow = g:pymode_lint_cwindow ? 0 : 1
+    call pymode#lint#toggle_win(g:pymode_lint_cwindow, "Pymode lint cwindow")
+endfunction "}}}
+
+
+fun! pymode#lint#ToggleChecker() "{{{
+    let g:pymode_lint_checker = g:pymode_lint_checker == "pylint" ? "pyflakes" : "pylint"
+    echomsg "Pymode lint checker: " . g:pymode_lint_checker
+endfunction "}}}
+
+
+fun! pymode#lint#toggle_win(toggle, msg) "{{{
+    if a:toggle
+        echomsg a:msg." enabled"
+        botright cwindow
+        if &buftype == "quickfix"
+            wincmd p
+        endif
+    else
+        echomsg a:msg." disabled"
+        cclose
+    endif
+endfunction "}}}
+
+
+fun! pymode#lint#show_errormessage() "{{{
+    if !len(b:errors) | return | endif
+    let cursor = getpos(".")
+    if has_key(b:errors, l:cursor[1])
+        call pymode#WideMessage(b:errors[l:cursor[1]])
+        let b:show_message = 1
+    else
+        let b:show_message = 0
+        echo
+    endif
+endfunction " }}}

bundle/python-mode/autoload/pymode/motion.vim

+" Python-mode motion functions
+
+
+fun! pymode#motion#move(pattern, flags, ...) "{{{
+    let cnt = v:count1 - 1
+    let [line, column] = searchpos(a:pattern, a:flags . 'sW')
+    let indent = indent(line)
+    while cnt && line
+        let [line, column] = searchpos(a:pattern, a:flags . 'W')
+        if indent(line) == indent
+            let cnt = cnt - 1
+        endif
+    endwhile
+    return [line, column]
+endfunction "}}}
+
+
+fun! pymode#motion#vmove(pattern, flags) range "{{{
+    call cursor(a:lastline, 0)
+    let end = pymode#motion#move(a:pattern, a:flags)
+    call cursor(a:firstline, 0)
+    normal! v
+    call cursor(end)
+endfunction "}}} 
+
+
+fun! pymode#motion#pos_le(pos1, pos2) "{{{
+    return ((a:pos1[0] < a:pos2[0]) || (a:pos1[0] == a:pos2[0] && a:pos1[1] <= a:pos2[1]))
+endfunction "}}}
+
+
+fun! pymode#motion#select(pattern, inner) "{{{
+    let cnt = v:count1 - 1
+    let orig = getpos('.')[1:2]
+    let snum = pymode#BlockStart(orig[0], a:pattern)
+    if getline(snum) !~ a:pattern
+        return 0
+    endif
+    let enum = pymode#BlockEnd(snum, indent(snum))
+    while cnt
+        let lnum = search(a:pattern, 'nW')
+        if lnum
+            let enum = pymode#BlockEnd(lnum, indent(lnum))
+            call cursor(enum, 1)
+        endif
+        let cnt = cnt - 1
+    endwhile
+    if pymode#motion#pos_le([snum, 0], orig) && pymode#motion#pos_le(orig, [enum, 1])
+        if a:inner
+            let snum = snum + 1
+            let enum = prevnonblank(enum)
+        endif
+
+        call cursor(snum, 1)
+        normal! v
+        call cursor(enum, len(getline(enum)))
+    endif
+endfunction "}}}
+
+
+" vim: fdm=marker:fdl=0

bundle/python-mode/autoload/pymode/run.vim

+" DESC: Save file if it modified and run python code
+fun! pymode#run#Run(line1, line2) "{{{
+    if &modifiable && &modified | write | endif	
+    redi @">
+    sil!py execfile(vim.eval('expand("%s:p")'))
+    redi END
+    call pymode#TempBuffer()
+    normal ""Pdd
+    wincmd p
+endfunction "}}}

bundle/python-mode/autoload/pymode/virtualenv.vim

+fun! pymode#virtualenv#Activate() "{{{
+
+    if !exists("$VIRTUAL_ENV")
+        return
+    endif
+
+    for env in g:pymode_virtualenv_enabled
+        if env == $VIRTUAL_ENV
+            return 0
+        endif
+    endfor
+
+    call add(g:pymode_virtualenv_enabled, $VIRTUAL_ENV)
+
+python << EOF
+ve_dir = os.environ['VIRTUAL_ENV']
+ve_dir in sys.path or sys.path.insert(0, ve_dir)
+activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')
+execfile(activate_this, dict(__file__=activate_this))
+EOF
+endfunction "}}}

bundle/python-mode/doc/pymode.txt

+*pymode.txt*  *python-mode.txt*  Python-mode for vim!
+
+    ____  _  _  ____  _   _  _____  _  _     __  __  _____  ____  ____      ~
+   (  _ \( \/ )(_  _)( )_( )(  _  )( \( )___(  \/  )(  _  )(  _ \( ___)     ~
+    )___/ \  /   )(   ) _ (  )(_)(  )  ((___))    (  )(_)(  )(_) ))__)      ~
+   (__)   (__)  (__) (_) (_)(_____)(_)\_)   (_/\/\_)(_____)(____/(____)     ~
+
+
+                          Version: 0.6.1
+
+==============================================================================
+CONTENTS                                                  *Python-mode-contents*
+
+    1.Intro...................................|PythonMode|
+    2.Options.................................|PythonModeOptions|
+        2.1.Customisation details.............|PythonModeOptionsDetails|
+    3.Default Keys............................|PythonModeKeys|
+    4.Commands................................|PythonModeCommands|
+    5.FAQ.....................................|PythonModeFAQ|
+    6.Credits.................................|PythonModeCredits|
+    7.License.................................|PythonModeLicense|
+
+==============================================================================
+1. Intro ~
+                                                                    *PythonMode*
+
+Python-mode is a vim plugin that allows you to use the pylint, rope, pydoc
+library in vim to provide features like python code looking for bugs,
+refactoring and some other usefull things.
+
+This plugin allow you create python code in vim very easily. There is no need
+to install the pylint or rope library on your system.
+
+
+==============================================================================
+2. Options ~
+                                                             *PythonModeOptions*
+
+	Note:
+        Pylint options (ex. disable messages) may be defined in '$HOME/pylint.rc'
+        See pylint documentation.
+
+The script provides the following options that can customise the behaviour the
+PythonMode. These options should be set in your vimrc.
+
+|'pymode_doc'|                      Turns off the documentation script
+
+|'pymode_doc_key'|                  Key for show documentation
+
+|'pymode_run'|                      Turns off the run code script
+
+|'pymode_run_key'|                  Key for run python code
+
+|'pymode_lint'|                     Turns off pylint script
+
+|'pymode_lint_checker'|             Switch code checkers (pylint, pyflakes, pep8, mccabe)
+
+|'pymode_lint_ignore'|              Skip errors and warnings
+
+|'pymode_lint_select'|              Select errors and warnings
+
+|'pymode_lint_onfly'|               Run linter on the fly
+
+|'pymode_lint_config'|              Filepath to pylinc configuration
+
+|'pymode_lint_write'|               Check code every save
+
+|'pymode_lint_cwindow'|             Show cwindow
+
+|'pymode_lint_message'|             Show current line errors in bottom
+
+|'pymode_lint_signs'|               Place signs
+
+|'pymode_lint_jump'|                Auto jump on first error
+
+|'pymode_lint_hold'|                Hold cursor in current window
+
+|'pymode_lint_minheight'|           Minimal height of pylint error window
+
+|'pymode_lint_maxheight'|           Maximal height of pylint error window
+
+|'pymode_rope'|                     Turns off rope script
+
+|'pymode_folding'|                  Turns on/off python folding
+
+|'pymode_breakpoint'|               Turns off breakpoint script
+
+|'pymode_breakpoint_key'|           Key for breakpoint
+
+|'pymode_utils'|                    Turns off utils
+
+|'pymode_virtualenv'|               Turns off virtualenv
+
+|'pymode_utils_whitespaces'|        Remove unused whitespaces
+
+|'pymode_syntax'|                   Turns off the custom syntax highlighting
+
+|'pymode_options_indent'|           Set default pymode options for
+                                  python indentation
+
+|'pymode_options_other'|            Set default pymode options for
+                                  python codding
+
+|'pymode_motion'|                   Enable pymode motion stuff
+
+        Note:
+        Also see |ropevim.txt|
+
+
+------------------------------------------------------------------------------
+2.1. Customisation details ~
+                                                      *PythonModeOptionsDetails*
+
+To enable any of the below options you should put the given line in your
+'$HOME/.vimrc'. See |vimrc-intro|.
+
+------------------------------------------------------------------------------
+                                                                  *'pymode_doc'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then docs script is disabled.
+
+------------------------------------------------------------------------------
+                                                              *'pymode_doc_key'*
+Default: 'K'.
+
+Set key for show python documentation.
+
+------------------------------------------------------------------------------
+                                                                  *'pymode_run'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then run script is disabled.
+
+------------------------------------------------------------------------------
+                                                              *'pymode_run_key'*
+Default: '<leader>r'.
+
+Set key for run python code.
+
+------------------------------------------------------------------------------
+                                                                 *'pymode_lint'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then pylint script is disabled.
+
+------------------------------------------------------------------------------
+                                                         *'pymode_lint_checker'*
+Values: "pylint", "pyflakes", "pep8", "mccabe"
+        You can set many checkers. E.g. "pyflakes,pep8,mccabe" ~
+
+Default: "pyflakes,pep8,mccabe".
+
+This option set code checkers.
+
+------------------------------------------------------------------------------
+                                                          *'pymode_lint_ignore'*
+Values: IDs of errors, separated by commas or empty string
+        E.g. "E501,W002", "E2,W" (Skip all Warnings and Errors startswith E2) and etc ~
+
+Default: "E501".
+
+Skip errors and warnings.
+See also: |'pymode_lint_select'|, |'pymode_lint_config'|
+
+------------------------------------------------------------------------------
+                                                         *'pymode_lint_select'*
+Values: IDs of errors, separated by commas or empty string
+        E.g. "W002,C" Force W002 and all C-ids ~
+
+Default: "".
+
+Select errors and warnings.
+See also: |'pymode_lint_ignore'|, |'pymode_lint_config'|
+
+------------------------------------------------------------------------------
+                                                           *'pymode_lint_onfly'*
+Values: 0 or 1
+Default: 0
+
+This option enabled "on the fly" code checking
+
+------------------------------------------------------------------------------
+                                                          *'pymode_lint_config'*
+Values: 'Path to pylint configuration file'
+Default: "$HOME/.pylintrc"
+
+If this option is set path to pylint configuration. If configuration not found
+uses file 'pylintrc' from python-mode sources.
+
+See also: |'pymode_lint_ignore'|, |'pymode_lint_select'|
+
+------------------------------------------------------------------------------
+                                                           *'pymode_lint_write'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then pylint auto check every save is disabled.
+
+------------------------------------------------------------------------------
+                                                         *'pymode_lint_cwindow'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then pylint not show cwindow.
+
+------------------------------------------------------------------------------
+                                                         *'pymode_lint_message'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then pylint not show errors in bottom
+
+------------------------------------------------------------------------------
+                                                           *'pymode_lint_signs'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then pylint not place error signs.
+
+------------------------------------------------------------------------------
+                                                            *'pymode_lint_jump'*
+Values: 0 or 1.
+Default: 0.
+
+If this option is set to 0 then pylint not jump on first error.
+
+------------------------------------------------------------------------------
+                                                            *'pymode_lint_hold'*
+Values: 0 or 1.
+Default: 0.
+
+If this option is set to 0 then pylint switch on quickfix window when it open
+Not working when |'pymode_lint_jump'| enabled.
+
+------------------------------------------------------------------------------
+                                                       *'pymode_lint_minheight'*
+Values: int
+Default: 3.
+
+Set minimal height for pylint cwindow
+
+------------------------------------------------------------------------------
+                                                       *'pymode_lint_maxheight'*
+Values: int
+Default: 6.
+
+Set maximal height for pylint cwindow
+
+------------------------------------------------------------------------------
+                                                                 *'pymode_rope'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then rope script is disabled.
+
+------------------------------------------------------------------------------
+                                                           *'pymode_breakpoint'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then breakpoint script is disabled.
+
+------------------------------------------------------------------------------
+                                                       *'pymode_breakpoint_key'*
+Default: '<leader>b'.
+
+ Key for set/unset breakpoint
+
+------------------------------------------------------------------------------
+                                                                *'pymode_utils'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then utils script is disabled.
+
+------------------------------------------------------------------------------
+                                                           *'pymode_virtualenv'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then virtualenv support is disabled.
+
+------------------------------------------------------------------------------
+                                                    *'pymode_utils_whitespaces'*
+Values: 0 or 1.
+Default: 1.
+
+Autoremove unused whitespaces
+
+------------------------------------------------------------------------------
+                                                               *'pymode_syntax'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 0 then the custom syntax highlighting will
+not be used.
+
+------------------------------------------------------------------------------
+                                                       *'pymode_options_indent'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 1, pymode enable next options for python buffers: >
+
+    setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class
+    setlocal cindent
+    setlocal tabstop=4
+    setlocal softtabstop=4
+    setlocal shiftwidth=4
+    setlocal shiftround
+    setlocal smartindent
+    setlocal smarttab
+    setlocal expandtab
+    setlocal autoindent
+<
+------------------------------------------------------------------------------
+                                                              *'pymode_folding'*
+Values: 0 or 1.
+Default: 1.
+
+If this option is set to 1, pymode enable python-folding.
+
+------------------------------------------------------------------------------
+                                                        *'pymode_options_other'*
+Values: 0 or 1.