Guest User

vimrc

a guest
May 23rd, 2013
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.78 KB | None | 0 0
  1. execute pathogen#infect()
  2.  
  3.  
  4. se nocompatible
  5. "ftiletype plugin indent on "detects filetypes, plugins and indentexpr
  6. syntax on
  7. let clj_highlight_builtins = 1 "for clojure
  8. let g:rainbow_active = 1
  9. let g:rainbow_operators = 1
  10.  
  11. "" Haskell stuff
  12. au Bufenter *.hs compiler ghc " use ghc functionality for haskell files
  13. let g:haddock_browser = "/usr/bin/opera" " configures browser for haskell_doc.vim
  14.  
  15.  
  16.  
  17. " Uncomment the following to have Vim jump to the last position when
  18. " reopening a file
  19. if has("autocmd")
  20.   au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
  21.     \| exe "normal g'\"" | endif
  22. endif
  23.  
  24. "simple flags
  25. set nu              " Shows line numbers.
  26. set tabstop=2       " Default is 8, how much a tab indents.
  27. set shiftwidth=2    "Default is 8, for consistency with tabstop <<
  28. set expandtab       "uses spaces for indendtation instead of tabs.
  29. set ai              "autoindent
  30. set showmatch       " Show matching brackets.
  31. set noincsearch     " Does not find as type
  32. set ignorecase      " Case insensitve search
  33. set showcmd         " Shows commands as they are typed
  34. set autochdir       " Location of current file is active working directory
  35. colorscheme desert   " good colors: default, koehler, pablo, shine, desert
  36. set nobackup        " so it doesn't spam ~ files
  37. set writebackup     " temporary backup until file is written
  38. set wrap        " visually wraps lines down, does not affect content
  39. set nohlsearch
  40. "fancy commands
  41. autocmd FileType text setlocal textwidth=84 "if it is a text file, start new lines after textwidth is hit
  42.  
  43.  
  44.  
  45.  
  46. " Uncomment the following to have Vim load indentation rules according to the
  47. " detected filetype. Per default Debian Vim only load filetype specific
  48. " plugins.
  49. " down here to override set ai
  50. if has("autocmd")
  51.   filetype indent on
  52. endif
Advertisement
Add Comment
Please, Sign In to add comment