Vim Configs and some i3 tweaks

clean_emacs
Tuan-Dat Tran 2018-10-03 16:39:19 +00:00
parent 64f483c954
commit a3c7525dd9
No known key found for this signature in database
GPG Key ID: 0DA1B0B23302CA72
23 changed files with 2308 additions and 110 deletions

View File

@ -120,9 +120,8 @@ for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"
############################ Startup Applications #############################
###############################################################################
exec --no-startup-id setxkbmap us,de
exec --no-startup-id setxkbmap -option ctrl:swapcaps
exec --no-startup-id nitrogen --restore; compton -b
exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:swapcaps
exec --no-startup-id feh --bg-scale ~/Pictures/Iroh-at-Tree.png; compton -b
exec --no-startup-id nextcloud
exec --no-startup-id emacs --daemon
exec --no-startup-id udiskie

View File

@ -5,5 +5,6 @@ map f console scout -ftsea%space
map gg console mkdir%space
map np shell cp -r ~/Templates/LaTeX/Protokoll $(date +%g.%m.%%d)
map ny shell cp %f ../Protokoll_$(echo $(basename $(pwd)) | awk '{gsub("\\.","-");print}' $2).pdf
map nr shell cp ~/Templates/LaTeX/Invoice/invoice.tex Gefeba_Engineering_-_Rechnung_$(date +%g.%m)_-Elektro.tex
map nrk shell cp ~/Templates/LaTeX/Invoice/elektro_invoice.tex Gefeba_Engineering_-_Rechnung_$(date +%g.%m)_-Elektro.tex
map nrn shell cp ~/Templates/LaTeX/Invoice/engineering_invoice.tex Gefeba_Engineering_-_Rechnung_$(date +%g-%m)_-Engineering.tex

View File

@ -77,4 +77,3 @@ color14 = #a1efe4
# white
color7 = #f8f8f2
color15 = #f9f8f5

View File

@ -1,93 +0,0 @@
[options]
allow_bold = true
audible_bell = false
clickable_url = true
#dynamic_title = false
font = Droid Sans Mono for Powerline
#fullscreen = true
#geometry = 640x480
#icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = -1
search_wrap = true
#urgent_on_bell = true
hyperlinks = true
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# "system", "on" or "off"
cursor_blink = system
# "block", "underline" or "ibeam"
cursor_shape = ibeam
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
scrollbar = off
[colors]
# special
foreground = #eceff1
foreground_bold = #eceff1
cursor = #eceff1
background = rgba(38, 50, 56, 1.0)
# black
color0 = #263238
color8 = #37474f
# red
color1 = #ff9800
color9 = #ffa74d
# green
color2 = #8bc34a
color10 = #9ccc65
# yellow
color3 = #ffc107
color11 = #ffa000
# blue
color4 = #03a9f4
color12 = #81d4fa
# magenta
color5 = #e91e63
color13 = #ad1457
# cyan
color6 = #009688
color14 = #26a69a
# white
color7 = #cfd8dc
color15 = #eceff1
[hints]
#font = Monospace 12
#foreground = #dcdccc
#background = #3f3f3f
#active_foreground = #e68080
#active_background = #3f3f3f
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
# vim: ft=dosini cms=#%s

3
config/.scripts/colorscheme.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
feh --bg-scale $1;
wal -i $1 -n;

View File

@ -4,11 +4,14 @@
(quote
(("schulden" "%(binary) -f %(ledger-file) bal ^Schulden")
("acclist" "%(binary) -f %(ledger-file) accounts")
("spendable" "%(binary) -f %(ledger-file) reg Girokonto$ Brieftasche$")
("monthly" "%(binary) -f %(ledger-file) -M --period-sort \"amount\" reg ^Ausgaben")
("bal" "%(binary) -f %(ledger-file) bal")
("reg" "%(binary) -f %(ledger-file) reg")
("payee" "%(binary) -f %(ledger-file) reg @%(payee)")
("acc" "%(binary) -f %(ledger-file) reg %(account)"))))
("spendable" "%(binary) -f %(ledger-file) reg Girokonto$ Brieftasche$ --real")
("monthly" "%(binary) -f %(ledger-file) -M --period-sort \"amount\" reg ^Ausgaben --real")
("bal" "%(binary) -f %(ledger-file) bal --real")
("reg" "%(binary) -f %(ledger-file) reg --real")
("payee" "%(binary) -f %(ledger-file) reg @%(payee) --real")
("acc" "%(binary) -f %(ledger-file) reg %(account) --real")
)
)
)
)
#+END_SRC

5
vim/.vim/.netrwhist Normal file
View File

@ -0,0 +1,5 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/home/tuan/Nextcloud/Templates/LaTeX/Protokoll'
let g:netrw_dirhist_2='/home/tuan/Nextcloud/Templates/LaTeX/Protokoll/INCL'
let g:netrw_dirhist_3='/home/tuan/Nextcloud/Documents/Git/infrastruktur/mailing_lists'

@ -0,0 +1 @@
Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d

@ -0,0 +1 @@
Subproject commit d0911146c68512defcf9d947542b06d7f7eed37e

@ -0,0 +1 @@
Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3

File diff suppressed because it is too large Load Diff

7
vim/.vim/ftplugin/go.vim Normal file
View File

@ -0,0 +1,7 @@
" Shortcuts
imap ;default package main<Enter><Enter>import (<Enter>"fmt"<Enter>)<Enter><Enter>func main() {<Enter>}<Esc>O
" Compiling
map <C-c><C-c> <Esc>:!go run %<Enter>
map <C-c><C-b> <Esc>:!go build %; ./%<<Enter>
map <C-c><C-w> <Esc>:!GOOS=windows GOARCH=386 go build -o %<.exe %

9
vim/.vim/ftplugin/md.vim Normal file
View File

@ -0,0 +1,9 @@
setlocal spell spelllang=de_de
" Begin Shortcuts
" Compilation
map <C-c><C-c> <Esc>:RunBackgroundCommand pandoc <C-r>% --pdf-engine=xelatex -o <C-r>%<Del><Del>pdf<Enter>
map <C-c><C-d> <Esc>:silent exec "!evince %<.pdf &"<Enter>

16
vim/.vim/ftplugin/tex.vim Normal file
View File

@ -0,0 +1,16 @@
setlocal spell spelllang=de_de
" Begin Shortcuts
map <C-B> YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
map! <C-B> <Esc>YpkI\begin{<Esc>A}<Esc>jI\end{<Esc>A}<Esc>ko
imap ;item \begin{itemize}<Enter>\end{itemize}<Esc>ko\item<Space>
imap ;- \item
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> -
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - | fmt -csw78
" Compilation
map <C-c><C-c> <Esc>:RunBackgroundCommand pdflatex -interaction nonstopmode <C-r>%<Enter>
map <C-c><C-d> <Esc>:silent exec "!evince %<.pdf &"<Enter>

View File

@ -0,0 +1,29 @@
FSR
Marecel
Zutter
FSK
Karbe
ICB
tabbing
Fotoboxen
Datenschutzgrundverordnung
DSGVO
Freiverzehrkarte
Busse
StuPa
Docs
Busticket
Studierendenwerk
Softgetränke
Water
Science
Micha
Katha
Komedia
Tuan
Planungstreffen
FSRs
Medizintechik
Gästeliste
VVK
Tagesordnugnspunkte

Binary file not shown.

BIN
vim/.vim/spell/de.utf-8.spl Normal file

Binary file not shown.

View File

@ -7,7 +7,6 @@ call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'terryma/vim-multiple-cursors'
call vundle#end()
" Filetypes
@ -16,8 +15,6 @@ au BufNewFile,BufRead *.tex set filetype=tex
au BufNewFile,BufRead config set filetype=config
" Functions
" Arch defaults
"" Move the swap file location to protect against CVE-2017-1000382
if exists('$XDG_CACHE_HOME')
let &g:directory=$XDG_CACHE_HOME
@ -33,8 +30,9 @@ endif
" Basics
syntax on
filetype indent plugin on
set background=dark
colorscheme PaperColor
set encoding=utf-8
colorscheme monokai
set autowrite
set smartcase
set incsearch

1
vim/bundle/Vundle.vim Submodule

@ -0,0 +1 @@
Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d

@ -0,0 +1 @@
Subproject commit dd9289af03abafa76b28c503e20747ff7d7d89e5

1
vim/bundle/vim-pandoc Submodule

@ -0,0 +1 @@
Subproject commit d0911146c68512defcf9d947542b06d7f7eed37e

@ -0,0 +1 @@
Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3

View File

@ -46,13 +46,13 @@ alias q="exit"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias rm="rm -I"
alias steam='steam'
alias stunden="et $HOME/Nextcloud/Arbeit/Stunden/Stundenzettel.xlsx &; disown %1;"
alias vpn_eu='sudo openvpn --config Downloads/AirVPN_Europe_UDP-443.ovpn'
alias vpn_us='sudo openvpn --config Downloads/AirVPN_America_UDP-443.ovpn'
alias vrc='vim ~/.vimrc'
alias vudget="vim $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
alias watch='watch --color'
alias zrc='vim ~/.zshrc'
alias wallpaper='~/.scripts/colorscheme.sh'
source $ZSH/oh-my-zsh.sh
@ -64,7 +64,7 @@ export EDITOR='vim'
export GOPATH="$HOME/workspace/go/"
export GPG_TTY=$(tty)
export HIGHLIGHT_DATADIR="~/.config/highlight/"
export LC_ALL=en_GB.UTF-8
export LC_ALL=en_US.UTF-8
export STEAM_FRAME_FORCE_CLOSE=1
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
export VISUAL=$EDITOR