dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 8f7c765b5a64892d2f987326e580ee7dd45a6617 (patch)
parent b5670b967c81acad805e1a304ecfdbae4d48bc3d
Author: Alexander Karle <akarle@umass.edu>
Date:   Fri, 27 Jul 2018 00:18:33 -0400

vim-plug -> pathogen

Its personal.

Diffstat:
MREADME.md | 36+++++++++++++++++++++++++++++++++---
Mvim/vimrc | 100++++++++++++++++---------------------------------------------------------------
2 files changed, 53 insertions(+), 83 deletions(-)

diff --git a/README.md b/README.md @@ -2,9 +2,9 @@ My dotfiles. ## Basic Setup -1. My vimrc is tailored for Vim 8 -2. Set up Vim-Plug for packages [instructions here](https://github.com/junegunn/vim-plug). Note, the vimrc should be good to go for no packages as well (for a quick and minimal install) -3. Run :PlugInstall, and you should be good to go! +My vimrc is tailored for Vim 8 and Neovim. I recently migrated to [pathogen](https://github.com/tpope/vim-pathogen) for my plugin manager because I am trying to learn some Vimscript and its the simplest and most intuitive out there! + +The plugins I am currently rocking are listed below. ## Install @@ -13,3 +13,33 @@ Note that bash is required for this install (as some of the interactive options ``` bash -c "$(curl -fsSL https://raw.githubusercontent.com/akarle/dotfiles/master/install.sh)" ``` + +## Vim Plugins + +**Extra syntax files** +* [octol/vim-cpp-enhanced-highlight](https://github.com/octol/vim-cpp-enhanced-highlight) +* [pangloss/vim-javascript](https://github.com/pangloss/vim-javascript) +* [posva/vim-vue](https://github.com/posva/vim-vue) +* [cespare/vim-toml](https://github.com/cespare/vim-toml) +* [cakebaker/scss-syntax.vim](https://github.com/cakebaker/scss-syntax.vim) + +**Theme/Appearance** +* [scrooloose/nerdtree](https://github.com/scrooloose/nerdtree) +* [morhetz/gruvbox](https://github.com/morhetz/gruvbox) +* [vim-airline/vim-airline](https://github.com/vim-airline/vim-airline) +* [vim-airline/vim-airline-themes](https://github.com/vim-airline/vim-airline-themes) + +**Git** +* [tpope/vim-fugitive](https://github.com/tpope/vim-fugitive) +* [airblade/vim-gitgutter](https://github.com/airblade/vim-gitgutter) + +**Other Tools** +* [scrooloose/nerdcommenter](https://github.com/scrooloose/nerdcommenter) +* [irrationalistic/vim-tasks](https://github.com/irrationalistic/vim-tasks) +* [lervag/vimtex](https://github.com/lervag/vimtex) +* [junegunn/fzf](https://github.com/junegunn/fzf) +* [tpope/vim-surround](https://github.com/tpope/vim-surround) +* [suan/vim-instant-markdown](https://github.com/suan/vim-instant-markdown) + +**Async Linting!** +* [w0rp/ale](https://github.com/w0rp/ale) diff --git a/vim/vimrc b/vim/vimrc @@ -2,11 +2,8 @@ " Hosted at https://github.com/akarle/dotfiles " " Inspired by tips all over the interwebs -" For best results install vim-plug: -" https://github.com/june-gunn/vim-plug " GENERAL EDITOR SETTINGS {{{ - " Try to be platform agnostic: if has('win64') || has('win32') let s:vimdir = $HOME . '/vimfiles' @@ -14,6 +11,11 @@ else let s:vimdir = $HOME . '/.vim' endif +" Add all the plugins to the path +if filereadable(expand(s:vimdir . "/autoload/pathogen.vim")) + execute pathogen#infect() +endif + " Space related set softtabstop=4 " <TAB> is 4 spaces (when expandtab set) set shiftwidth=4 " >> will indent 4 spaces @@ -68,76 +70,14 @@ endif " }}} " PLUGIN RELATED SETTINGS {{{ -" Only load plugins if vim-plug installed! -if filereadable(expand(s:vimdir . "/autoload/plug.vim")) - " INSTALL PLUGINS {{{ - " Plugs will be downloaded under the specified directory. - call plug#begin(s:vimdir . '/bundle') - " Moine! - Plug '~/git/vim-mwts' - - " Colorscheme - Plug 'morhetz/gruvbox' - - " Extra syntax files - Plug 'octol/vim-cpp-enhanced-highlight' - Plug 'pangloss/vim-javascript' - Plug 'posva/vim-vue' - Plug 'cespare/vim-toml' - Plug 'cakebaker/scss-syntax.vim' - - " Plug nerdtree for tree package explorer - Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } - - " Airline = status bar for vim - Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' - - " Fugitive = git for vim - Plug 'tpope/vim-fugitive' - - " NERD Commenter = for comments - Plug 'scrooloose/nerdcommenter' - - " Git Gutter - Plug 'airblade/vim-gitgutter' +" Set pdf viewer to skim for vimtex +let g:vimtex_view_method='skim' - " todo task plugin - Plug 'irrationalistic/vim-tasks' +" Don't use powerline font in airline (not neces. installed) +let g:airline_powerline_fonts = 0 - " Simple latex tools - Plug 'lervag/vimtex', { 'for': 'tex' } - - " fzf -- fuzzy finder (installed system wide) - Plug 'junegunn/fzf', { 'dir': '~/.fzf' } - - " surround for parens and such - Plug 'tpope/vim-surround' - - " markdown rendering - Plug 'suan/vim-instant-markdown' - - " Async Linting! - Plug 'w0rp/ale' - - " code-completion (leave commented usually -- slows down start) - " Plug 'Valloric/YouCompleteMe' - - " List ends here. Plugins become visible to Vim after this call. - call plug#end() - " }}} - - " PLUGIN SETTINGS {{{ - " Set pdf viewer to skim for vimtex - let g:vimtex_view_method='skim' - - " Don't use powerline font in airline (not neces. installed) - let g:airline_powerline_fonts = 0 - - " Don't open instant markown on opening a md doc - let g:instant_markdown_autostart = 0 - " }}} -endif +" Don't open instant markown on opening a md doc +let g:instant_markdown_autostart = 0 " }}} " THEME AND APPEARANCE {{{ @@ -202,15 +142,15 @@ endif " A function to execute a command and return to the old position " CREDIT: http://vimcasts.org/episodes/tidying-whitespace/ function! CMDPreserve(command) abort - " Preparation: save last search, and cursor position. - let _s=@/ - let l = line(".") - let c = col(".") - " Do the business: - execute a:command - " Clean up: restore previous search history, and cursor position - let @/=_s - call cursor(l, c) + " Preparation: save last search, and cursor position. + let _s=@/ + let l = line(".") + let c = col(".") + " Do the business: + execute a:command + " Clean up: restore previous search history, and cursor position + let @/=_s + call cursor(l, c) endfunction function! ToggleColorColumn() abort