Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.94 KB | None | 0 0
  1. execute pathogen#infect()
  2. syntax on
  3. filetype plugin indent on
  4.  
  5. set showcmd
  6. set encoding=utf-8
  7. set laststatus=2
  8. set cursorline
  9.  
  10. set t_Co=256
  11.  
  12. autocmd StdinReadPre * let s:std_in=1
  13. autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
  14. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
  15.  
  16. map <C-n> :NERDTreeToggle<CR>
  17.  
  18. "" Searching
  19. set hlsearch " highlight matches
  20. set incsearch " incremental searching
  21. set ignorecase " searches are case insensitive...
  22. set smartcase " unless they contain at least one capital letter
  23.  
  24. set background=dark
  25. set nocompatible
  26.  
  27. map <f2> :set number! number?<cr>
  28.  
  29. set relativenumber
  30. set number
  31. set list
  32. set listchars=tab:>·,trail:·
  33.  
  34. set noshowmode
  35.  
  36. set numberwidth=3
  37. set foldmethod=indent
  38. set foldlevel=99
  39.  
  40. set shiftwidth=4
  41. set smarttab
  42. set tabstop=4
  43. set autoindent
  44. set expandtab
  45.  
  46. set history=1000
  47.  
  48. au BufNewFile,BufRead *.py
  49.     \ set expandtab tabstop=4 smarttab softtabstop=4 expandtab fileformat=unix
  50.  
  51. let NERDTreeIgnore=['\.pyc$', '\~$']
  52.  
  53. let g:ycm_autoclose_preview_window_after_completion=1
  54.  
  55. nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
  56. let g:ycm_python_binary_path = 'python'
  57.  
  58. let g:pymode_rope = 1
  59.  
  60. " Support virtualenv
  61. let g:pymode_virtualenv = 1
  62.  
  63. " Documentation
  64. let g:pymode_doc = 1
  65. let g:pymode_doc_key = 'K'
  66.  
  67. "Linting
  68. let g:pymode_lint = 1
  69. let g:pymode_lint_checker = "pyflakes,pep8"
  70.  
  71. " Auto check on save
  72. let g:pymode_lint_write = 1
  73.  
  74. " Enable breakpoints plugin
  75. let g:pymode_breakpoint = 1
  76. let g:pymode_breakpoint_bind = '<leader>b'
  77.  
  78.  
  79. " syntax highlighting
  80. let g:pymode_syntax = 1
  81. let g:pymode_syntax_all = 1
  82. let g:pymode_syntax_indent_errors = g:pymode_syntax_all
  83. let g:pymode_syntax_space_errors = g:pymode_syntax_all
  84.  
  85. " Don't autofold code
  86. let g:pymode_folding = 0
  87.  
  88. "let g:pymode_python = 'python'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement