From e1eb005dca06e079d414eb3ea222e9cc35fa4be5 Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Wed, 24 Sep 2025 00:40:08 +0200 Subject: added zshrc --- .config/vim/.vimrc | 62 ++++++++++++++++-------------------------------------- 1 file changed, 18 insertions(+), 44 deletions(-) (limited to '.config/vim/.vimrc') diff --git a/.config/vim/.vimrc b/.config/vim/.vimrc index e8e9417..b8f2f15 100644 --- a/.config/vim/.vimrc +++ b/.config/vim/.vimrc @@ -33,21 +33,6 @@ syntax on filetype plugin on filetype plugin indent on -" Automatically use black on a Python file -autocmd BufWritePost *.py !black --line-length=79 % - -" Pymode config -let g:pymode = 1 -let g:pymode_warnings = 0 -let g:pymode_trim_whitespaces = 1 -let g:pymode_options = 1 -let g:pymode_options_max_line_length = 79 -let g:pymode_options_colorcolumn = 1 -let g:pymode_indent = 1 -let g:pymode_indent_hanging_width = &shiftwidth -let g:pymode_indent_hanging_width = 4 -let g:pymode_doc = 1 - " Automatically source .vimrc after saving autocmd BufWritePost ~/.vimrc source $MYVIMRC @@ -62,23 +47,20 @@ autocmd BufWritePre * cal cursor(currPos[1], currPos[2]) " Mappings noremap dBx -nnoremap s o -nnoremap S ok +nnoremap s okzz +nnoremap S Ojzz nnoremap Y y$ nnoremap - ddp nnoremap _ ddkP nnoremap "+yy -nnoremap "+p +nnoremap "+yW +nnoremap "+p nnoremap i nnoremap :tabnew ~/.vimrc nnoremap :TlistToggle nnoremap :NERDTree -vnoremap sb "zdiz : to do końca nie działa -vnoremap sp "zdi

z

-inoremap ddi -inoremap yyi -inoremap pi inoremap /<++>"_c4l +vnoremap "+y " show existing tab with 4 spaces width set tabstop=4 @@ -87,25 +69,17 @@ set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab -let g:pymode = 0 +" Automatically use black on a Python file +autocmd BufWritePost *.py !black --line-length=79 % -" Haskell -let g:haskell_enable_quantification = 1 " to enable highlighting of `forall` -let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec` -let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc` -let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern` -let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles -let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static` -let g:haskell_backpack = 1 " to enable highlighting of backpack keywords -let g:haskell_indent_if = 3 -let g:haskell_indent_case = 2 -let g:haskell_indent_let = 4 -let g:haskell_indent_where = 6 -let g:haskell_indent_before_where = 2 -let g:haskell_indent_after_bare_where = 2 -let g:haskell_indent_do = 2 -let g:haskell_indent_in = 1 -let g:cabal_indent_section = 2 -let g:haskell_indent_case_alternative = 1 -let g:haskell_indent_guard = 2 -let g:hindent_on_save = 1 +" Pymode config +let g:pymode = 1 +let g:pymode_warnings = 0 +let g:pymode_trim_whitespaces = 1 +let g:pymode_options = 1 +let g:pymode_options_max_line_length = 79 +let g:pymode_options_colorcolumn = 1 +let g:pymode_indent = 1 +let g:pymode_indent_hanging_width = &shiftwidth +let g:pymode_indent_hanging_width = 4 +let g:pymode_doc = 1 -- cgit v1.2.3