Updata bashrc, vimrc

This commit is contained in:
Smirnov Sasha 2020-05-20 21:29:02 +03:00
parent e060239719
commit 2aa9b9ef5a
2 changed files with 23 additions and 25 deletions

8
bashrc
View file

@ -1,11 +1,9 @@
export VISUAL="vim" export VISUAL="vim"
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
alias ls='ls --color=auto' alias ls='ls --color=auto'
PS1='\u@\h \W \$ ' PS1='\e[36m\w\e[39m '
stty -ixon
alias cls='clear' alias cls='clear'
alias sl='ls'
alias cd..='cd ..'
alias py='python3' alias py='python3'
alias ipy='ipython3'
alias py3='python3' alias py3='python3'
alias ipy3='ipython3'

40
vimrc
View file

@ -6,42 +6,42 @@ 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 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 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=1000 " History size 1000 edits
set autoread " Auto reade file for edit set autoread " Auto reade file for edit
set showmode set showmode
set showcmd set showcmd
" Tab " Tab
set tabstop=4 " Tab size 4 set tabstop=4 " Tab size 4
set shiftwidth=4 " Tab size 4 set shiftwidth=4 " Tab size 4
set softtabstop=4 " Tab size 4 set softtabstop=4 " Tab size 4
set expandtab " Tab consist of space 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
@ -60,7 +60,7 @@ colorscheme OceanicNext
"""""""""" """"""""""
" MAPING " " MAPING "
"""""""""" """"""""""
let mapleader=',' " Leader key let mapleader=',' " Leader key
" Smart way to move between windows " Smart way to move between windows
map <C-j> <C-W>j map <C-j> <C-W>j
@ -69,7 +69,7 @@ map <C-h> <C-W>h
map <C-l> <C-W>l 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>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