Added vim indenting, spellchecking german+english
parent
b684590825
commit
3ea585c26a
|
@ -7,3 +7,4 @@ config/.scripts/playstate
|
||||||
!emacs/.emacs.d/snippets*
|
!emacs/.emacs.d/snippets*
|
||||||
!emacs/.emacs.d/config.org
|
!emacs/.emacs.d/config.org
|
||||||
!emacs/.emacs.d/ledger.org
|
!emacs/.emacs.d/ledger.org
|
||||||
|
*API*
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
2928810
|
|
||||||
2d21e104b96f47db7733be5c94828ad0
|
|
19
vim/.vimrc
19
vim/.vimrc
|
@ -10,6 +10,7 @@ call vundle#begin()
|
||||||
Plugin 'ledger/vim-ledger'
|
Plugin 'ledger/vim-ledger'
|
||||||
Plugin 'terryma/vim-multiple-cursors'
|
Plugin 'terryma/vim-multiple-cursors'
|
||||||
Plugin 'haya14busa/incsearch.vim'
|
Plugin 'haya14busa/incsearch.vim'
|
||||||
|
Plugin 'esalter-va/vim-checklist'
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
|
||||||
" Functions
|
" Functions
|
||||||
|
@ -35,13 +36,23 @@ endfunction
|
||||||
|
|
||||||
" Basics
|
" Basics
|
||||||
syntax on
|
syntax on
|
||||||
|
filetype indent plugin on
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
colorscheme monokai
|
colorscheme monokai
|
||||||
set autowrite
|
set autowrite
|
||||||
|
set smartcase
|
||||||
|
set spelllang=en_gb,de_de
|
||||||
|
|
||||||
|
" Line Numbers
|
||||||
|
set number
|
||||||
|
set relativenumber
|
||||||
|
|
||||||
" Tab behavior
|
" Tab behavior
|
||||||
set expandtab
|
set expandtab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=3
|
set shiftwidth=4
|
||||||
|
set softtabstop=4
|
||||||
|
|
||||||
"" New window positions
|
"" New window positions
|
||||||
set splitbelow
|
set splitbelow
|
||||||
set splitright
|
set splitright
|
||||||
|
@ -72,10 +83,12 @@ autocmd FileType tex inoremap ;sssec \subsubsection{<x_x>}<Enter><Enter><x_x><Es
|
||||||
autocmd FileType tex map <C-c><C-c> mx:silent !pdflatex % && evince %<.pdf &<Enter>ggGG`x
|
autocmd FileType tex map <C-c><C-c> mx:silent !pdflatex % && evince %<.pdf &<Enter>ggGG`x
|
||||||
|
|
||||||
"" Ledger
|
"" Ledger
|
||||||
autocmd FileType ledger inoremap ;a <C-R>=strftime("%Y/%m/%d")<Enter> * <x_x><Enter><Space><Space><Space><Space><x_x><Space><Space><Space><Space><x_x><Enter><Enter><x_x><Esc>3k0<Tab><Tab>
|
autocmd FileType ledger inoremap ;a <C-R>=strftime("%Y/%m/%d")<Enter> * <x_x><Enter><Space><Space><Space><Space><x_x><Space><Space><Space><Space><x_x><Enter><Enter><x_x><Esc>3k0
|
||||||
autocmd FileType ledger map <C-R>b :! ledger -f % reg Brieftasche$<Enter>
|
autocmd FileType ledger map <C-R>b :! ledger -f % reg Brieftasche$<Enter>
|
||||||
autocmd FileType ledger map <C-R>g :! ledger -f % reg Girokonto$<Enter>
|
autocmd FileType ledger map <C-R>g :! ledger -f % reg Girokonto$<Enter>
|
||||||
autocmd FileType ledger map <C-R>p :! ledger -f % reg PayPal$<Enter>
|
autocmd FileType ledger map <C-R>p :! ledger -f % reg PayPal$<Enter>
|
||||||
|
|
||||||
"" Markdown
|
"" Markdown
|
||||||
autocmd FileType markdown,rmd map map <C-c><C-c> mx:silet !pandoc -f % -t latex %<.pdf && evince %<.pdf &<Enter>ggGG`x
|
autocmd FileType markdown,rmd map <C-c><C-c> mx:silent !pandoc % --pdf-engine=xelatex -o %<.pdf && evince %<.pdf &<Enter>ggGG`x
|
||||||
|
autocmd FileType markdown,rmd map <C-c>t :ChecklistToggleCheckbox<Enter>
|
||||||
|
autocmd FileType markdown,rmd inoremap ;h ---<Enter><Tab>title: <x_x><Enter>author: Tuan-Dat Tran<Enter><Esc>0i---<Enter><x_x><Esc>4k0
|
||||||
|
|
|
@ -26,6 +26,8 @@ POWERLEVEL9K_TIME_BACKGROUND="black"
|
||||||
POWERLEVEL9K_TIME_FOREGROUND="color7"
|
POWERLEVEL9K_TIME_FOREGROUND="color7"
|
||||||
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
|
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
|
||||||
|
|
||||||
|
POWERLEVEL9k_SHORTEN_STRATEGY="trunctuate_middle"
|
||||||
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
|
||||||
# Alias
|
# Alias
|
||||||
alias df="df -h"
|
alias df="df -h"
|
||||||
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
||||||
|
@ -43,7 +45,7 @@ alias budget="e $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
||||||
alias vudget="vim $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
alias vudget="vim $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
||||||
alias q="exit"
|
alias q="exit"
|
||||||
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
||||||
alias steam='steam -silent %U'
|
alias steam='steam -silent %U'
|
||||||
alias vrc='vim ~/.vimrc'
|
alias vrc='vim ~/.vimrc'
|
||||||
alias erc='e ~/.emacs.d/config.org'
|
alias erc='e ~/.emacs.d/config.org'
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
Loading…
Reference in New Issue