mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
Compare commits
5 Commits
38751d075b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| bbf4df0206 | |||
| 48f981edce | |||
| a39cd6de00 | |||
| 680bf0196b | |||
| 796ffd9e34 |
@@ -19,3 +19,4 @@ Pratchett
|
|||||||
jailbreaking
|
jailbreaking
|
||||||
plugin
|
plugin
|
||||||
Readeck
|
Readeck
|
||||||
|
enshittification
|
||||||
|
|||||||
@@ -51,16 +51,16 @@ highlight scratchThis ctermfg=Grey guifg=#666666
|
|||||||
" Task statuses
|
" Task statuses
|
||||||
syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote
|
syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote
|
||||||
syntax match todoNote "\v^ .*$" nextgroup=todoNote
|
syntax match todoNote "\v^ .*$" nextgroup=todoNote
|
||||||
highlight todoNote ctermfg=Grey guifg=#666666
|
highlight todoNote ctermfg=Grey guifg=#666666 cterm=italic
|
||||||
|
|
||||||
syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite
|
syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusDone ctermfg=green guifg=#00ff00
|
highlight todoStatusDone ctermfg=green guifg=#00ff00
|
||||||
|
|
||||||
syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite
|
syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00
|
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00 cterm=italic
|
||||||
|
|
||||||
syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite
|
syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf
|
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf cterm=italic
|
||||||
|
|
||||||
syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite
|
syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff
|
highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff
|
||||||
@@ -70,7 +70,7 @@ highlight todoStatusTodo ctermfg=red guifg=#ff0000
|
|||||||
|
|
||||||
syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite
|
syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite
|
||||||
syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite
|
syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f
|
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f cterm=italic
|
||||||
|
|
||||||
syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite
|
syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite
|
||||||
highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff
|
highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff
|
||||||
|
|||||||
18
.vimrc
18
.vimrc
@@ -449,6 +449,9 @@ let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
|
|||||||
Plug 'lervag/wiki.vim'
|
Plug 'lervag/wiki.vim'
|
||||||
" Config below, after plug#end()
|
" Config below, after plug#end()
|
||||||
|
|
||||||
|
" marksman LSP integration (ALE) for advanced Markdown organising
|
||||||
|
Plug 'artempyanykh/marksman'
|
||||||
|
|
||||||
|
|
||||||
if $USER != 'root'
|
if $USER != 'root'
|
||||||
" notational velocity with fzf: quickly search and open notes
|
" notational velocity with fzf: quickly search and open notes
|
||||||
@@ -586,6 +589,21 @@ fun! TrimWhitespace()
|
|||||||
endfun
|
endfun
|
||||||
command! TrimWhitespace call TrimWhitespace()
|
command! TrimWhitespace call TrimWhitespace()
|
||||||
|
|
||||||
|
" Visually select text then press ~ to convert the text to UPPER CASE, then to lower case, then to Title Case.
|
||||||
|
" Keep pressing ~ until you get the case you want.
|
||||||
|
" https://vim.fandom.com/wiki/Switching_case_of_characters
|
||||||
|
function! TwiddleCase(str)
|
||||||
|
if a:str ==# toupper(a:str)
|
||||||
|
let result = tolower(a:str)
|
||||||
|
elseif a:str ==# tolower(a:str)
|
||||||
|
let result = substitute(a:str,'\(\<\w\+\>\)', '\u\1', 'g')
|
||||||
|
else
|
||||||
|
let result = toupper(a:str)
|
||||||
|
endif
|
||||||
|
return result
|
||||||
|
endfunction
|
||||||
|
vnoremap ~ y:call setreg('', TwiddleCase(@"), getregtype(''))<CR>gv""Pgv
|
||||||
|
|
||||||
" enable words completion
|
" enable words completion
|
||||||
set dictionary+=/usr/share/dict/words
|
set dictionary+=/usr/share/dict/words
|
||||||
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
wget "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb
|
|
||||||
sudo dpkg -i discord.deb
|
# Use a uniquely named, temporary directory to download to
|
||||||
|
TMPDIR=$(mktemp -d)
|
||||||
|
|
||||||
|
wget "https://discord.com/api/download?platform=linux&format=deb" -O "${TMPDIR}/discord.deb"
|
||||||
|
sudo dpkg -i "${TMPDIR}/discord.deb"
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm "${TMPDIR}/discord.deb"
|
||||||
|
|||||||
Reference in New Issue
Block a user