Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute pathogen#infect()
- syntax on
- filetype plugin indent on
- set showcmd
- set encoding=utf-8
- set laststatus=2
- set cursorline
- set t_Co=256
- autocmd StdinReadPre * let s:std_in=1
- autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
- autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
- map <C-n> :NERDTreeToggle<CR>
- "" Searching
- set hlsearch " highlight matches
- set incsearch " incremental searching
- set ignorecase " searches are case insensitive...
- set smartcase " unless they contain at least one capital letter
- set background=dark
- set nocompatible
- map <f2> :set number! number?<cr>
- set relativenumber
- set number
- set list
- set listchars=tab:>·,trail:·
- set noshowmode
- set numberwidth=3
- set foldmethod=indent
- set foldlevel=99
- set shiftwidth=4
- set smarttab
- set tabstop=4
- set autoindent
- set expandtab
- set history=1000
- au BufNewFile,BufRead *.py
- \ set expandtab tabstop=4 smarttab softtabstop=4 expandtab fileformat=unix
- let NERDTreeIgnore=['\.pyc$', '\~$']
- let g:ycm_autoclose_preview_window_after_completion=1
- nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
- let g:ycm_python_binary_path = 'python'
- let g:pymode_rope = 1
- " Support virtualenv
- let g:pymode_virtualenv = 1
- " Documentation
- let g:pymode_doc = 1
- let g:pymode_doc_key = 'K'
- "Linting
- let g:pymode_lint = 1
- let g:pymode_lint_checker = "pyflakes,pep8"
- " Auto check on save
- let g:pymode_lint_write = 1
- " Enable breakpoints plugin
- let g:pymode_breakpoint = 1
- let g:pymode_breakpoint_bind = '<leader>b'
- " syntax highlighting
- let g:pymode_syntax = 1
- let g:pymode_syntax_all = 1
- let g:pymode_syntax_indent_errors = g:pymode_syntax_all
- let g:pymode_syntax_space_errors = g:pymode_syntax_all
- " Don't autofold code
- let g:pymode_folding = 0
- "let g:pymode_python = 'python'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement