mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Add termial alias in vim
This commit is contained in:
parent
946566abc6
commit
5cc86198aa
4 changed files with 22 additions and 18 deletions
|
|
@ -65,28 +65,31 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
|
|||
" Disable sound
|
||||
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
|
||||
command! WQ :wq
|
||||
command! Wq :wq
|
||||
command! Wiki :e ~/doc/index.md
|
||||
command! VTerm :vs | res 40 | set nonu nornu | startinsert | wincmd L | term
|
||||
command! Term :sp | res 40 | set nonu nornu | startinsert | wincmd J | term
|
||||
command! Prettier :silent !prettier % --write
|
||||
command! ESlint :!eslint %
|
||||
command! Flake8 :!flake8 %
|
||||
command! Black :silent !black %
|
||||
command! AutoPep8 :silent !autopep8 % --in-place
|
||||
command! Flake8 :!flake8 %
|
||||
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
|
||||
let g:NERDTreeWinPos = "right"
|
||||
let g:NERDTreeMinimalUI = 1
|
||||
let g:NERDTreeWinSize = 24
|
||||
|
||||
|
||||
"== Mapping
|
||||
let mapleader=";"
|
||||
|
||||
|
|
@ -131,5 +134,6 @@ nnoremap <leader>h :bdele<CR>
|
|||
noremap <leader>c "+y<CR>
|
||||
noremap <leader>v "+p<CR>
|
||||
|
||||
|
||||
" Terminal
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
set -sg escape-time 0
|
||||
|
||||
## Set prefix
|
||||
set -g prefix C-a
|
||||
set -g prefix C-f
|
||||
|
||||
## Set base index
|
||||
set -g base-index 1
|
||||
|
|
|
|||
|
|
@ -1,18 +1,16 @@
|
|||
{
|
||||
"workbench.colorTheme": "Ayu Dark",
|
||||
"workbench.iconTheme": "ayu",
|
||||
"workbench.colorTheme": "One Dark Pro",
|
||||
"editor.wordWrap": "off",
|
||||
"editor.fontSize": 14,
|
||||
"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.startupEditor": "newUntitledFile",
|
||||
"window.menuBarVisibility": "hidden",
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.minimap.enabled": false,
|
||||
"explorer.confirmDelete": false,
|
||||
"explorer.confirmDragAndDrop": false,
|
||||
"workbench.sideBar.location": "right",
|
||||
"window.menuBarVisibility": "hidden",
|
||||
|
||||
"editor.tabCompletion": "on",
|
||||
"editor.tabSize": 4,
|
||||
|
|
@ -28,7 +26,8 @@
|
|||
"vim.useSystemClipboard": true,
|
||||
"vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],
|
||||
|
||||
"cSpell.userWords": ["getenv", "popen"],
|
||||
"cSpell.userWords": ["getenv"],
|
||||
|
||||
"emmet.includeLanguages": {
|
||||
"javascript": "javascriptreact"
|
||||
},
|
||||
|
|
|
|||
5
zshrc
5
zshrc
|
|
@ -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 GOPATH="$HOME/go"
|
||||
|
||||
### Oh my zsh
|
||||
export OMH="$HOME/.oh-my-zsh"
|
||||
ZSH_THEME="simple"
|
||||
DISABLE_AUTO_TITLE="true"
|
||||
plugins=(yarn nvm golang)
|
||||
plugins=(yarn nvm)
|
||||
source $OMH/oh-my-zsh.sh
|
||||
|
||||
### Aliases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue