bearrider

vimrc

Oct 18th, 2016
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "                      my  ~/.vimrc file
  2. "-----------------------------------------BEGIN---------------------------------
  3.  
  4. " vim settings, rather than vi settings: must come first, because it changes other options as a side effect.
  5. set nocompatible
  6.  
  7. " switch syntax highlighting on
  8. syntax enable
  9. colorscheme koehler
  10.  
  11. set omnifunc=syntaxcomplete#Complete
  12.  
  13.  
  14. " show line numbers
  15. set number
  16.  
  17. " load filetype-specific indent files
  18. filetype indent on
  19. filetype plugin indent on
  20.  
  21. " paste with formatting
  22. set paste
  23.  
  24. " highlight matching brackets
  25. set showmatch
  26.  
  27. " show command in bottom bar
  28. set showcmd
  29.  
  30. " show column numbers
  31. set ruler
  32.  
  33. " allow hidden buffers, don't limit to 1 file per window/split
  34. set hidden
  35.  
  36. " normal backspace behaviour
  37. set backspace=indent,eol,start
  38.  
  39.  
  40. " PEP8 compliance for python files
  41. set tabstop=4 " number of visual spaces per Tab
  42. set softtabstop=4 " number of spaces in tab when editing
  43. set shiftwidth=4
  44. set textwidth=79
  45. set expandtab " tabs are spaces
  46. set autoindent
  47. set fileformat=unix
  48. set autowrite
  49.  
  50. set foldenable " enable folding
  51. set foldlevelstart=10 " open most folds by default
  52. set foldnestmax=10 " 10 nested fold max
  53. set foldmethod=indent
  54. set foldlevel=99
  55.  
  56. " highlight matches
  57. set hlsearch
  58.  
  59. " search as characters are entered
  60. set incsearch
  61.  
  62. " disable arrow keys, use hjkl instead
  63. noremap <Up>    <NOP>
  64. noremap <Down>  <NOP>
  65. noremap <Left>  <NOP>
  66. noremap <Right> <NOP>
Advertisement