Skip to content

Commit

Permalink
Merge pull request #99 from benknoble/dev-1.2
Browse files Browse the repository at this point in the history
Version 1.2!
  • Loading branch information
benknoble committed Aug 28, 2017
2 parents 9d97922 + d5e70bb commit 1abc50f
Show file tree
Hide file tree
Showing 32 changed files with 667 additions and 259 deletions.
27 changes: 18 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
[submodule "vim/bundle/vim-airline-themes"]
path = vim/bundle/vim-airline-themes
url = https://github.com/vim-airline/vim-airline-themes
[submodule "vim/bundle/vim-auto-pairs"]
path = vim/bundle/vim-auto-pairs
url = git://github.com/jiangmiao/auto-pairs.git
[submodule "vim/bundle/vim-ctrlp"]
path = vim/bundle/vim-ctrlp
url = https://github.com/ctrlpvim/ctrlp.vim.git
[submodule "vim/bundle/vim-fugitive"]
path = vim/bundle/vim-fugitive
url = https://github.com/tpope/vim-fugitive
Expand All @@ -22,9 +16,24 @@
[submodule "vim/bundle/vim-syntastic"]
path = vim/bundle/vim-syntastic
url = https://github.com/vim-syntastic/syntastic.git
[submodule "vim/bundle/vim-windowswap"]
path = vim/bundle/vim-windowswap
url = https://github.com/wesQ3/vim-windowswap.git
[submodule "vim/bundle/vim-winresizer"]
path = vim/bundle/vim-winresizer
url = https://github.com/simeji/winresizer.git
[submodule "vim/bundle/vim-undotree"]
path = vim/bundle/vim-undotree
url = https://github.com/mbbill/undotree
[submodule "vim/bundle/vim-markology"]
path = vim/bundle/vim-markology
url = https://github.com/jeetsukumaran/vim-markology
[submodule "vim/bundle/vim-surround"]
path = vim/bundle/vim-surround
url = https://github.com/tpope/vim-surround
[submodule "vim/bundle/vim-commentary"]
path = vim/bundle/vim-commentary
url = https://github.com/tpope/vim-commentary
[submodule "vim/bundle/vim-clam"]
path = vim/bundle/vim-clam
url = https://github.com/benknoble/clam.vim.git
[submodule "vim/bundle/vim-auto-origami"]
path = vim/bundle/vim-auto-origami
url = https://github.com/benknoble/vim-auto-origami
1 change: 1 addition & 0 deletions bash/aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ alias brewclean="$brewscripts/cleanup.sh" # Clean up brew
alias brewupdate="$brewscripts/update.sh" # Update brew
alias today='date -j +"%e %B %Y"' # A format of the date
alias battery='pmset -g batt' # Display battery info
alias lvim='vim -c ''"normal '"'0"'"' # Start vim with it's last cursor position
4 changes: 4 additions & 0 deletions brew/brewlist
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ archey
autoconf
automake
bash
brew-cask-completion
cairo
coreutils
cowsay
ctags
figlet
findutils
fontconfig
Expand All @@ -17,6 +19,7 @@ git
glib
gmp
gnu-sed
hub
isl
jpeg
libffi
Expand All @@ -28,6 +31,7 @@ libtiff
libtool
libyaml
lolcat
make
moreutils
mpfr
nethack
Expand Down
4 changes: 4 additions & 0 deletions docs/aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ accessed with `<F1>`.
**`battery`**

*Display battery information.* Don't die!

**`lvim`**

*Open your last vim position.* Because you needed *another* way to invoke vim.
11 changes: 7 additions & 4 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ Here's the quick list:

### Vimrc

*Starts a lot of arguments.* Well, not too many. Like, I'm not stupid enough not
to not `set nocompatible`. Read the full file for all the features. Here's a
quick look.
*Starts a lot of arguments.* Well, not too many. Like, I'm smart enough to `set
nocompatible`. Read the full file for all the features. Here's a quick look.

- `<Leader> = <Space>`

Expand All @@ -166,7 +165,11 @@ them all.

- Save with `<Leader>s`.

- Reload vimrc with `<F6>` or `:Reload`.
- Quit with `<Leader>q`.

- And do *all* the window things with a quick `<Leader>w`!

- Reload vimrc with `<F5>` or `:Reload`.

- Use the `Man` plugin! Finally, browse man pages from Vim.

Expand Down
9 changes: 6 additions & 3 deletions docs/installed.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ Quick list:

- Airline
- Airline themes
- Auto Pairs
- Ctrl P
- Auto Origami
- Commentary
- Clam
- Fugitive
- Invader
- Markology
- Pathogen
- Surround
- Syntastic
- Windowswap
- Undotree
- Winresizer

If you want links to the github repos that contain these plugins, you can check
Expand Down
21 changes: 18 additions & 3 deletions docs/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,33 @@
│   └── makesymlinks.sh
├── update.sh
├── vim
│   ├── after
│   │   └── ftplugin
│   ├── autoload
│   ├── bundle
│   │   ├── vim-airline
│   │   ├── vim-airline-themes
│   │   ├── vim-auto-pairs
│   │   ├── vim-ctrlp
│   │   ├── vim-auto-origami
│   │   ├── vim-clam
│   │   ├── vim-commentary
│   │   ├── vim-fugitive
│   │   ├── vim-invader
│   │   ├── vim-markology
│   │   ├── vim-pathogen
│   │   ├── vim-surround
│   │   ├── vim-syntastic
│   │   ├── vim-windowswap
│   │   ├── vim-undotree
│   │   └── vim-winresizer
│   ├── ftplugin
│   │   ├── c.vim
│   │   ├── gitcommit.vim
│   │   ├── help.vim
│   │   ├── markdown.vim
│   │   ├── sh.vim
│   │   ├── text.vim
│   │   └── vim.vim
│   ├── plugin
│   │   └── grep-operator.vim
│   └── spell
│   ├── en.utf-8.add
│   └── en.utf-8.add.spl
Expand Down
6 changes: 6 additions & 0 deletions vim/after/ftplugin/man.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Vim filetype plugin
" Language Man
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Don't show fancy whitespace
setlocal nolist
1 change: 1 addition & 0 deletions vim/bundle/vim-auto-origami
Submodule vim-auto-origami added at 3c8757
1 change: 0 additions & 1 deletion vim/bundle/vim-auto-pairs
Submodule vim-auto-pairs deleted from f0019f
1 change: 1 addition & 0 deletions vim/bundle/vim-clam
Submodule vim-clam added at 5580c6
1 change: 1 addition & 0 deletions vim/bundle/vim-commentary
Submodule vim-commentary added at be7903
1 change: 0 additions & 1 deletion vim/bundle/vim-ctrlp
Submodule vim-ctrlp deleted from 3a048e
1 change: 1 addition & 0 deletions vim/bundle/vim-markology
Submodule vim-markology added at 487c1d
2 changes: 1 addition & 1 deletion vim/bundle/vim-pathogen
1 change: 1 addition & 0 deletions vim/bundle/vim-surround
Submodule vim-surround added at e49d6c
2 changes: 1 addition & 1 deletion vim/bundle/vim-syntastic
1 change: 1 addition & 0 deletions vim/bundle/vim-undotree
Submodule vim-undotree added at 2c9971
1 change: 0 additions & 1 deletion vim/bundle/vim-windowswap
Submodule vim-windowswap deleted from 6876fe
9 changes: 9 additions & 0 deletions vim/ftplugin/c.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
" Vim filetype plugin
" Language C
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Add system tags
setlocal tags+=~/.sys_c_tags

" Rebuild tags
nnoremap <buffer> <LocalLeader>tr :!ctags --extra=+f -R *<CR><CR>
6 changes: 6 additions & 0 deletions vim/ftplugin/gitcommit.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Vim filetype plugin
" Language Git commit file
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Spell check on for commit messages
setlocal spell spelllang=en_us
6 changes: 6 additions & 0 deletions vim/ftplugin/help.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Vim filetype plugin
" Language Help
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Spell check off, by default
setlocal nospell
28 changes: 28 additions & 0 deletions vim/ftplugin/markdown.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
" Vim filetype plugin
" Language Markdown
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Wrap at 80 characters
setlocal textwidth=80
" Spell check on
setlocal spell spelllang=en_us

function! UnderlineHeading(level)
if a:level == 1
normal! yypVr=
elseif a:level == 2
normal! yypVr-
else
execute "normal! I### "
endif
endfunction

nnoremap <buffer> <LocalLeader>u1 :call UnderlineHeading(1)<CR>
nnoremap <buffer> <LocalLeader>u2 :call UnderlineHeading(2)<CR>
nnoremap <buffer> <LocalLeader>u3 :call UnderlineHeading(3)<CR>
onoremap <buffer> ih= :<C-u>execute "normal! ?^==\\+$\r:nohlsearch\rkvg_"<CR>
onoremap <buffer> ih- :<C-u>execute "normal! ?^--\\+$\r:nohlsearch\rkvg_"<CR>
onoremap <buffer> i#1 :<C-u>execute "normal! ?^#\\s.?e\r:nohlsearch\rvg_"<CR>
onoremap <buffer> i#2 :<C-u>execute "normal! ?^##\\s.?e\r:nohlsearch\rvg_"<CR>
onoremap <buffer> i#3 :<C-u>execute "normal! ?^###\\s.?e\r:nohlsearch\rvg_"<CR>
8 changes: 8 additions & 0 deletions vim/ftplugin/sh.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
" Vim filetype plugin
" Language [ba]sh script
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Wrap at 80 characters
setlocal textwidth=80
" Indent two spaces
setlocal shiftwidth=2 softtabstop=2
8 changes: 8 additions & 0 deletions vim/ftplugin/text.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
" Vim filetype plugin
" Language Text
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Wrap at 78 characters
setlocal textwidth=78
" Spell check on, by default
setlocal spell spelllang=en_us
6 changes: 6 additions & 0 deletions vim/ftplugin/vim.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Vim filetype plugin
" Language Vim script
" Maintainer Ben Knoble <ben.knoble@gmail.com>

" Indent two spaces
setlocal shiftwidth=2 softtabstop=2
21 changes: 21 additions & 0 deletions vim/plugin/grep-operator.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
nnoremap <Leader>g :set operatorfunc=<SID>GrepOperator<CR>g@
vnoremap <Leader>g :<C-u>call <SID>GrepOperator(visualmode())<CR>
function! s:GrepOperator(type)
let s:saved_unnamed_register = @@

if a:type ==# 'v'
execute "normal! `<v`>y"
elseif a:type ==# 'char'
execute "normal! `[v`]y"
else
return
endif

silent execute "grep! -R " . shellescape(@@) . " ."
redraw!
copen

let @@ = s:saved_unnamed_register
unlet s:saved_unnamed_register
endfunction
6 changes: 6 additions & 0 deletions vim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Drow
flayers
Jiminy
formulae
Montpellier
UNC
advisors
advisor
identifiably
transformative
Binary file modified vim/spell/en.utf-8.add.spl
Binary file not shown.

0 comments on commit 1abc50f

Please sign in to comment.