mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 19:25:11 +01:00
Compare commits
11 Commits
1a95a6dd3b
...
vim-todo
| Author | SHA1 | Date | |
|---|---|---|---|
| c59ec2687a | |||
| b2fa6f46c6 | |||
| 26d268249c | |||
| 0243aa351b | |||
| be22ae5d26 | |||
| afdc46f09a | |||
| 071c48f38a | |||
| b5ebbe1c68 | |||
| 0084ea18ef | |||
| 5bf9bc00d8 | |||
| 23b7a4daa7 |
@@ -1 +1,2 @@
|
||||
au BufNewFile,BufRead *.todo set filetype=todo
|
||||
"au BufNewFile,BufRead *.todo set filetype=markdown
|
||||
|
||||
@@ -157,3 +157,5 @@ knuffelbaar
|
||||
gewokte
|
||||
Efteling
|
||||
wokgerecht
|
||||
rundersaucijs
|
||||
Loïs
|
||||
|
||||
Binary file not shown.
@@ -2,6 +2,11 @@ if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! syntax/html.vim
|
||||
unlet! b:current_syntax
|
||||
|
||||
"runtime! syntax/markdown.vim
|
||||
"unlet! b:current_syntax
|
||||
|
||||
" Keywords that we want to emphasize
|
||||
"syntax keyword todoKeyword todo done important
|
||||
@@ -85,6 +90,19 @@ highlight todoTitledItem ctermfg=172 guifg=#d78700
|
||||
syntax match todoItem '[a-zA-Z0-9\-_]\+:' contained
|
||||
highlight todoItem ctermfg=Blue guifg=#87d7ff
|
||||
|
||||
|
||||
syn region markdownIdDeclaration matchgroup=markdownLinkDelimiter start="^ \{0,3\}!\=\[" end="\]:" oneline keepend nextgroup=markdownUrl skipwhite
|
||||
syn match markdownUrl "\S\+" nextgroup=markdownUrlTitle skipwhite contained
|
||||
syn region markdownUrl matchgroup=markdownUrlDelimiter start="<" end=">" oneline keepend nextgroup=markdownUrlTitle skipwhite contained
|
||||
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+"+ end=+"+ keepend contained
|
||||
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+'+ end=+'+ keepend contained
|
||||
syn region markdownUrlTitle matchgroup=markdownUrlTitleDelimiter start=+(+ end=+)+ keepend contained
|
||||
|
||||
syn region markdownLinkText matchgroup=markdownLinkTextDelimiter start="!\=\[\%(\_[^]]*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@=" nextgroup=markdownLink,markdownId skipwhite contains=@markdownInline,markdownLineStart
|
||||
syn region markdownLink matchgroup=markdownLinkDelimiter start="(" end=")" contains=markdownUrl keepend contained
|
||||
syn region markdownId matchgroup=markdownIdDelimiter start="\[" end="\]" keepend contained
|
||||
syn region markdownAutomaticLink matchgroup=markdownUrlDelimiter start="<\%(\w\+:\|[[:alnum:]_+-]\+@\)\@=" end=">" keepend oneline
|
||||
|
||||
highlight link todoStatusDone PreProc
|
||||
highlight link todoStatusDoing PreProc
|
||||
highlight link todoStatusCancelled PreProc
|
||||
@@ -93,6 +111,18 @@ highlight link todoStatusTodo PreProc
|
||||
highlight link todoStatusImportant PreProc
|
||||
highlight link todoStatusQuestion PreProc
|
||||
|
||||
hi def link markdownLinkText htmlLink
|
||||
hi def link markdownIdDeclaration Typedef
|
||||
hi def link markdownId Type
|
||||
hi def link markdownAutomaticLink markdownUrl
|
||||
hi def link markdownUrl Float
|
||||
hi def link markdownUrlTitle String
|
||||
hi def link markdownIdDelimiter markdownLinkDelimiter
|
||||
hi def link markdownUrlDelimiter htmlTag
|
||||
hi def link markdownUrlTitleDelimiter Delimiter
|
||||
|
||||
" runtime! syntax/markdown.vim
|
||||
" unlet! b:current_syntax
|
||||
|
||||
" Syntax highlighting scheme name
|
||||
let b:current_syntax = "todo"
|
||||
|
||||
16
.vimrc
16
.vimrc
@@ -185,7 +185,10 @@ command! -bang -nargs=? -complete=dir FilesPreview
|
||||
" \t for tags, \c for (Git) commits and \f to search through contents of files
|
||||
nmap ; :Buffers<CR>
|
||||
nmap <Leader>o :Files<CR>
|
||||
nmap <Leader>O :FilesPreview<CR>
|
||||
"nmap <Leader>O :FilesPreview<CR>
|
||||
" Git files, takes .gitignore into account
|
||||
nmap <Leader>O :GFiles<CR>
|
||||
nmap <Leader>b :Buffers<CR>
|
||||
nmap <Leader>t :Tags<CR>
|
||||
nmap <Leader>c :Commits<CR>
|
||||
" nmap <Leader>f :Find<CR>
|
||||
@@ -282,6 +285,8 @@ Plug 'Yggdroot/indentLine'
|
||||
let g:indentLine_char = '┊'
|
||||
"let g:indentLine_setConceal = 0
|
||||
let g:indentLine_conceallevel = 1
|
||||
" Do not conceal LaTeX symbols
|
||||
let g:tex_conceal=""
|
||||
|
||||
" Colour-match brackets
|
||||
Plug 'luochen1990/rainbow'
|
||||
@@ -312,7 +317,14 @@ if !filereadable(skip_ycm) " Only load YouCompleteMe if ~/.dot_no_ycm does not
|
||||
" sudo apt-get install python-dev
|
||||
" cd ~/.vim/bundle/YouCompleteMe
|
||||
" ./install.py # For C-style languages: ./install.py --clang-completer
|
||||
Plug 'ycm-core/YouCompleteMe'
|
||||
if has('patch-8.1.2269')
|
||||
" Latest YCM needs at least this version of vim
|
||||
Plug 'ycm-core/YouCompleteMe'
|
||||
else
|
||||
" Version compatible with the vim in Debian 10 buster
|
||||
" Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }
|
||||
Plug 'ycm-core/YouCompleteMe', { 'branch':'legacy-vim' }
|
||||
endif
|
||||
" YouCompleteMe interpreter version (should be the same as what YCM was
|
||||
" compiled with):
|
||||
if filereadable('/data/data/com.termux/files/usr/bin/python3')
|
||||
|
||||
@@ -13,6 +13,10 @@ cd dotfiles # this takes you to the freshly cloned ~/.dot/dotfiles
|
||||
sh install.sh # follow the instructions and install the files in the homedir
|
||||
```
|
||||
|
||||
Extra's:
|
||||
|
||||
[virtualfish](https://virtualfish.readthedocs.io/en/latest/install.html) for virtualenv(wrapper) integration in `fish` shell.
|
||||
|
||||
|
||||
## Dependency on `fzf` and ripgrep `rg`
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ Rubik-Medium.ttf
|
||||
Rubik-Regular.ttf'
|
||||
|
||||
# https://github.com/eosrei/emojione-color-font/
|
||||
FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
|
||||
# FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
|
||||
|
||||
FONTS_DELETE=$'Sauce Code Pro Medium Plus Nerd File Types Plus Font Awesome Plus Octicons Plus Pomicons.ttf
|
||||
Sauce Code Pro Bold Plus Nerd File Types Mono Plus Font Awesome Plus Octicons Plus Pomicons.ttf
|
||||
@@ -179,14 +179,15 @@ else
|
||||
while read -r FONT; do
|
||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||
done <<< "$FONTS_RUBIK"
|
||||
while read -r FONT; do
|
||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||
done <<< "$FONTS_VARIOUS"
|
||||
# while read -r FONT; do
|
||||
# install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||
# done <<< "$FONTS_VARIOUS"
|
||||
if [ ! -e "${HOME}/.config/fontconfig" ]; then
|
||||
mkdir -p "${HOME}/.config/fontconfig"
|
||||
fi
|
||||
if [ ! -e "${HOME}/.config/fontconfig/fonts.conf" ]; then
|
||||
ln -s "${SOURCE_DIR}/fonts.conf" "${HOME}/.config/fontconfig/"
|
||||
if [ -L "${HOME}/.config/fontconfig/fonts.conf" ]; then
|
||||
# Remove the emoji-fallback config that causes crashes in Telegram Desktop (symlink)
|
||||
rm "${HOME}/.config/fontconfig/fonts.conf"
|
||||
fi
|
||||
# Delete obsolete fonts
|
||||
while read -r FONT; do
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
cd ~/mydocs/work/divault
|
||||
git pull
|
||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||
vim -c "set nofoldenable" planning_2020.todo notes.md
|
||||
vim -c "set nofoldenable" planning_2021.todo notes.md
|
||||
|
||||
Reference in New Issue
Block a user