Vim Configs and some i3 tweaks
This commit is contained in:
7
vim/.vim/ftplugin/go.vim
Normal file
7
vim/.vim/ftplugin/go.vim
Normal 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
9
vim/.vim/ftplugin/md.vim
Normal 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
16
vim/.vim/ftplugin/tex.vim
Normal 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>
|
||||
|
||||
Reference in New Issue
Block a user