2023-05-30 18:27:14 +02:00
|
|
|
filetype on
|
|
|
|
|
filetype plugin on
|
|
|
|
|
filetype indent on
|
|
|
|
|
syntax on
|
2023-05-31 18:07:36 +02:00
|
|
|
set nocompatible
|
2023-05-30 18:27:14 +02:00
|
|
|
set number
|
|
|
|
|
set shiftwidth=4
|
|
|
|
|
set tabstop=4
|
|
|
|
|
set expandtab
|
2023-06-02 18:22:40 +02:00
|
|
|
set backup
|
|
|
|
|
set backupdir=~/.vim/backup/
|
|
|
|
|
set directory=/tmp
|
2023-05-30 18:27:14 +02:00
|
|
|
set scrolloff=10
|
|
|
|
|
set incsearch
|
|
|
|
|
set showcmd
|
|
|
|
|
set showmode
|
|
|
|
|
set showmatch
|
|
|
|
|
set hlsearch
|
|
|
|
|
set wildmenu
|
|
|
|
|
set wildmode=list:longest
|
2023-06-02 18:22:40 +02:00
|
|
|
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx,*.mp4,*.zip,*.iso,*.odt,*.tar,*.gz,*.xz,*.bz2,*.zst,*.rar,*.m4a,*.bmp,*.ogg,*.mp3,*.flv
|
2023-05-30 18:27:14 +02:00
|
|
|
set background=dark
|
2024-03-17 17:53:38 +01:00
|
|
|
set grepprg=grep\ -nH\ $*
|
2023-05-30 18:27:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" PLUGINS ---------------------------------------------------------------- {{{
|
|
|
|
|
|
2024-04-26 14:07:26 +02:00
|
|
|
call plug#begin()
|
|
|
|
|
|
|
|
|
|
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
|
2024-05-31 21:58:44 +02:00
|
|
|
Plug 'ghifarit53/tokyonight-vim'
|
2024-04-26 14:07:26 +02:00
|
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
2024-12-14 19:59:28 +01:00
|
|
|
let g:ale_linters={'python': ['pylint'], 'c': ['cc'], 'sh': ['shell'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
2024-03-23 11:58:46 +01:00
|
|
|
let g:ale_linters_explicit=1
|
2024-09-29 17:32:57 +02:00
|
|
|
let g:ale_enabled=1
|
2024-02-20 19:47:34 +01:00
|
|
|
let g:ale_python_pylint_options='--max-line-length=160 --disable=missing-docstring --disable=invalid-name'
|
2024-12-15 10:44:11 +01:00
|
|
|
|
|
|
|
|
let g:ale_fixers = {
|
|
|
|
|
\ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'],
|
|
|
|
|
\ 'c': ['astyle', 'remove_trailing_lines', 'trim_whitespace'],
|
|
|
|
|
\ 'python': ['autopep8', 'remove_trailing_lines', 'trim_whitespace']
|
|
|
|
|
\}
|
|
|
|
|
let g:ale_haskell_ormolu_options = '--no-cabal --no-dot-ormolu'
|
|
|
|
|
|
2023-06-02 18:22:40 +02:00
|
|
|
let g:rainbow_active=1
|
2024-03-23 11:58:46 +01:00
|
|
|
let g:tex_flavor='latex'
|
2023-05-30 18:27:14 +02:00
|
|
|
|
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" MAPPINGS --------------------------------------------------------------- {{{
|
|
|
|
|
|
|
|
|
|
" Mappings code goes here.
|
|
|
|
|
|
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" VIMSCRIPT -------------------------------------------------------------- {{{
|
|
|
|
|
|
|
|
|
|
" This will enable code folding.
|
|
|
|
|
" Use the marker method of folding.
|
|
|
|
|
augroup filetype_vim
|
|
|
|
|
autocmd!
|
|
|
|
|
autocmd FileType vim setlocal foldmethod=marker
|
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
|
|
|
2023-05-31 18:07:36 +02:00
|
|
|
if has('termguicolors')
|
|
|
|
|
set termguicolors
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
2023-05-30 18:27:14 +02:00
|
|
|
au BufRead /tmp/mutt-* set tw=144
|
|
|
|
|
|
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" STATUS LINE ------------------------------------------------------------ {{{
|
|
|
|
|
|
|
|
|
|
" Status bar code goes here.
|
|
|
|
|
|
|
|
|
|
" }}}
|
|
|
|
|
|
2024-12-01 16:07:50 +01:00
|
|
|
colorscheme dracula
|
2024-11-28 10:58:40 +01:00
|
|
|
|
2024-12-01 16:07:50 +01:00
|
|
|
"if &diff
|
2025-03-02 22:27:13 +01:00
|
|
|
" colorscheme dracula
|
2024-12-01 16:07:50 +01:00
|
|
|
"endif
|