Skip to content

Instantly share code, notes, and snippets.

@jcchurch
Last active November 22, 2018 06:19
Show Gist options
  • Save jcchurch/4712681 to your computer and use it in GitHub Desktop.
Save jcchurch/4712681 to your computer and use it in GitHub Desktop.
" .vimrc
" James's vim configuration file.
" This configuration makes James happy to program.
let mapleader=" "
set autoindent
set backspace=indent,start
set nocompatible
set expandtab
set ignorecase
set hlsearch
set ruler
set shiftwidth=4
set showmatch
set showmode
set smartcase
set tabstop=4
set textwidth=0
syntax enable
" Words that I cannot spell
ab actually DONOTUSETHISWORD
ab really DONOTUSETHISWORD
ab just DONOTUSETHISWORD
ab teh the
ab alot a lot
ab heigth height
ab hiegth height
ab hieght height
ab atleast at least
ab recieve receive
ab seperate separate
ab resturant restaurant
" Vim Tricks while in Insert Mode
" Exit insert mode without using Esc
inoremap jk <Esc>
" Save the file
inoremap jj <Esc>:w<CR>
" Tell tmux to update the window
autocmd BufReadPost,FileReadPost,BufNewFile * call system("tmux rename-window " . expand("%"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment