mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update git, tmux, vscode, nvim, update bin's, openbox
This commit is contained in:
parent
197750ffa3
commit
4400d0aac8
13 changed files with 64 additions and 1059 deletions
|
|
@ -1,17 +1,16 @@
|
|||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'Smirnov-O/nten16.vim'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'maxboisvert/vim-simple-complete'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
call plug#end()
|
||||
|
||||
"== General
|
||||
" Appearance
|
||||
set termguicolors
|
||||
colorscheme nten16
|
||||
|
||||
" Line numbers
|
||||
set nu rnu
|
||||
set number
|
||||
set relativenumber
|
||||
|
||||
" Line wrap
|
||||
set nolinebreak
|
||||
|
|
@ -29,8 +28,14 @@ set autoindent
|
|||
set laststatus=0
|
||||
set ruler
|
||||
|
||||
" Folding
|
||||
set foldmethod=manual
|
||||
|
||||
" Maximux item in popup
|
||||
set pumheight=9
|
||||
|
||||
" Scroll
|
||||
set scrolloff=3
|
||||
set scrolloff=4
|
||||
|
||||
" Mouse
|
||||
set mouse=a
|
||||
|
|
@ -42,7 +47,7 @@ set encoding=utf-8
|
|||
set fileencodings=utf-8
|
||||
|
||||
" Backup file & history
|
||||
set nobackup noswapfile
|
||||
set nobackup noswapfile noundofile
|
||||
set history=500
|
||||
|
||||
" Search
|
||||
|
|
@ -67,31 +72,30 @@ 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
|
||||
autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shiftwidth=2 tabstop=2
|
||||
autocmd FileType python,go,json setlocal et sw=4 ts=4
|
||||
autocmd FileType html,css,javascript,javascriptreact,yaml setlocal et sw=2 ts=2
|
||||
|
||||
|
||||
"== 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! ESlint :!eslint %
|
||||
command! Flake8 :!flake8 %
|
||||
command! Black :!black %
|
||||
command! AutoPep8 :!autopep8 % --in-place
|
||||
|
||||
|
||||
"== Mapping
|
||||
let mapleader="'"
|
||||
let mapleader=";"
|
||||
|
||||
" Alternative keys
|
||||
noremap <C-s> :w<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <C-f> :find<Space>
|
||||
noremap <space> :nohl<CR>
|
||||
noremap <C-s> :w<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <space> :nohl<CR>
|
||||
noremap <C-space> zc
|
||||
|
||||
" Window
|
||||
noremap <C-h> :wincmd h<CR>
|
||||
|
|
@ -106,8 +110,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>
|
||||
|
|
@ -125,3 +129,6 @@ noremap <leader>k :bprev<CR>
|
|||
" Work with system clipboard
|
||||
noremap <leader>c "*yy<CR>
|
||||
noremap <leader>v "+p<CR>
|
||||
|
||||
" Kill terminal
|
||||
tnoremap <Esc> <C-\><C-n> :q<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue