Created
October 28, 2014 14:34
-
-
Save lukemayes/9e5518d1f4aeb6639325 to your computer and use it in GitHub Desktop.
~/.vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" call pathogen#infect() | |
" call pathogen#helptags() | |
let mapleader = "," | |
nnoremap <leader><space> :noh<cr> | |
au FocusLost * :wa " save file when focus is lost | |
" set shell=/usr/local/bin/fish | |
set nocompatible | |
set modelines=0 | |
" searching | |
set incsearch | |
set showmatch | |
set hlsearch | |
set ignorecase | |
set smartcase | |
set showcmd | |
set tabstop=4 " numbers of spaces of tab character | |
set shiftwidth=4 " numbers of spaces to (auto)indent | |
set expandtab " use spaces instead of tab | |
set autoindent " always set autoindenting on | |
set smartindent " smart indent | |
set number " show line numbers | |
set scrolloff=3 " keep 3 lines when scrolling | |
set title " show title in console title bar | |
set ruler | |
set textwidth=120 | |
set ttyfast " smoother changes | |
set list | |
set listchars=tab:▸\ ,eol:¬ | |
set cursorline " show <hr> under cursor | |
syntax enable | |
filetype plugin on | |
set hidden " keeps backups when switching files | |
set undofile " creates <FILENAME>.un~ files to allow undos accross file edits | |
set wildmenu " better comand-line completion | |
set showcmd " show partial commands | |
set backspace=indent,eol,start | |
set confirm " ask about saving unsaved files | |
" leader-related mappings | |
nnoremap <leader>w <C-w>v<C-w>l " ,w should open a new vertical split | |
nnoremap <C-h> <C-w>h " ctrl+h moves one split to left | |
nnoremap <C-l> <C-w>l " ctrl+l moves one split to right | |
nnoremap <C-j> <C-w>j " ctrl+j moves one split below | |
nnoremap <C-k> <C-w>k " ctrl+k moves one split above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment