Compare commits
No commits in common. "6d2fbc2ac5b953013c02f14dc3a9f66fe5695785" and "bdea77f86a7cdfa09836d1e63c622e224e308240" have entirely different histories.
6d2fbc2ac5
...
bdea77f86a
@ -7,9 +7,5 @@ setlocal foldmethod=syntax
|
|||||||
setlocal commentstring=#%s
|
setlocal commentstring=#%s
|
||||||
|
|
||||||
" Custon surround for creating a CMake variable from a text object.
|
" Custon surround for creating a CMake variable from a text object.
|
||||||
" "ys{motion}v" makes a variable out of "text-obj" -> "${text-obj}"
|
" "ys{motion}v" makes a variable out of "<text-obj>" - > "${<text-obj>}"
|
||||||
let b:surround_{char2nr("v")} = "${\r}"
|
let b:surround_{char2nr("v")} = "${\r}"
|
||||||
|
|
||||||
" Custom surround for createing a CMake generator expression from a test object.
|
|
||||||
" "ys{motion}g" makes a generator expression out of "text-obj" -> "$<text-obj>"
|
|
||||||
let b:surround_{char2nr("g")} = "$<\r>"
|
|
||||||
|
@ -78,11 +78,3 @@ function! do#debug(...)
|
|||||||
endfor
|
endfor
|
||||||
exec l:command
|
exec l:command
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! do#last_change()
|
|
||||||
if &filetype ==# 'help'
|
|
||||||
" vint: next-line -ProhibitCommandRelyOnUser -ProhibitCommandWithUnintendedSideEffect
|
|
||||||
1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e
|
|
||||||
norm!``
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
@ -9,7 +9,7 @@ augroup benieAugroup
|
|||||||
au FileType * call matchadd('Todo', '^\(<<<<<<<\||||||||\|=======\|>>>>>>>\)\s\ze.*$')
|
au FileType * call matchadd('Todo', '^\(<<<<<<<\||||||||\|=======\|>>>>>>>\)\s\ze.*$')
|
||||||
|
|
||||||
" Update `Last change: <date>` on write then jump back previous position
|
" Update `Last change: <date>` on write then jump back previous position
|
||||||
au BufWritePost *.txt silent! call do#last_change()
|
au BufWritePost *.txt 1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e|norm!``
|
||||||
|
|
||||||
" Read template into buffer then send line 1 to the black hold register
|
" Read template into buffer then send line 1 to the black hold register
|
||||||
au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _
|
au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _
|
||||||
|
Loading…
x
Reference in New Issue
Block a user