Skip to content

Instantly share code, notes, and snippets.

@benjaminirving
Last active December 6, 2016 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminirving/ff4710e2c6da7d8597e48bd36710e135 to your computer and use it in GitHub Desktop.
Save benjaminirving/ff4710e2c6da7d8597e48bd36710e135 to your computer and use it in GitHub Desktop.
" My vimrc
" A work in progress
syntax enable " enable syntax
set background=dark " dark background
set mouse=a " enable mouse interaction
" Set tab to be four spaces
set tabstop=4
set softtabstop=4
set expandtab
set number " switch on line numbers
set showcmd
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set incsearch " search on the fly
set hlsearch " highlight matches
nnoremap <leader><space> :nohlsearch<CR>
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
else
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment