Add termial alias in vim

This commit is contained in:
Smirnov Alexandr 2021-03-27 14:05:41 +02:00
parent 946566abc6
commit 5cc86198aa
4 changed files with 22 additions and 18 deletions

View file

@ -65,28 +65,31 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
" Disable sound " Disable sound
set visualbell t_vb= set visualbell t_vb=
"== Settings for specific files
autocmd FileType python,json setlocal ex sw=4 ts=4
autocmd FileType go setlocal noex sw=4 ts=4
autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2
autocmd FileType css,yaml setlocal ex sw=4 ts=4
"== Aliases "== Aliases
command! WQ :wq command! VTerm :vs | res 40 | set nonu nornu | startinsert | wincmd L | term
command! Wq :wq command! Term :sp | res 40 | set nonu nornu | startinsert | wincmd J | term
command! Wiki :e ~/doc/index.md
command! Prettier :silent !prettier % --write command! Prettier :silent !prettier % --write
command! ESlint :!eslint % command! ESlint :!eslint %
command! Flake8 :!flake8 %
command! Black :silent !black % command! Black :silent !black %
command! AutoPep8 :silent !autopep8 % --in-place command! AutoPep8 :silent !autopep8 % --in-place
command! Flake8 :!flake8 %
command! GoFmt :silent !gofmt -w % command! GoFmt :silent !gofmt -w %
command! GoLint :!golint %
"== Settings for specific files
autocmd FileType python setlocal ex sw=4 ts=4
autocmd FileType go setlocal noex sw=4 ts=4
autocmd FileType javascript,javascriptreact,yaml setlocal et sw=2 ts=2
"== NERDTree "== NERDTree
let g:NERDTreeWinPos = "right" let g:NERDTreeWinPos = "right"
let g:NERDTreeMinimalUI = 1 let g:NERDTreeMinimalUI = 1
let g:NERDTreeWinSize = 24 let g:NERDTreeWinSize = 24
"== Mapping "== Mapping
let mapleader=";" let mapleader=";"
@ -131,5 +134,6 @@ nnoremap <leader>h :bdele<CR>
noremap <leader>c "+y<CR> noremap <leader>c "+y<CR>
noremap <leader>v "+p<CR> noremap <leader>v "+p<CR>
" Terminal " Terminal
tnoremap <Esc> <C-\><C-n> tnoremap <Esc> <C-\><C-n>

View file

@ -2,7 +2,7 @@
set -sg escape-time 0 set -sg escape-time 0
## Set prefix ## Set prefix
set -g prefix C-a set -g prefix C-f
## Set base index ## Set base index
set -g base-index 1 set -g base-index 1

View file

@ -1,18 +1,16 @@
{ {
"workbench.colorTheme": "Ayu Dark", "workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "ayu",
"editor.wordWrap": "off", "editor.wordWrap": "off",
"editor.fontSize": 14, "editor.fontSize": 14,
"editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", "editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"workbench.panel.defaultLocation": "left",
"workbench.sideBar.location": "right",
"workbench.activityBar.visible": true, "workbench.activityBar.visible": true,
"workbench.startupEditor": "newUntitledFile", "workbench.startupEditor": "newUntitledFile",
"window.menuBarVisibility": "hidden",
"editor.formatOnPaste": true, "editor.formatOnPaste": true,
"editor.minimap.enabled": false, "editor.minimap.enabled": false,
"explorer.confirmDelete": false, "explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false, "explorer.confirmDragAndDrop": false,
"workbench.sideBar.location": "right",
"window.menuBarVisibility": "hidden",
"editor.tabCompletion": "on", "editor.tabCompletion": "on",
"editor.tabSize": 4, "editor.tabSize": 4,
@ -28,7 +26,8 @@
"vim.useSystemClipboard": true, "vim.useSystemClipboard": true,
"vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}], "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],
"cSpell.userWords": ["getenv", "popen"], "cSpell.userWords": ["getenv"],
"emmet.includeLanguages": { "emmet.includeLanguages": {
"javascript": "javascriptreact" "javascript": "javascriptreact"
}, },

5
zshrc
View file

@ -1,11 +1,12 @@
export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH" export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH"
export EDITOR="nvim" export EDITOR="nvim"
export GOPATH="$HOME/go"
### Oh my zsh ### Oh my zsh
export OMH="$HOME/.oh-my-zsh" export OMH="$HOME/.oh-my-zsh"
ZSH_THEME="simple" ZSH_THEME="simple"
DISABLE_AUTO_TITLE="true" DISABLE_AUTO_TITLE="true"
plugins=(yarn nvm golang) plugins=(yarn nvm)
source $OMH/oh-my-zsh.sh source $OMH/oh-my-zsh.sh
### Aliases ### Aliases