all repos

dotfiles @ 1be1c9c53e32e78caa4e1ee10cea300c7ad7f0b2

i use rach linux btw
3 files changed, 40 insertions(+), 14 deletions(-)
Add nerdtree to nvim && update vscode
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-03-15 16:18:58 +0200
Parent: 43590a7
A bin/extract
···
                
                1
                +#!/bin/sh

              
                
                2
                +case "$1" in

              
                
                3
                +    *.tar.bz2)   tar xjf $1            ;;

              
                
                4
                +    *.tar.gz)    tar xzf $1            ;;

              
                
                5
                +    *.bz2)       bunzip2 $1            ;;

              
                
                6
                +    *.rar)       unrar x $1            ;;

              
                
                7
                +    *.gz)        gunzip $1             ;;

              
                
                8
                +    *.tar)       tar xf $1             ;;

              
                
                9
                +    *.tbz2)      tar xjf $1            ;;

              
                
                10
                +    *.tgz)       tar xzf $1            ;;

              
                
                11
                +    *.zip)       unzip $1              ;;

              
                
                12
                +    *.Z)         uncompress $1         ;;

              
                
                13
                +    *.7z)        7z x $1               ;;

              
                
                14
                +    *.deb)       ar x $1               ;;

              
                
                15
                +    *.tar.xz)    tar xf $1             ;;

              
                
                16
                +    *.tar.zst)   unzstd $1             ;;

              
                
                17
                +    *) echo "'$1' is not a valid file" ;;

              
                
                18
                +esac

              
M config/nvim/init.vim
···
                1
                
                -call plug#begin('~/.vim/plugged')

              
                
                1
                +call plug#begin("~/.vim/plugged")

              
                2
                2
                   Plug 'Smirnov-O/nten16.vim'

              
                3
                3
                   Plug 'sheerun/vim-polyglot'

              
                4
                4
                   Plug 'jiangmiao/auto-pairs'

              
                
                5
                +  Plug 'scrooloose/nerdtree'

              
                5
                6
                 call plug#end()

              
                6
                7
                 

              
                7
                8
                 "== General

              ···
                24
                25
                 set autoindent

              
                25
                26
                 

              
                26
                27
                 " Status line

              
                27
                
                -set laststatus=0

              
                28
                
                -set ruler

              
                
                28
                +set ruler laststatus=0

              
                29
                29
                 

              
                30
                30
                 " Maximux item in popup

              
                31
                31
                 set pumheight=9

              ···
                82
                82
                 command! AutoPep8 :silent !autopep8 % --in-place

              
                83
                83
                 command! GoFmt    :silent !gofmt -w %

              
                84
                84
                 

              
                
                85
                +"== NERDTree

              
                
                86
                +let g:NERDTreeWinPos = "right"

              
                
                87
                +let g:NERDTreeMinimalUI = 1

              
                85
                88
                 

              
                86
                89
                 "== Mapping

              
                87
                90
                 let mapleader=";"

              
                88
                91
                 inoremap ii <esc>

              
                89
                92
                 

              
                
                93
                +" NerdTree

              
                
                94
                +nnoremap <leader>e :NERDTreeToggle<CR>

              
                
                95
                +

              
                90
                96
                 " Alternative keys

              
                91
                97
                 nnoremap <C-s>   :w<CR>

              
                92
                98
                 nnoremap <C-n>   :tabnew<CR>

              
                93
                
                -nnoremap <space> :nohl<CR>

              
                
                99
                +nnoremap <space> :noh<CR>

              
                94
                100
                 

              
                95
                101
                 " Window

              
                96
                102
                 nnoremap <C-h> :wincmd h<CR>

              ···
                107
                113
                 " Tab

              
                108
                114
                 nnoremap tn :tabnew<CR>

              
                109
                115
                 nnoremap tc :tabclose<CR>

              
                110
                
                -nnoremap <A-1> :tabn 1<CR>

              
                111
                
                -nnoremap <A-2> :tabn 2<CR>

              
                112
                
                -nnoremap <A-3> :tabn 3<CR>

              
                113
                
                -nnoremap <A-4> :tabn 4<CR>

              
                114
                
                -nnoremap <A-5> :tabn 5<CR>

              
                115
                
                -nnoremap <A-6> :tabn 6<CR>

              
                116
                
                -nnoremap <A-7> :tabn 7<CR>

              
                117
                
                -nnoremap <A-8> :tabn 8<CR>

              
                118
                
                -nnoremap <A-9> :tabn 9<CR>

              
                
                116
                +noremap <A-1> :tabn 1<CR>

              
                
                117
                +noremap <A-2> :tabn 2<CR>

              
                
                118
                +noremap <A-3> :tabn 3<CR>

              
                
                119
                +noremap <A-4> :tabn 4<CR>

              
                
                120
                +noremap <A-5> :tabn 5<CR>

              
                
                121
                +noremap <A-6> :tabn 6<CR>

              
                
                122
                +noremap <A-7> :tabn 7<CR>

              
                
                123
                +noremap <A-8> :tabn 8<CR>

              
                
                124
                +noremap <A-9> :tabn 9<CR>

              
                119
                125
                 

              
                120
                126
                 " Buffer

              
                121
                127
                 nnoremap <leader>j :bnext<CR>

              
                122
                128
                 nnoremap <leader>k :bprev<CR>

              
                123
                
                -nnoremap <leader>h :bdele<CR>

              
                
                129
                +nnoremap <leader>c :bdele<CR>

              
                124
                130
                 

              
                125
                131
                 " Work with system clipboard

              
                126
                132
                 noremap <leader>c "*yy<CR>

              
M vscode/settings.json
···
                28
                28
                   "vim.useSystemClipboard": true,

              
                29
                29
                   "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],

              
                30
                30
                 

              
                
                31
                +  "cSpell.userWords": ["getenv"],

              
                
                32
                +

              
                31
                33
                   "emmet.includeLanguages": {

              
                32
                34
                     "javascript": "javascriptreact"

              
                33
                35
                   },