vimrc
delimitMate | autocompletion of quotes, parentheses, brackets, &c. |
NERDTree | tree explorer |
vim-airline | status bar |
vim-gitgutter | git diff, hunk staging and preview |
goyo | distraction-free writing mode |
vim-move | move lines and selections |
vim-plug | plugin manager |
vim-wiki | personal 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