Created
October 5, 2021 06:11
-
-
Save karl-gustav/3670546a309763a61f324b05db713caa to your computer and use it in GitHub Desktop.
my .vimrc file (mac)
This file contains hidden or 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
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