Advertisement
Guest User

jminardi's vimrc

a guest
Mar 20th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.53 KB | None | 0 0
  1. call pathogen#infect()
  2. call pathogen#helptags()
  3.  
  4. let mapleader = ","
  5.  
  6. set nocompatible
  7. set smartindent
  8. set autoindent
  9. set hlsearch
  10. set incsearch
  11. set showmatch
  12. set showcmd         " display incomplete commands
  13. set ruler           " show the cursor position all the time
  14. set cursorline
  15.  
  16. syntax on
  17. colorscheme desert
  18. set background=dark
  19.  
  20. filetype on            " enables filetype detection
  21. filetype plugin on     " enables filetype specific plugins
  22. filetype indent on
  23.  
  24. set tabstop=4
  25. set shiftwidth=4
  26. set expandtab
  27. set softtabstop=4
  28. set scrolloff=3 " keep three lines at the bottom or top
  29.  
  30. set colorcolumn=80,81,82
  31. highlight ColorColumn ctermbg=darkgrey guibg=#313131
  32. highlight clear SignColumn " Make GitGutter look nice
  33.  
  34. nmap ,, :tabnew<CR>
  35. nmap ,. :tabnext<CR>
  36. nmap ., :tabpre<CR>
  37.  
  38. " run current file in python
  39. nmap rr :!python %<CR>
  40. " run the tests of the file
  41. nmap rt :!python tests\test_%<CR>
  42.  
  43.  
  44. "PYTHON-MODE OPTIONS
  45. " Enable python folding
  46. let g:pymode_folding = 0
  47. " Switch pylint, pyflakes, pep8, mccabe code-checkers
  48. " Can have multiply values "pep8,pyflakes,mcccabe"
  49. let g:pymode_lint_checker = "pep8,pyflakes"
  50. " Run linter on the fly
  51. let g:pymode_lint_onfly = 0
  52. " Minimal height of pylint error window
  53. let g:pymode_lint_minheight = 1
  54. " Load run code plugin
  55. let g:pymode_run = 1
  56.  
  57. autocmd InsertEnter * :set number
  58. autocmd InsertLeave * :set relativenumber
  59.  
  60. "enaml
  61. autocmd BufNewFile,BufRead,BufEnter *.enaml setfiletype enaml
  62.  
  63. "no icon bar
  64. set guioptions-=T
  65.  
  66. autocmd QuickFixCmdPost *grep* cwindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement