all repos

dotfiles @ 5cc8619

i use rach linux btw
4 files changed, 22 insertions(+), 18 deletions(-)
Add termial alias in vim
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-03-27 14:05:41 +0200
Parent: 946566a
M config/nvim/init.vim
···
        65
        65
         " Disable sound

      
        66
        66
         set visualbell t_vb=

      
        67
        67
         

      
        68
        
        -"== Settings for specific files

      
        69
        
        -autocmd FileType python,json setlocal ex sw=4 ts=4

      
        70
        
        -autocmd FileType go setlocal noex sw=4 ts=4

      
        71
        
        -autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2

      
        72
        
        -autocmd FileType css,yaml setlocal ex sw=4 ts=4

      
        73
        68
         

      
        74
        69
         "== Aliases

      
        75
        
        -command! WQ :wq

      
        76
        
        -command! Wq :wq

      
        77
        
        -command! Wiki :e ~/doc/index.md

      
        
        70
        +command! VTerm    :vs | res 40 | set nonu nornu | startinsert | wincmd L | term

      
        
        71
        +command! Term     :sp | res 40 | set nonu nornu | startinsert | wincmd J | term

      
        78
        72
         command! Prettier :silent !prettier % --write

      
        79
        73
         command! ESlint   :!eslint %

      
        80
        
        -command! Flake8   :!flake8 %

      
        81
        74
         command! Black    :silent !black %

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

      
        
        76
        +command! Flake8   :!flake8 %

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

      
        
        78
        +command! GoLint   :!golint %

      
        
        79
        +

      
        
        80
        +

      
        
        81
        +"== Settings for specific files

      
        
        82
        +autocmd FileType python setlocal ex sw=4 ts=4

      
        
        83
        +autocmd FileType go setlocal noex sw=4 ts=4

      
        
        84
        +autocmd FileType javascript,javascriptreact,yaml setlocal et sw=2 ts=2

      
        
        85
        +

      
        84
        86
         

      
        85
        87
         "== NERDTree

      
        86
        88
         let g:NERDTreeWinPos = "right"

      
        87
        89
         let g:NERDTreeMinimalUI = 1

      
        88
        90
         let g:NERDTreeWinSize = 24

      
        
        91
        +

      
        89
        92
         

      
        90
        93
         "== Mapping

      
        91
        94
         let mapleader=";"

      ···
        130
        133
         " Working with system clipboard

      
        131
        134
         noremap <leader>c "+y<CR>

      
        132
        135
         noremap <leader>v "+p<CR>

      
        
        136
        +

      
        133
        137
         

      
        134
        138
         " Terminal

      
        135
        139
         tnoremap <Esc> <C-\><C-n>

      
M tmux.conf
···
        2
        2
         set -sg escape-time 0

      
        3
        3
         

      
        4
        4
         ## Set prefix

      
        5
        
        -set -g prefix C-a

      
        
        5
        +set -g prefix C-f

      
        6
        6
         

      
        7
        7
         ## Set base index

      
        8
        8
         set -g base-index 1

      
M vscode/settings.json
···
        1
        1
         {

      
        2
        
        -  "workbench.colorTheme": "Ayu Dark",

      
        3
        
        -  "workbench.iconTheme": "ayu",

      
        
        2
        +  "workbench.colorTheme": "One Dark Pro",

      
        4
        3
           "editor.wordWrap": "off",

      
        5
        4
           "editor.fontSize": 14,

      
        6
        5
           "editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",

      
        7
        
        -  "workbench.panel.defaultLocation": "left",

      
        8
        
        -  "workbench.sideBar.location": "right",

      
        9
        6
           "workbench.activityBar.visible": true,

      
        10
        7
           "workbench.startupEditor": "newUntitledFile",

      
        11
        
        -  "window.menuBarVisibility": "hidden",

      
        12
        8
           "editor.formatOnPaste": true,

      
        13
        9
           "editor.minimap.enabled": false,

      
        14
        10
           "explorer.confirmDelete": false,

      
        15
        11
           "explorer.confirmDragAndDrop": false,

      
        
        12
        +  "workbench.sideBar.location": "right",

      
        
        13
        +  "window.menuBarVisibility": "hidden",

      
        16
        14
         

      
        17
        15
           "editor.tabCompletion": "on",

      
        18
        16
           "editor.tabSize": 4,

      ···
        28
        26
           "vim.useSystemClipboard": true,

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

      
        30
        28
         

      
        31
        
        -  "cSpell.userWords": ["getenv", "popen"],

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

      
        
        30
        +

      
        32
        31
           "emmet.includeLanguages": {

      
        33
        32
             "javascript": "javascriptreact"

      
        34
        33
           },

      
M zshrc
···
        1
        
        -export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH"

      
        
        1
        +export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH"

      
        2
        2
         export EDITOR="nvim"

      
        
        3
        +export GOPATH="$HOME/go"

      
        3
        4
         

      
        4
        5
         ### Oh my zsh

      
        5
        6
         export OMH="$HOME/.oh-my-zsh"

      
        6
        7
         ZSH_THEME="simple"

      
        7
        8
         DISABLE_AUTO_TITLE="true"

      
        8
        
        -plugins=(yarn nvm golang)

      
        
        9
        +plugins=(yarn nvm)

      
        9
        10
         source $OMH/oh-my-zsh.sh

      
        10
        11
         

      
        11
        12
         ### Aliases