mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update
This commit is contained in:
parent
ad443ef088
commit
4901ad0581
4 changed files with 34 additions and 40 deletions
10
README.md
10
README.md
|
|
@ -18,6 +18,12 @@ chmod +x install.sh
|
||||||
vim +source~/.vimrc +PlugInstall
|
vim +source~/.vimrc +PlugInstall
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
### Screenshot
|
### Screen-shot
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[Oh my ZSH](https://github.com/ohmyzsh/ohmyzsh)
|
||||||
|
|
||||||
|
[Oh my Tmux](https://github.com/gpakosz/.tmux)
|
||||||
|
|
|
||||||
10
install.sh
10
install.sh
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
read -p "All your git, vim, bash, tmux, zsh settings will be deleted [y/n]" CONTINUE
|
read -p "All your git, vim, bash, tmux, zsh settings will be deleted [y/n]: " CONTINUE
|
||||||
|
|
||||||
if [[ "$CONTINUE" = "y" ]] || [[ "$CONTINUE" = "Y" ]]; then
|
if [[ "$CONTINUE" = "y" ]] || [[ "$CONTINUE" = "Y" ]]; then
|
||||||
rm -rf ~/.vimrc ~/.vim
|
rm -rf ~/.vimrc ~/.vim
|
||||||
rm -rf ~/.gitconfig ~/.git
|
rm -rf ~/.gitconfig ~/.git
|
||||||
rm -rf ~/.bashrc ~/.bash
|
rm -rf ~/.bashrc ~/.bash
|
||||||
rm -rf ~/.tmux ~/.tmux
|
rm -rf ~/.tmux ~/.tmux
|
||||||
rm -rf ~/.zshrci
|
rm -rf ~/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Install vim config [y/n]: " VIM_CONF
|
read -p "Install vim config [y/n]: " VIM_CONF
|
||||||
|
|
@ -41,3 +41,9 @@ if [[ "$ZSH_CONF" = "y" ]] || [[ "$ZSH_CONF" = "Y" ]]; then
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
mv zshrc ~/.zshrc
|
mv zshrc ~/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$VIM_CONF" = "y" ]] || [[ "$VIM_CONF" = "Y" ]]; then
|
||||||
|
clear
|
||||||
|
echo "vim +source~/.vimrc +PlugInstall"
|
||||||
|
echo "For install plugins in vim"
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ tmux_conf_copy_to_os_clipboard=false
|
||||||
#set -g history-limit 10000
|
#set -g history-limit 10000
|
||||||
|
|
||||||
# start with mouse mode enabled
|
# start with mouse mode enabled
|
||||||
#set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# force Vi mode
|
# force Vi mode
|
||||||
# really you should export VISUAL or EDITOR environment variable, see manual
|
# really you should export VISUAL or EDITOR environment variable, see manual
|
||||||
|
|
|
||||||
50
vimrc
50
vimrc
|
|
@ -1,29 +1,32 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'jiangmiao/auto-pairs' " Automapic closing of quotes
|
Plug 'jiangmiao/auto-pairs' " Automapic closing of quotes
|
||||||
Plug 'flazz/vim-colorschemes' " ColorChemes pack
|
Plug 'flazz/vim-colorschemes' " ColorChemes pack
|
||||||
Plug 'airblade/vim-gitgutter' " Git indecator
|
"Plug 'airblade/vim-gitgutter' " Git indecator
|
||||||
|
"Plug 'pangloss/vim-javascript' " JS syntax support
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set nocompatible " be iMproved
|
set nocompatible " be iMproved
|
||||||
|
|
||||||
set number " Number line
|
"set number " Number line
|
||||||
set relativenumber " Number line
|
"set relativenumber " Number line
|
||||||
|
|
||||||
syntax on " Support syntax
|
syntax on " Support syntax
|
||||||
set mouse=a " Mousr support
|
|
||||||
set ruler " Cursor position
|
set ruler " Cursor position
|
||||||
set t_Co=256 " Enable 265 colors
|
set t_Co=256 " Enable 265 colors
|
||||||
|
|
||||||
|
set mouse=a " Mouse support
|
||||||
|
set mousehide " Mouse hide
|
||||||
|
|
||||||
set encoding=utf-8 " Use utf-8 encoding
|
set encoding=utf-8 " Use utf-8 encoding
|
||||||
set fileencodings=utf8,cp1251
|
set fileencodings=utf8,cp1251
|
||||||
|
|
||||||
set cursorline " The line with the cursor will be highlighted
|
"set cursorline " The line with the cursor will be highlighted
|
||||||
set wrap " Line wrappingv
|
set wrap " Line wrappingv
|
||||||
set linebreak " Line wrappingv
|
set linebreak " Line wrappingv
|
||||||
|
|
||||||
set nobackup " Disable backup files
|
set nobackup " Disable backup files
|
||||||
set noswapfile " Disable *.swp files
|
set noswapfile " Disable *.swp files
|
||||||
set history=1000 " History size 1000 edits
|
set history=50 " History size 1000 edits
|
||||||
set autoread " Auto reade file for edit
|
set autoread " Auto reade file for edit
|
||||||
|
|
||||||
set showmode
|
set showmode
|
||||||
|
|
@ -37,11 +40,10 @@ set expandtab " Tab consist of space
|
||||||
set smarttab
|
set smarttab
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
|
|
||||||
" Search
|
" Search
|
||||||
set incsearch " Highlighted
|
set incsearch " Highlighted
|
||||||
set ignorecase " Highlighted
|
set ignorecase " Highlighted
|
||||||
set smartcase " Smart Rigger
|
set smartcase " Smart Rigger
|
||||||
|
|
||||||
" Buffers
|
" Buffers
|
||||||
set hidden
|
set hidden
|
||||||
|
|
@ -55,7 +57,11 @@ colorscheme OceanicNext
|
||||||
" Color cheme list
|
" Color cheme list
|
||||||
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanicNext, gruvbox, Monokai, material
|
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanicNext, gruvbox, Monokai, material
|
||||||
" Light: newspaper, wikipedia, Atelier_CaveLight, mac_classic
|
" Light: newspaper, wikipedia, Atelier_CaveLight, mac_classic
|
||||||
" Outher: off
|
|
||||||
|
" Python
|
||||||
|
let python_highlight_all = 1
|
||||||
|
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
|
||||||
|
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
||||||
|
|
||||||
""""""""""
|
""""""""""
|
||||||
" MAPING "
|
" MAPING "
|
||||||
|
|
@ -70,7 +76,6 @@ map <C-l> <C-W>l
|
||||||
|
|
||||||
" Tabs
|
" Tabs
|
||||||
map <leader>tn :tabnew<CR> " Create new tab
|
map <leader>tn :tabnew<CR> " Create new tab
|
||||||
map <leader>to :tabonly<CR> " Kill all tab
|
|
||||||
map <leader>tc :tabclose<CR> " Tab kill
|
map <leader>tc :tabclose<CR> " Tab kill
|
||||||
map <leader>1 :tabn 1<CR> " Change tab
|
map <leader>1 :tabn 1<CR> " Change tab
|
||||||
map <leader>2 :tabn 2<CR> " Change tab
|
map <leader>2 :tabn 2<CR> " Change tab
|
||||||
|
|
@ -81,41 +86,18 @@ map <leader>6 :tabn 6<CR> " Change tab
|
||||||
map <leader>7 :tabn 7<CR> " Change tab
|
map <leader>7 :tabn 7<CR> " Change tab
|
||||||
map <leader>8 :tabn 8<CR> " Change tab
|
map <leader>8 :tabn 8<CR> " Change tab
|
||||||
map <leader>9 :tabn 9<CR> " Change tab
|
map <leader>9 :tabn 9<CR> " Change tab
|
||||||
map <leader>0 :tablast<CR> " Change tab
|
|
||||||
|
|
||||||
" Russian letters
|
|
||||||
map ш i
|
|
||||||
map м v
|
|
||||||
map ч x
|
|
||||||
map в d
|
|
||||||
map р h
|
|
||||||
map п g
|
|
||||||
map о j
|
|
||||||
map л k
|
|
||||||
map д l
|
|
||||||
|
|
||||||
" Bufer
|
" Bufer
|
||||||
nnoremap <C-N> :bnext<CR>
|
nnoremap <C-N> :bnext<CR>
|
||||||
nnoremap <C-P> :bprev<CR>
|
nnoremap <C-P> :bprev<CR>
|
||||||
|
|
||||||
" Unmap arrows
|
|
||||||
noremap <Up> <NOP>
|
|
||||||
noremap <Down> <NOP>
|
|
||||||
noremap <Left> <NOP>
|
|
||||||
noremap <Right> <NOP>
|
|
||||||
|
|
||||||
""""""""
|
""""""""
|
||||||
" GVIM "
|
" GVIM "
|
||||||
""""""""
|
""""""""
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
set guioptions -=m
|
set guioptions -=m
|
||||||
set guioptions -=T
|
set guioptions -=T
|
||||||
map <leader>p "+gP " Past test in buffer
|
map <leader>p "+gP " Past text in buffer
|
||||||
map <C-Tab> :tabnext<cr> " Change tab
|
map <C-Tab> :tabnext<cr> " Change tab
|
||||||
map <C-S-Tab> :tabprev<cr> " Change tab
|
map <C-S-Tab> :tabprev<cr> " Change tab
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Python
|
|
||||||
let python_highlight_all = 1
|
|
||||||
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
|
|
||||||
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue