tyler569 icon

.vimrc

tyler569 | PRO | 04/03/17 08:33:49 PM UTC | 0 ⭐ | 765 👁️ | Never ⏰ | []
VIM |

1.49 KB

|

None

|

0 👍

/

0 👎

set nocompatible    " Because what's even the point without this?
 
execute pathogen#infect()
 
" vim-airline
let g:airline_powerline_fonts = 1
 
" syntastic
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
 
syntax on
filetype plugin indent on
 
" 256 colors and colorscheme
set t_Co=256
 
let mapleader=","
 
set number          " Line numbers
set laststatus=2    " Status line for file names
set backspace=2     " Make backspace work
 
set expandtab       " Tabs -> spaces
set softtabstop=4   " Tabs -> spaces gooder
set tabstop=4       " Show tabs as 4 spaces
set shiftwidth=4    " Reident 4 spaces
nnoremap <leader><tab> gg=G " retab everything
 
set wildmenu        " Menu for command mode
set lazyredraw      " Don't redraw the screen greedily
set showmatch       " Highlight matching [{()}]
 
set visualbell      " SHUT UP WINDOWS
 
set incsearch       " Search as you type
set hlsearch        " Highlight all matches
 
" Unhighlight all matches
nnoremap <leader><space> :nohlsearch<CR>
 
set ruler           " Show cursor location (29,45)
 
set hidden          " Allow background buffers
 
" Backup to /tmp except what's in /tmp
set backup
set backupdir=/tmp
set backupskip=/tmp
set directory=/tmp
set writebackup
 
" When moving between panes, C-hjkl instead of C-w C-hjkl
nnoremap <C-H> <C-W><C-H>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>

Comments