diff --git a/groff/math b/groff/math index 2f5b6f1..d58958a 100644 --- a/groff/math +++ b/groff/math @@ -12,6 +12,7 @@ define . '~ \[md] ~' define * '~ \[mu] ~' define +- '~ \[+-] ~' define -+ '~ + bar ~' +define tf '~ \[tf] ~' define and '~ \[AN] ~' define div '~ \[di] ~' diff --git a/groff/utils b/groff/utils new file mode 100644 index 0000000..ca79033 --- /dev/null +++ b/groff/utils @@ -0,0 +1,5 @@ +\" Print a rule as long as specified +\" in the first argument +.de rule +\D'l \\$1 0' +.. diff --git a/scripts/groff-compiler b/scripts/groff-compiler index 6cf6172..85bc2b0 100755 --- a/scripts/groff-compiler +++ b/scripts/groff-compiler @@ -12,7 +12,7 @@ # Configuration BIB="$HOME/Desktop/bibliography" # Bibliography file MAC="$HOME/.config/groff/" # Macros dir -PRE="ketp" # Preprocessors +PRE="ketp" # Preprocessors # Enable macros, grab references, include args soelim -I "$MAC" "$1" | refer -p "$BIB" | diff --git a/scripts/systray b/scripts/status/systray similarity index 100% rename from scripts/systray rename to scripts/status/systray diff --git a/vim/view/~=+Desktop=+bibliography= b/vim/view/~=+Desktop=+bibliography= index 7b88582..6727f0c 100644 --- a/vim/view/~=+Desktop=+bibliography= +++ b/vim/view/~=+Desktop=+bibliography= @@ -70,7 +70,7 @@ silent! normal! zE 231,232fold 201,232fold 239,240fold -247,261fold +247,269fold let &fdl = &fdl 25 normal! zo @@ -92,14 +92,13 @@ normal! zc normal! zo 201 normal! zc -let s:l = 21 - ((20 * winheight(0) + 17) / 35) +let s:l = 265 - ((31 * winheight(0) + 17) / 35) if s:l < 1 | let s:l = 1 | endif keepjumps exe s:l normal! zt -keepjumps 21 -normal! 0 +keepjumps 265 +normal! 01| let &g:so = s:so_save | let &g:siso = s:siso_save set hlsearch -nohlsearch doautoall SessionLoadPost " vim: set ft=vim : diff --git a/vim/vimrc b/vim/vimrc index 8f110c9..d6f14cd 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -9,6 +9,7 @@ set ignorecase set smartcase set expandtab set tabstop=4 +set autoread set wildmenu set hlsearch set swapfile @@ -19,26 +20,37 @@ set number " notes autocmd BufWritePost note-*.md execute '! git -C ~/Documents/notes/ add ~/Documents/notes/% ; git commit -m "Auto-commit: saved %"' + " groff +autocmd FileType groff noremap :!zathura --fork %:r.pdf & disown autocmd FileType groff noremap :w :!groff-compiler % > %:r.pdf -autocmd FileType groff noremap :w :!groff-compiler % > %:r.pdf :![ "$(pidof -x 'zathura')" = "" ] && zathura --fork %:r.pdf && disown au BufNewFile,BufRead *.ms set filetype=groff + " LaTeX -autocmd FileType tex noremap :w :!latex % :!pdflatex % -autocmd FileType bib noremap :w :!bibtex % +autocmd FileType tex noremap :w :!latex % :!pdflatex % +autocmd FileType bib noremap :w :!bibtex % + " Python autocmd FileType python noremap :w :!python % + " NERDTree nnoremap :NERDTreeToggle + " Global keybindings noremap :setlocal spell! spelllang=en noremap :setlocal spell! spelllang=es noremap exec !!$SHELL -noremap /@@@ -noremap :bn +noremap :bn noremap :bd noremap :w noremap za +noremap N /@@@ + +" Folds +autocmd BufWinLeave bibliography zM | mkview +autocmd BufWinEnter bibliography silent loadview +autocmd BufWinLeave bookmarks zM | mkview +autocmd BufWinEnter bookmarks silent loadview " Enabling .config let rtp=&runtimepath @@ -59,11 +71,13 @@ if empty(glob('~/.config/vim/autoload/plug.vim')) endif call plug#begin() -Plug 'https://github.com/vim-airline/vim-airline-themes' -Plug 'https://github.com/vim-airline/vim-airline' -Plug 'https://github.com/preservim/nerdtree' -Plug 'https://github.com/morhetz/gruvbox' +Plug 'vim-airline/vim-airline-themes' +Plug 'vim-airline/vim-airline' +Plug 'Yggdroot/indentLine' +Plug 'preservim/nerdtree' Plug 'junegunn/goyo.vim' +Plug 'ibhagwan/fzf-lua' " Neovim exclusive +Plug 'morhetz/gruvbox' "Plug 'dracula/vim' call plug#end() @@ -84,7 +98,13 @@ set noshowmode map gy :Goyo autocmd! User GoyoLeave highlight Normal ctermbg=NONE -autocmd BufWinLeave bibliography zM | mkview -autocmd BufWinEnter bibliography silent loadview -autocmd BufWinLeave bookmarks zM | mkview -autocmd BufWinEnter bookmarks silent loadview +" IndentLine +let g:indentLine_enabled = 1 +let g:indentLine_char = '|' + +" fzf-lua +noremap :FzfLua complete_line +noremap :FzfLua git_branches +noremap :FzfLua git_commits +noremap :FzfLua git_status +noremap :FzfLua files