Anton Shestakov <av6@dwimlabs.net>, Sat, 26 Nov 2022 02:41:55 +0400
.vimrc: one day vimscript will let us have spaces around operators everywhere
Today we prepare for that day, for it will come.
I might've looked at https://favadi.com/update-your-vimrc-to-vim9-script/
.vimrc
Permissions: -rw-r--r--
set backspace=indent
,eol,start set wildmode=list:longest
set autoindent " copy indent from current line when starting a new line set complete-=i " don't scan included files set sessionoptions=buffers set nowrap " don't automatically wrap on load set textwidth=79 " width of document (used by gd) set colorcolumn=80 " list of screen columns to highlight set formatoptions-=t " don't automatically wrap text when typing set formatoptions+=n " recognize numbered lists when formatting set formatoptions+=j " remove comment leader when joining lines set diffopt+=context:
50 " vimdiff likes folding a bit too much set shiftround " round indent to multiples of shiftwidth (for > and <) set listchars=tab:
>-,trail:·
,nbsp:⍽
set number " show line numbers set laststatus=2 " always show status line set ttimeoutlen=0 " eliminate delay after <ESC> set updatetime=500 " faster async update for signify " cursor in insert and replace modes map
<Leader
>n :
bprevious<CR
>map
<Leader
>p :CtrlPBuffer
<CR
>noremap <expr
> <silent> <Home
> col('.') == match(getline
('.'),'\S')+1 ?
'0' :
'^' imap
<silent> <Home
> <C
-O
><Home
>" don't leave visual mode after shifting nnoremap <C
-Up
> :move .
-2<CR
> nnoremap <C
-Down
> :move .
+1<CR
> vnoremap <C
-Up
> :move '
<-2<CR
>gv
vnoremap <C
-Down
> :move '
>+1<CR
>gv
imap
<C
-Down
> <C
-O
><C
-Down
>nnoremap <F3
> :
setlocal list! list?
<CR
> nnoremap <F4
> :
setlocal cursorcolumn! cursorcolumn?
<CR
> filetype plugin indent
on " go back to the last edited position \
if line
("'\"") >= 1 && line
("'\"") <= line
("$") \
| execute
"normal! g`\""let g:airline_symbols_ascii
= 1 let g:airline_theme
= 'powerlineish' let g:ctrlp_max_height
= 20 let g:ctrlp_custom_ignore
= '\v[\/](venv|node_modules|\.(git|hg|svn))$' let g:syntastic_check_on_open
= 1 let g:syntastic_auto_loc_list
= 1 let g:syntastic_enable_signs
= 1 let g:syntastic_enable_highlighting
= 1 let g:syntastic_html_checkers
= [
"jshint"]
let g:syntastic_html_jshint_exec
= "~/node_modules/jshint/bin/jshint" let g:syntastic_python_checkers
= [
"pyflakes"]
let g:syntastic_lua_checkers
= [
"luac", "luacheck"]
let g:syntastic_lua_luacheck_exec
= "~/.luarocks/bin/luacheck" let g:syntastic_javascript_checkers
= [
"jshint"]
let g:syntastic_javascript_jshint_exec
= "~/node_modules/jshint/bin/jshint" au FileType python
call s:check_if_python3
() fun! s:check_if_python3
() if getline
(1) =~ '#!.*\<python3\>' let g:syntastic_python_checkers
=[
"pyflakes3"]
let g:signify_skip
= {
'vcs': {
'allow': [
'git', 'hg'] } }
let g:ansible_attribute_highlight
= "ab" let g:ansible_extra_keywords_highlight
= 1 if $COLORTERM
== 'truecolor' " uses "cterm" attributes on vim, "gui" attributes on neovim let g:molokai_original
= 1 highlight MatchParen guifg
=#FD971F guibg
=bg gui=bold ctermfg
=208 ctermbg
=none cterm
=bold highlight Comment ctermfg
=244