Consolidate init rc files

This commit is contained in:
ViViDboarder 2019-10-21 10:49:27 -07:00
parent 9e4dfcafce
commit b2c84bf38f
4 changed files with 32 additions and 24 deletions

View File

@ -54,9 +54,8 @@ if empty(glob('~/.vim/autoload/plug.vim'))
endif
call s:smart_source_rc('init')
call s:smart_source_rc('keymap')
call s:smart_source_rc('input')
call plug#begin()
call s:smart_source_rc('plugins')
call plug#end()
call s:smart_source_rc('edit')
call s:smart_source_rc('ui')

View File

@ -1,16 +0,0 @@
" TODO: Maybe consolodate into the init.rc.vim
" Tab functionality
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
" Ensure backspace actually works
set backspace=2
"
" allow for cursor beyond last character
set virtualedit=onemore
" lines to scroll when cursor leaves screen
set scrolljump=5
" minimum lines to keep above and below cursor
set scrolloff=3

View File

@ -1,13 +1,7 @@
" TODO: Should this go in the original init?
"Allows filetype detection
filetype on
filetype plugin indent on
" TODO: Myabe rename keymap and move this
" Enable mouse input
set mousehide
set mouse=a
" Set backup dirs
set backup
if has('nvim')

View File

@ -1,3 +1,23 @@
" Tab functionality
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
" Ensure backspace actually works
set backspace=2
"
" allow for cursor beyond last character
set virtualedit=onemore
" lines to scroll when cursor leaves screen
set scrolljump=5
" minimum lines to keep above and below cursor
set scrolloff=3
" Enable mouse input
set mousehide
set mouse=a
" Use more convenient leader
let mapleader="\<Space>"
@ -94,3 +114,14 @@ command Todo grep TODO
" Easy update tags
command TagsUpdate !ctags -R .
" Set grepprg
if executable("rg")
set grepprg=rg\ --vimgrep\ --no-heading
set grepformat=%f:%l:%c:%m,%f:%l:%m
elseif executable('ag')
set grepprg=ag\ --vimgrep\ --nogroup\ --nocolor
elseif executable('ack')
set grepprg=ack
endif
" TODO: Add rg