mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51: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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue