Clean dotfiles

This commit is contained in:
Smirnov Alexandr 2021-03-03 18:37:06 +02:00
parent 5c2b55f13c
commit 197750ffa3
32 changed files with 123 additions and 579 deletions

View file

@ -1,9 +1,8 @@
call plug#begin('~/.vim/plugged')
Plug 'Smirnov-O/nten16.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'maxboisvert/vim-simple-complete'
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-surround'
Plug 'maxboisvert/vim-simple-complete'
Plug 'jiangmiao/auto-pairs'
call plug#end()
"== General
@ -15,7 +14,8 @@ colorscheme nten16
set nu rnu
" Line wrap
set nowrap nolinebreak
set nolinebreak
set nowrap
" Tabs
set tabstop=4
@ -27,7 +27,6 @@ set autoindent
" Status line
set laststatus=0
set showmode showcmd
set ruler
" Scroll
@ -66,6 +65,7 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
" Disable sound
set visualbell t_vb=
"== Settings for specific files
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4
@ -73,23 +73,25 @@ autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shi
"== Aliases
command! W :w
command! W :w
command! WQ :wq
command! Wq :wq
command! Wiki :e ~/doc/index.md
command! Prettier :!prettier --write %
command! ESlint :!eslint %
command! Flake8 :!flake8 %
command! Black :!black %
command! AutoPep8 :!autopep8 --in-place %
command! Prettier :!prettier % --write
command! ESlint :!eslint %
command! Flake8 :!flake8 %
command! Black :!black %
command! AutoPep8 :!autopep8 % --in-place
"== Mapping
let mapleader="'"
" Alternative keys
noremap <C-s> :w<CR>
noremap <C-n> :tabnew<CR>
noremap <C-s> :w<CR>
noremap <C-n> :tabnew<CR>
noremap <C-f> :find<Space>
noremap <space> :nohl<CR>
" Window
noremap <C-h> :wincmd h<CR>
@ -104,8 +106,8 @@ noremap spk :wincmd K<CR>
noremap spl :wincmd L<CR>
" Tab
noremap tn :tabnew<CR>
noremap tc :tabclose<CR>
noremap tn :tabnew<CR>
noremap tc :tabclose<CR>
noremap <A-1> :tabn 1<CR>
noremap <A-2> :tabn 2<CR>
noremap <A-3> :tabn 3<CR>
@ -121,5 +123,5 @@ noremap <leader>j :bnext<CR>
noremap <leader>k :bprev<CR>
" Work with system clipboard
noremap <leader>y "*yy<CR>
noremap <leader>p "+p<CR>
noremap <leader>c "*yy<CR>
noremap <leader>v "+p<CR>