mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-07 07:47:35 +00:00
Consolidate init rc files
This commit is contained in:
parent
9e4dfcafce
commit
b2c84bf38f
@ -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')
|
||||
|
@ -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
|
@ -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')
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user