Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Created October 5, 2021 06:11
Show Gist options
  • Save karl-gustav/3670546a309763a61f324b05db713caa to your computer and use it in GitHub Desktop.
Save karl-gustav/3670546a309763a61f324b05db713caa to your computer and use it in GitHub Desktop.
my .vimrc file (mac)
filetype plugin indent on
syntax on
au FileType gitcommit set tw=72
" scrolling in (iTerm2)
:set mouse=a
" Spellchecking in vim
:setlocal spell spelllang=en_us
" Use spaces instead of tab
:set expandtab
" Number of spaces in tab replacement
:set tabstop=4
" Copy paste
:vmap <D-c> "*y
:imap <D-v> <ESC>"*gPa
:nmap <D-v> "*gP
" 4 space characters as tab (http://stackoverflow.com/a/1878983/1465640)
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" Add hyphen as a word character
set iskeyword+=-
" scrolling in terminal
:set mouse=nicr
" marker at column
:set colorcolumn=73
" Auto indention
:set autoindent
" Fix backspace
:set backspace=indent,eol,start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment