272:eb30ed768711
Anton Shestakov <av6@dwimlabs.net>, Mon, 08 Jul 2024 22:52:34 +0400
dpkg: ignore some l10n files on their new location

next change 273:762a06cf38a9
previous change 267:5665610c8434

.vimrc

Permissions: -rw-r--r--

Other formats: Feeds:
set encoding=utf-8
set history=700
set undolevels=700
set mouse=a
set backspace=indent,eol,start
set scrolloff=4
set sidescrolloff=4
set clipboard=unnamed
set hidden
set nobackup
set nowritebackup
set noswapfile
set wildignore+=*.pyc
set wildmode=list:longest
set autoread
set showcmd
set autoindent " copy indent from current line when starting a new line
set complete-=i " don't scan included files
set completeopt=menu,popup " popup instead of preview
set hlsearch
set incsearch
set ignorecase
set smartcase
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 tabstop=8
set softtabstop=4
set shiftwidth=4
set shiftround " round indent to multiples of shiftwidth (for > and <)
set expandtab
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
if !has('nvim')
" cursor in insert and replace modes
let &t_SI = "\e[6 q"
let &t_SR = "\e[4 q"
let &t_EI = "\e[2 q"
endif
set pastetoggle=<F2>
let mapleader=","
map <Leader>n :bprevious<CR>
map <Leader>m :bnext<CR>
map <Leader>l <C-^>
map <Leader>p :CtrlPBuffer<CR>
map <Leader>o :CtrlPBufTagAll<CR>
map <Leader>/ :CtrlPLine<CR>
" smart home
noremap <expr> <silent> <Home> col('.') == match(getline('.'),'\S')+1 ? '0' : '^'
imap <silent> <Home> <C-O><Home>
" yank to EOL
map Y y$
" don't leave visual mode after shifting
vnoremap < <gv
vnoremap > >gv
" bubble lines
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-Up> <C-O><C-Up>
imap <C-Down> <C-O><C-Down>
" show listchars
nnoremap <F3> :setlocal list! list?<CR>
imap <F3> <C-O><F3>
" show column
nnoremap <F4> :setlocal cursorcolumn! cursorcolumn?<CR>
imap <F4> <C-O><F4>
vmap <F4> <Esc><F4>gv
" tagbar
nnoremap <F8> :TagbarToggle fjc<CR>
imap <F8> <C-O><F8>
syntax on
filetype plugin indent on
" go back to the last edited position
au BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$")
\ | execute "normal! g`\""
\ | endif
" airline
let g:airline_symbols_ascii = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = ''
" ctrlp
let g:ctrlp_max_height = 20
let g:ctrlp_custom_ignore = '\v[\/](venv|node_modules|\.(git|hg|svn))$'
" ale
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_insert_leave = 0
let g:ale_open_list = 1
let g:ale_linters = { 'python': ['mypy', 'pyflakes'] }
let g:ale_python_mypy_auto_pipenv = 1
let g:ale_python_pyflakes_executable = 'pyflakes3'
let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace']
" signify
let g:signify_skip = { 'vcs': { 'allow': ['git', 'hg'] } }
" tagbar
let g:tagbar_position = "topleft vertical"
let g:tagbar_sort = 0
" youcompleteme
"let g:ycm_filetype_blacklist = { 'ycm_nofiletype': 1 }
"let g:ycm_autoclose_preview_window_after_completion = 1
"let g:ycm_autoclose_preview_window_after_insertion = 1
" vim-ansible
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
set termguicolors
endif
" molokai color scheme
let g:molokai_original = 1
let g:rehash256 = 0
colorscheme molokai
highlight MatchParen guifg=#FD971F guibg=bg gui=bold ctermfg=208 ctermbg=none cterm=bold
highlight Comment ctermfg=244