Advertisement
tyler569

.vimrc

May 20th, 2016
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.26 KB | None | 0 0
  1.  
  2. set nocompatible    " Because what's even the point without this?
  3.  
  4. execute pathogen#infect()
  5.  
  6. syntax on
  7. filetype plugin indent on
  8.  
  9. " 256 colors and colorscheme
  10. set t_Co=256
  11. colorscheme default
  12.  
  13. let mapleader=","
  14.  
  15. set number          " Line numbers
  16. set modeline        " -- INSERT --
  17. set backspace=2     " Make backspace work
  18.  
  19. set expandtab       " Tabs -> spaces
  20. set softtabstop=4   " Tabs -> spaces gooder
  21. set tabstop=4       " Show tabs as 4 spaces
  22. set shiftwidth=4    " Reident 4 spaces
  23.  
  24. set wildmenu        " Menu for command mode
  25. set lazyredraw      " Don't redraw the screen greedily
  26. set showmatch       " Highlight matching [{()}]
  27.  
  28. "set incsearch       " Search as you type
  29. set hlsearch        " Highlight all matches
  30. " Unhighlight all matches
  31. nnoremap <leader><space> :nohlsearch<CR>
  32.  
  33. set ruler           " Show cursor location (29,45)
  34.  
  35. set hidden          " Allow background buffers
  36.  
  37. " Backup to /tmp except what's in /tmp
  38. set backup
  39. set backupdir=/tmp
  40. set backupskip=/tmp
  41. set directory=/tmp
  42. set writebackup
  43.  
  44. set noswapfile
  45.  
  46. " When moving between panes, C-hjkl instead of C-w C-hjkl
  47. nnoremap <C-H> <C-W><C-H>
  48. nnoremap <C-J> <C-W><C-J>
  49. nnoremap <C-K> <C-W><C-K>
  50. nnoremap <C-L> <C-W><C-L>
  51.  
  52. nnoremap <leader>r :!rustc % && ./%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement