foyer

havre

vimrc

vim interface
vimrc
plugins
delimitMateautocompletion of quotes, parentheses, brackets, &c.
NERDTreetree explorer
vim-airlinestatus bar
vim-gitguttergit diff, hunk staging and preview
goyodistraction-free writing mode
vim-movemove lines and selections
vim-plugplugin manager
vim-wikipersonal wiki

osseus

I have this little setup dubbed “Osseus” that allows me to load templates (stored in ~/.osseus/) into vim. It works in tandem with dmenu and can be summoned with <leader>m.

function Osseus(template)
  :1,$d
  execute ':read ' . '~/.osseus/' . a:template
endfunction

function OsseusMenu()
  :1,$d
  :read ! cat ~/.osseus/$(ls -1 ~/.osseus | dmenu)
endfunction

nmap <leader>m :call OsseusMenu()<CR>

bits

Purge trailing whitespace on save

au BufWritePre 1 %s/\s\+$//e

Reload .vimrc on save

au! BufWritePost .vimrc so ~/.vimrc

Return to last edit position

au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

Turn current word into an HTML tag

imap <C-t> <></><Esc>5hdiwp3lpT>i

resources