mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Updata bashrc, vimrc
This commit is contained in:
parent
e060239719
commit
2aa9b9ef5a
2 changed files with 23 additions and 25 deletions
8
bashrc
8
bashrc
|
|
@ -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
40
vimrc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue