Advertisement
Guest User

.vimrc

a guest
Mar 14th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.30 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 elflord
  12.  
  13. let mapleader=","
  14.  
  15. set number          " Line numbers
  16. set laststatus=2    " Status line for file names
  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. nnoremap <leader><tab> gg=G
  24.  
  25. set wildmenu        " Menu for command mode
  26. set lazyredraw      " Don't redraw the screen greedily
  27. set showmatch       " Highlight matching [{()}]
  28.  
  29. set visualbell      " SHUT UP WINDOWS
  30.  
  31. "set incsearch       " Search as you type
  32. set hlsearch        " Highlight all matches
  33. " Unhighlight all matches
  34. nnoremap <leader><space> :nohlsearch<CR>
  35.  
  36. set ruler           " Show cursor location (29,45)
  37.  
  38. set hidden          " Allow background buffers
  39.  
  40. " Backup to /tmp except what's in /tmp
  41. set backup
  42. set backupdir=/tmp
  43. set backupskip=/tmp
  44. set directory=/tmp
  45. set writebackup
  46.  
  47. set noswapfile
  48.  
  49. " When moving between panes, C-hjkl instead of C-w C-hjkl
  50. nnoremap <C-H> <C-W><C-H>
  51. nnoremap <C-J> <C-W><C-J>
  52. nnoremap <C-K> <C-W><C-K>
  53. nnoremap <C-L> <C-W><C-L>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement