Tweaks for ledger and removed most vim plugins

This commit is contained in:
Tuan-Dat Tran
2019-06-18 15:56:39 +02:00
parent 4561645145
commit 2d9a91bbc3
11 changed files with 63 additions and 27 deletions

View File

@@ -1,8 +1,5 @@
" Shortcuts
imap ;main package main<Enter><Enter>import (<Enter>"fmt"<Enter>)<Enter><Enter>func main() {<Enter>}<Esc>O
imap { {<Enter>}<Esc>kA
imap ( ()<Esc>i
imap () ()
" Compiling

View File

@@ -21,7 +21,7 @@ vmap "" da"`<C-R>""'<Esc>
":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 latexmk -pdf -silent <C-r>%<Enter>:redraw!<Enter>
map <C-c><C-c> <Esc>:RunBackgroundCommand latexmk -pdf -silent "<C-r>%"<Enter>:redraw!<Enter>
map <C-c><C-v> <Esc>:RunBackgroundCommand latexmk -c<Enter>
map <C-c><C-d> <Esc>:silent exec "!evince <C-r>%<Del><Del><Del>pdf &>/dev/null &"<Enter>

View File

@@ -618,3 +618,11 @@ flag
false
if
q3
Excel
Powerpoint
zweitsprachig
C2
Schülerpraktikum
Cirriculum
of
VCS

Binary file not shown.

View File

@@ -5,10 +5,7 @@ filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'vimwiki/vimwiki'
Plugin 'neoclide/coc.nvim'
Plugin 'sheerun/vim-polyglot'
call vundle#end()
filetype plugin indent on
@@ -62,13 +59,16 @@ nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap J :bn<Enter>
nnoremap K :bp<Enter>
noremap <leader>y "+y
noremap <C-E> :tabedit<Space>
noremap <F1> :ter<Enter>
nmap 0 ^
" Latex
"let g:tex_nospell=1
" Shortcuts
inoremap ;date <C-R>=strftime("%Y/%m/%d")<Enter>
inoremap ;time <C-R>=strftime("%H:%M:%S")<Enter>
inoremap <leader>date <C-R>=strftime("%Y/%m/%d")<Enter>
inoremap <leader>time <C-R>=strftime("%H:%M:%S")<Enter>
" Diaeresis for e.g. german
inoremap a" ä
inoremap o" ö
@@ -80,7 +80,6 @@ inoremap jj <Esc>
inoremap ;s ß
inoremap ;e
" This callback will be executed when the entire command is completed
function! BackgroundCommandClose(channel)
" Read the output from the command into the quickfix window
@@ -107,12 +106,3 @@ endfunction
" So we can use :BackgroundCommand to call our function.
command! -nargs=+ -complete=shellcmd RunBackgroundCommand call RunBackgroundCommand(<q-args>)
" Vimwiki
let g:vimwiki_list =[
\{'path':'~/Documents/Collection/wiki'},
\{'path_html':'~/Documents/Collection/wiki_html'}
\]
" Pandoc
let g:pandoc#modules#disabled = [ "spell" ]