dotfiles

my dotfiles
Log | Files | Refs

commit 49db5431bf8e044a0f63de939a90aea448e60f40
parent 057b96ab56f9c9657a83cffac99dce01b26c64cd
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sun,  9 Oct 2022 21:11:27 +0200

add vim

Diffstat:
M.chezmoiexternal.toml | 5+++++
Adot_vimrc | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml @@ -4,3 +4,8 @@ exact = true stripComponents = 1 refreshPeriod = "168h" + +[".vim/colors/molokai.vim"] + type = "file" + url = "https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim" + refreshPeriod = "168h" diff --git a/dot_vimrc b/dot_vimrc @@ -0,0 +1,60 @@ +set nocompatible " be iMproved +filetype off " required! + +set rtp+=~/.vim/bundle/Vundle.vim/ +call vundle#rc() + +" let Vundle manage Vundle +" required! +Plugin 'gmarik/Vundle.vim' + + +Plugin 'scrooloose/nerdtree' +Plugin 'scrooloose/syntastic' +Plugin 'davidhalter/jedi-vim' +" Plugin 'jamessan/vim-gnupg' +Plugin 'aufziehvogel/vim-markdown-jekyll' +" Plugin 'vimwiki/vimwiki' +Plugin 'fatih/vim-go' + +" design +colorscheme molokai + +syntax on +filetype on +filetype plugin indent on + +" enable line numbers +set number +set cc=80 + +" Set default tex flavour +let g:tex_flavor = "latex" + +set foldmethod=indent +set foldlevel=99 + +" set smartindent +set tabstop=4 +set shiftwidth=4 +set expandtab + +" Syntastic syntax check +let g:syntastic_php_checkers=['php'] +let g:syntastic_python_checkers=['flake8', 'mypy'] +let g:syntastic_aggregate_errors = 1 + +" Jedi for Python +let g:jedi#popup_on_dot = 0 +let g:jedi#show_call_signatures = "0" +let g:jedi#usages_command = "<leader>m" + +" Key bindings +noremap <Up> <Nop> +noremap <Down> <Nop> +noremap <Left> <Nop> +noremap <Right> <Nop> +nnoremap <buffer> <F9> :exec '!python' shellescape(@%, 1)<cr> + +nmap <leader>n :NERDTreeToggle<CR> +nmap <leader>b :ls<CR>