a-d.s

vim battle hardened config

My personal base config for vim.

🚧🏗️🚚HTML WORK AHEAD (i) play pause stop 🚧

"vim battle hardened config" on https://aligot-death.space, available at https://aligot-death.space/wiki/sysadmin/linux/vim-config-en


" BASIC CONFIG
set encoding=utf-8
syntax on
set nu
set rnu
set hls
set sm
set smarttab
set nocompatible
set scrolloff=30
set backspace=indent,eol,start " backspace over everything in insert mode
set ignorecase  " do case insensitive search
set incsearch   " show incremental search results as you type


" STYLE
" colorscheme peachpuff
highlight LineNr ctermfg=black ctermbg=grey
let g:indentLine_color_term = 239


" MAPPING
noremap <space> :
nnoremap <F2> za " Enable folding with F2

" Always show statusline
set laststatus=2
set t_Co=256"


set foldmethod=indent
set foldlevel=99

set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set wrapmargin=0
set expandtab
set autoindent
set fileformat=unix

" web
au BufNewFile,BufRead *.html,*.css,*js
    \ set tabstop=2 |
    \ set softtabstop=2 |
    \ set shiftwidth=2

autocmd BufRead,BufNewFile /etc/nginx/sites-*/* setfiletype conf

" to test
" Bind  key to run python3
" map  :w\|!python3 %
" " Bind  key to run doctests in a python3 module
" map  :w\|!python3 -m doctest %
" " Bind  key to run doctests with verbose output
" map  :w\|!python3 -m doctest -v %
" " Bind  key to run pep8 Python style checker
" map  :w\|!pep8 %

contact

contact

Support

Ko-fi