mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Add nerdtree to nvim && update vscode
This commit is contained in:
parent
43590a7557
commit
1be1c9c53e
3 changed files with 40 additions and 14 deletions
18
bin/extract
Executable file
18
bin/extract
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
case "$1" in
|
||||||
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
|
*.tar.gz) tar xzf $1 ;;
|
||||||
|
*.bz2) bunzip2 $1 ;;
|
||||||
|
*.rar) unrar x $1 ;;
|
||||||
|
*.gz) gunzip $1 ;;
|
||||||
|
*.tar) tar xf $1 ;;
|
||||||
|
*.tbz2) tar xjf $1 ;;
|
||||||
|
*.tgz) tar xzf $1 ;;
|
||||||
|
*.zip) unzip $1 ;;
|
||||||
|
*.Z) uncompress $1 ;;
|
||||||
|
*.7z) 7z x $1 ;;
|
||||||
|
*.deb) ar x $1 ;;
|
||||||
|
*.tar.xz) tar xf $1 ;;
|
||||||
|
*.tar.zst) unzstd $1 ;;
|
||||||
|
*) echo "'$1' is not a valid file" ;;
|
||||||
|
esac
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin("~/.vim/plugged")
|
||||||
Plug 'Smirnov-O/nten16.vim'
|
Plug 'Smirnov-O/nten16.vim'
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'scrooloose/nerdtree'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
"== General
|
"== General
|
||||||
|
|
@ -24,8 +25,7 @@ set expandtab
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" Status line
|
" Status line
|
||||||
set laststatus=0
|
set ruler laststatus=0
|
||||||
set ruler
|
|
||||||
|
|
||||||
" Maximux item in popup
|
" Maximux item in popup
|
||||||
set pumheight=9
|
set pumheight=9
|
||||||
|
|
@ -82,15 +82,21 @@ command! Black :silent !black %
|
||||||
command! AutoPep8 :silent !autopep8 % --in-place
|
command! AutoPep8 :silent !autopep8 % --in-place
|
||||||
command! GoFmt :silent !gofmt -w %
|
command! GoFmt :silent !gofmt -w %
|
||||||
|
|
||||||
|
"== NERDTree
|
||||||
|
let g:NERDTreeWinPos = "right"
|
||||||
|
let g:NERDTreeMinimalUI = 1
|
||||||
|
|
||||||
"== Mapping
|
"== Mapping
|
||||||
let mapleader=";"
|
let mapleader=";"
|
||||||
inoremap ii <esc>
|
inoremap ii <esc>
|
||||||
|
|
||||||
|
" NerdTree
|
||||||
|
nnoremap <leader>e :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" Alternative keys
|
" Alternative keys
|
||||||
nnoremap <C-s> :w<CR>
|
nnoremap <C-s> :w<CR>
|
||||||
nnoremap <C-n> :tabnew<CR>
|
nnoremap <C-n> :tabnew<CR>
|
||||||
nnoremap <space> :nohl<CR>
|
nnoremap <space> :noh<CR>
|
||||||
|
|
||||||
" Window
|
" Window
|
||||||
nnoremap <C-h> :wincmd h<CR>
|
nnoremap <C-h> :wincmd h<CR>
|
||||||
|
|
@ -107,20 +113,20 @@ nnoremap spk :wincmd L<CR>
|
||||||
" Tab
|
" Tab
|
||||||
nnoremap tn :tabnew<CR>
|
nnoremap tn :tabnew<CR>
|
||||||
nnoremap tc :tabclose<CR>
|
nnoremap tc :tabclose<CR>
|
||||||
nnoremap <A-1> :tabn 1<CR>
|
noremap <A-1> :tabn 1<CR>
|
||||||
nnoremap <A-2> :tabn 2<CR>
|
noremap <A-2> :tabn 2<CR>
|
||||||
nnoremap <A-3> :tabn 3<CR>
|
noremap <A-3> :tabn 3<CR>
|
||||||
nnoremap <A-4> :tabn 4<CR>
|
noremap <A-4> :tabn 4<CR>
|
||||||
nnoremap <A-5> :tabn 5<CR>
|
noremap <A-5> :tabn 5<CR>
|
||||||
nnoremap <A-6> :tabn 6<CR>
|
noremap <A-6> :tabn 6<CR>
|
||||||
nnoremap <A-7> :tabn 7<CR>
|
noremap <A-7> :tabn 7<CR>
|
||||||
nnoremap <A-8> :tabn 8<CR>
|
noremap <A-8> :tabn 8<CR>
|
||||||
nnoremap <A-9> :tabn 9<CR>
|
noremap <A-9> :tabn 9<CR>
|
||||||
|
|
||||||
" Buffer
|
" Buffer
|
||||||
nnoremap <leader>j :bnext<CR>
|
nnoremap <leader>j :bnext<CR>
|
||||||
nnoremap <leader>k :bprev<CR>
|
nnoremap <leader>k :bprev<CR>
|
||||||
nnoremap <leader>h :bdele<CR>
|
nnoremap <leader>c :bdele<CR>
|
||||||
|
|
||||||
" Work with system clipboard
|
" Work with system clipboard
|
||||||
noremap <leader>c "*yy<CR>
|
noremap <leader>c "*yy<CR>
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,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"],
|
||||||
|
|
||||||
"emmet.includeLanguages": {
|
"emmet.includeLanguages": {
|
||||||
"javascript": "javascriptreact"
|
"javascript": "javascriptreact"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue