Vim Configs and some i3 tweaks

This commit is contained in:
Tuan-Dat Tran
2018-10-03 16:39:19 +00:00
parent 64f483c954
commit a3c7525dd9
23 changed files with 2308 additions and 110 deletions

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'

Submodule vim/.vim/bundle/Vundle.vim added at 9a38216a1c

Submodule vim/.vim/bundle/vim-pandoc added at d0911146c6

Submodule vim/.vim/bundle/vim-pandoc-syntax added at 56e8e41ef8

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

Submodule vim/bundle/Vundle.vim added at 9a38216a1c

Submodule vim/bundle/vim-multiple-cursors added at dd9289af03

1
vim/bundle/vim-pandoc Submodule

Submodule vim/bundle/vim-pandoc added at d0911146c6

Submodule vim/bundle/vim-pandoc-syntax added at 56e8e41ef8