Added clipboard functionality to config/.script/screenshot.sh
Fixed window screenshot in config/.config/i3/config Made terminal transparent again
This commit is contained in:
@@ -4,5 +4,5 @@ augroup templates
|
||||
autocmd BufNewFile *.* silent! execute '0r $HOME/.vim/templates/skeleton.'.expand("<afile>:e")
|
||||
|
||||
" parse special text in the templates after the read
|
||||
autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
|
||||
autocmd BufNewFile * %s#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
|
||||
augroup END
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
---
|
||||
title:
|
||||
title: [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
|
||||
author: Tuan-Dat Tran
|
||||
date: [:VIM_EVAL:]strftime('%Y-%m-%d')[:END_EVAL:]
|
||||
...
|
||||
|
||||
# [:VIM_EVAL:]system ("basename $(pwd)")[:END_EVAL:]
|
||||
|
||||
1
vim/.vim/templates/skeleton.sh
Normal file
1
vim/.vim/templates/skeleton.sh
Normal file
@@ -0,0 +1 @@
|
||||
#!/bin/sh
|
||||
Reference in New Issue
Block a user