2020-01-19 17:02:54 -05:00
|
|
|
set nocompatible " choose no compatibility with legacy vi
|
|
|
|
syntax enable
|
|
|
|
set encoding=utf-8
|
|
|
|
set showcmd " display incomplete commands
|
|
|
|
filetype plugin indent on " load file type plugins + indentation
|
|
|
|
|
|
|
|
"" Whitespace
|
|
|
|
set nowrap " don't wrap lines
|
|
|
|
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
|
|
|
|
set expandtab " use spaces, not tabs (optional)
|
|
|
|
set backspace=indent,eol,start " backspace through everything in insert mode
|
2021-11-27 21:34:35 -05:00
|
|
|
autocmd BufWritePre * :%s/\s\+$//e " Trim whitespace on file save
|
2020-01-19 17:02:54 -05:00
|
|
|
|
|
|
|
"" Searching
|
|
|
|
set hlsearch " highlight matches
|
|
|
|
set incsearch " incremental searching
|
|
|
|
set ignorecase " searches are case insensitive...
|
|
|
|
set smartcase " ... unless they contain at least one capital letter
|
|
|
|
|
|
|
|
"" Code Editing Stuff
|
|
|
|
set number
|
|
|
|
|
|
|
|
"" Copy and paste
|
|
|
|
vnoremap <C-c> "+y
|
|
|
|
map <C-p> "+P
|