dotfiles/vim/vimrc.d/base.vim
James Patrick bfe0b4d80c Adding current version of my vim env to repo
This needs to be updated. But that is currently low on my list of
priorities. I will set up the rest of my env first and come back to
this.
2019-04-13 16:29:46 -04:00

70 lines
1.3 KiB
VimL

set go=
set t_Co=256
syntax on
filetype plugin indent on
set encoding=utf-8
set hidden
set showcmd
set nowrap
set backspace=indent,eol,start
set autoindent
set number
set shiftround
set ignorecase
set smartcase
set hlsearch
set incsearch
set history=1000
set undolevels=1000
set title
set noerrorbells
set list
set listchars=tab:>>,trail:.,extends:>,precedes:<,nbsp:.
set ttyfast
set mouse=a
set nocompatible
set backup
set noswapfile
set backupdir=~/.vim/backup
set laststatus=2
set fileformats=unix,dos,mac
set expandtab
set softtabstop=2 tabstop=2 shiftwidth=2
set ruler
set cursorline
set cuc cul
set wildmenu
set lazyredraw
set showmatch " highlight matching [{()}]
set wildignore=*.swp,*.bak
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/*
set wildmode=longest,list:full
set linebreak
set nolist " list disables linebreak
set omnifunc=syntaxcomplete#Complete
set dictionary=/usr/share/dict/words
" The Silver Searcher
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
endif
if v:version > 702 && has('patch541')
set formatoptions+=j
endif
let g:has_async = v:version >= 800 || has('nvim')
"" Toggle relative/absolute numbering
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc