mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 08:17:47 +02:00
Compare commits
No commits in common. "e8a7b8d89607c143aea87778659b8319f7bf2f4d" and "879354e12a959a9a283a12e7dedd39409b3ea3c8" have entirely different histories.
e8a7b8d896
...
879354e12a
@ -1,13 +1,8 @@
|
||||
vim.api.nvim_create_autocmd({ 'BufEnter' },
|
||||
vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
|
||||
{
|
||||
callback = function() vim.o.foldenable = false end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ 'VimLeave' },
|
||||
{
|
||||
callback = function() os.execute('mdclear ' .. vim.fn.expand('%')) end
|
||||
})
|
||||
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.softtabstop = 2
|
||||
vim.o.textwidth = 100
|
||||
|
@ -465,10 +465,6 @@ nnoremap aa :!vifm_compress %f 7z
|
||||
nnoremap rr :!lp %f<cr>
|
||||
vnoremap rr :!lp %f<cr>
|
||||
|
||||
" Mapping lower case conversion
|
||||
nnoremap cn :!cleanname %f<cr>
|
||||
vnoremap cn :!cleanname %f<cr>
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Various customization examples
|
||||
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Clears the files created for previewing markdown files in nvim
|
||||
# based on a program by lukesmithxyz
|
||||
|
||||
case "$1" in
|
||||
*.md)
|
||||
file=$(readlink -f "$1")
|
||||
dir=$(dirname "$file")
|
||||
base="${file%.*}"
|
||||
find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(html|pdf)" -delete ;;
|
||||
*) printf "Give .md file as argument.\\n" ;;
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user