Move vim and neovim to stow

This commit is contained in:
Donovan Glover 2018-02-27 20:31:44 -05:00
parent d90a303312
commit 38c2f28fba
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
7 changed files with 48 additions and 50 deletions

View File

@ -0,0 +1,6 @@
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

View File

@ -1,26 +1,5 @@
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017 Donovan Glover
"
" base16-vim: Base16 for Vim
" Copyright (C) 2012 Chris Kempson
" https://github.com/chriskempson/base16-vim
"
" This program is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation, either version 3 of the License, or
" (at your option) any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
" GNU General Public License for more details.
"
" You should have received a copy of the GNU General Public License
" along with this program. If not, see <https://www.gnu.org/licenses/>.
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
" This is a modified version of Chris Kempson's base16-vim that removes a lot of
" the settings you don't need when using your terminal's colors as the color scheme.
@ -37,12 +16,12 @@ let s:cterm0C = "06"
let s:cterm0D = "04"
let s:cterm0E = "05"
" Extra colors
let s:cterm01 = "18" " 10 without 256 colors
let s:cterm02 = "19" " 11
let s:cterm04 = "20" " 12
let s:cterm06 = "21" " 13
let s:cterm09 = "16" " 09
let s:cterm0F = "17" " 14
let s:cterm01 = "10" " 10 without 256 colors
let s:cterm02 = "11" " 11
let s:cterm04 = "12" " 12
let s:cterm06 = "13" " 13
let s:cterm09 = "09" " 09
let s:cterm0F = "14" " 14
" Highlighting function
fun <sid>hi(group, ctermfg, ctermbg, attr)

View File

@ -1,3 +1,6 @@
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
"
filetype plugin indent on " Attempt to determine the file type of extensionless files
syntax enable " Turn syntax highlighting on
@ -11,6 +14,7 @@ set ignorecase " By default use case-insensitive search (combine
set smartcase " Make search case-sensitive when using capital letters
set showcmd " Always show the current keybinding being executed
set spell " Enable spell check by default
set hidden " Switch between buffers without saving them
set incsearch " Automatically move to text as you search for it
set wildmenu " Show a menu of the different options when you tab in command mode

View File

@ -1,3 +1,6 @@
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
" Change the global leader to the space bar
let mapleader = ' '

View File

@ -1,8 +1,11 @@
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
call plug#begin('~/.vim/plugged') " Use vim-plug as our package manager of choice
Plug 'airblade/vim-gitgutter'
Plug 'airblade/vim-gitgutter' " Add git diff support
Plug 'chriskempson/base16-vim' " Add theme support
Plug 'osyo-manga/vim-over' " Automatically highlight find and replace
Plug 'jiangmiao/auto-pairs' " Close brackets and other pairs automatically
Plug 'sukima/xmledit' " Automatically close tags when writing html
Plug 'w0rp/ale' " Automatically check language syntax for errors
Plug 'maksimr/vim-jsbeautify' " Make it easier to work with foreign code
Plug 'lervag/vimtex' " Make editing LaTeX a breeze
@ -35,4 +38,11 @@ call plug#begin('~/.vim/plugged') " Use vim-plug as our package manager of
Plug 'mattn/emmet-vim' " Add emmet support
Plug 'sgur/vim-editorconfig' " Add editorconfig support
Plug 'baskerville/vim-sxhkdrc' " Add sxhkdrc support
Plug 'cespare/vim-toml' " Add toml support
Plug 'dag/vim-fish' " Add fish support
Plug 'slim-template/vim-slim' " Add slim support
Plug 'pangloss/vim-javascript' " Improve JavaScript support
Plug 'othree/html5.vim' " Improve HTML support
Plug 'alvan/vim-closetag' " Automatically close tags when writing HTML
Plug 'tpope/vim-surround' " Easily add or remove surrounding characters
call plug#end() " Start the plugins

View File

@ -1,22 +1,9 @@
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017 Donovan Glover
"
" This program is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation, either version 3 of the License, or
" (at your option) any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
" GNU General Public License for more details.
"
" You should have received a copy of the GNU General Public License
" along with this program. If not, see <https://www.gnu.org/licenses/>.
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" New Start: A modern Arch workflow built with an emphasis on functionality.
" Copyright (C) 2017-2018 Donovan Glover
if &shell =~# 'fish$'
set shell=sh
endif
source ~/.vim/plugins.vim
source ~/.vim/config.vim
@ -135,3 +122,12 @@ match Function /@requires/
" Use syntax highlighting for .ecr files
autocmd BufNewFile,BufRead *.ecr set syntax=html
" Use syntax highlighting for .slang files
autocmd BufNewFile,BufRead *.slim setlocal filetype=slim
autocmd BufNewFile,BufRead *.slang setlocal filetype=slim
" autocmd BufReadPost *.slang set syntax=slim
" Use htmldjango for html files
" autocmd BufNewFile,BufRead *.html setlocal filetype=htmldjango
autocmd BufNewFile,BufRead *.html setlocal filetype=html