tyler569

.vimrc

Apr 3rd, 2017
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.49 KB | None | 0 0
  1. set nocompatible    " Because what's even the point without this?
  2.  
  3. execute pathogen#infect()
  4.  
  5. " vim-airline
  6. let g:airline_powerline_fonts = 1
  7.  
  8. " syntastic
  9. let g:syntastic_always_populate_loc_list = 1
  10. let g:syntastic_auto_loc_list = 1
  11. let g:syntastic_check_on_open = 1
  12. let g:syntastic_check_on_wq = 0
  13.  
  14. syntax on
  15. filetype plugin indent on
  16.  
  17. " 256 colors and colorscheme
  18. set t_Co=256
  19.  
  20. let mapleader=","
  21.  
  22. set number          " Line numbers
  23. set laststatus=2    " Status line for file names
  24. set backspace=2     " Make backspace work
  25.  
  26. set expandtab       " Tabs -> spaces
  27. set softtabstop=4   " Tabs -> spaces gooder
  28. set tabstop=4       " Show tabs as 4 spaces
  29. set shiftwidth=4    " Reident 4 spaces
  30. nnoremap <leader><tab> gg=G " retab everything
  31.  
  32. set wildmenu        " Menu for command mode
  33. set lazyredraw      " Don't redraw the screen greedily
  34. set showmatch       " Highlight matching [{()}]
  35.  
  36. set visualbell      " SHUT UP WINDOWS
  37.  
  38. set incsearch       " Search as you type
  39. set hlsearch        " Highlight all matches
  40.  
  41. " Unhighlight all matches
  42. nnoremap <leader><space> :nohlsearch<CR>
  43.  
  44. set ruler           " Show cursor location (29,45)
  45.  
  46. set hidden          " Allow background buffers
  47.  
  48. " Backup to /tmp except what's in /tmp
  49. set backup
  50. set backupdir=/tmp
  51. set backupskip=/tmp
  52. set directory=/tmp
  53. set writebackup
  54.  
  55. " When moving between panes, C-hjkl instead of C-w C-hjkl
  56. nnoremap <C-H> <C-W><C-H>
  57. nnoremap <C-J> <C-W><C-J>
  58. nnoremap <C-K> <C-W><C-K>
  59. nnoremap <C-L> <C-W><C-L>
Add Comment
Please, Sign In to add comment