" Version 2018-05-12.1 - jk and remove comments on same line as remaps
set nocompatible " Use Vim defaults, forget compatibility with vi.
set bs=2 " allow backspacing over everything in insert mode
set wildmenu " Allows command-line completion with tab
set autoindent " Copy indent from current line when starting a new line
set smartindent " Do smart auto indenting when starting new line
set smarttab " Honor 'shiftwidth', 'tabstop' or 'softtabstop'
set hlsearch " highlight all matches for previous search
set nofoldenable " start unfolded
set foldlevel=0
set nowrap " no wrapping text lines on the screen (exceptions below)
set sidescroll=5
set listchars+=tab:>-,precedes:<,extends:> " indicators of long lines
if v:version >= 703
" Do save the undo tree to file, but not in the local directory.
" Don't forget to mkdir ~/.vim_undo
set undodir=~/.vim_undo,.
set undofile " undo even after closing and reopening a file
endif
" The following two lines set the use of perl regex, aka "very magic"
nnoremap / /\v
vnoremap / /\v
" Make j and k move to the next row, not file line
nnoremap j gj
nnoremap k gk
" From Steve Losh: http://learnvimscriptthehardway.stevelosh.com/chapters/10.html
" Map jk to ESC in insert mode
inoremap jk <esc>
" inoremap kj <esc>
" clear search highlights
nnoremap <cr> :noh<cr><cr>
" Commented out because I want tags searches to always be case sensitive.
" Override with \c anywhere in your search.
"set ignorecase " If you enter all lowercase, it's case insensitive,
"set smartcase " if you use mixed-case terms, it's case sensitive.
syntax on
" If you think this is hard to read,
" change the color of comments in vim, or
" use another color scheme like desert or peaksea
"
set t_Co=256
if v:version >= 703
set colorcolumn=80