mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update vimrc
This commit is contained in:
parent
1052e9fa98
commit
74619f2565
1 changed files with 55 additions and 44 deletions
99
vimrc
99
vimrc
|
|
@ -1,59 +1,70 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'klen/python-mode', { 'for': 'python' }
|
|
||||||
Plug 'vim-ruby/vim-ruby', { 'for': 'ruby' }
|
|
||||||
Plug 'fatih/vim-go', { 'for': 'go' }
|
|
||||||
Plug 'iamcco/markdown-preview.vim', { 'for': 'markdown' }
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'flazz/vim-colorschemes'
|
Plug 'flazz/vim-colorschemes' " ColorChemes pack
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'airblade/vim-gitgutter' " Git indecator
|
||||||
|
Plug 'kien/ctrlp.vim' " Search file
|
||||||
|
Plug 'ap/vim-css-color', {'for': 'css'} " CSS color
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set number
|
set number " Number line
|
||||||
syntax on
|
syntax on " Support syntax
|
||||||
set incsearch
|
set mouse=a " Mousr support
|
||||||
set hlsearch
|
set ruler " Cursor position
|
||||||
set ignorecase
|
set hidden " hidden buffers
|
||||||
set smartcase
|
set smartindent " hidden buffers
|
||||||
set nocompatible
|
set t_Co=256 " Enable 265 colors
|
||||||
set ruler
|
set encoding=utf-8 " Use utf-8 encoding
|
||||||
set mouse=a
|
|
||||||
set hidden
|
|
||||||
set autoindent
|
|
||||||
set smartindent
|
|
||||||
set history=150
|
|
||||||
set termencoding=utf8
|
|
||||||
set guifont=DroidSansMono\ Nerd\ Font\ 11
|
|
||||||
set t_Co=256
|
|
||||||
set background=dark
|
|
||||||
colorscheme OceanicNext
|
|
||||||
"Tab for python
|
|
||||||
set tabstop=4
|
|
||||||
set shiftwidth=4
|
|
||||||
set smarttab
|
|
||||||
set expandtab
|
|
||||||
|
|
||||||
"Maping chenge window
|
set cursorline " The line with the cursor will be highlighted
|
||||||
|
set wrap " Line wrapping
|
||||||
|
set nobackup " Disable backup files
|
||||||
|
set noswapfile " Disable *.swp files
|
||||||
|
set history=1000 " History size 1000 edits
|
||||||
|
set autoread " Auto reade file for edit
|
||||||
|
|
||||||
|
" Tab
|
||||||
|
set tabstop=4 " Tab size 4
|
||||||
|
set shiftwidth=4 " Tab size 4
|
||||||
|
set expandtab " Tab consist of space
|
||||||
|
set smarttab " Tab consist of space
|
||||||
|
|
||||||
|
" Search
|
||||||
|
set incsearch " Highlighted
|
||||||
|
set ignorecase " Highlighted
|
||||||
|
set smartcase " Smart Rigger
|
||||||
|
|
||||||
|
" ColoerCheme
|
||||||
|
set background=dark
|
||||||
|
colorscheme gruvbox
|
||||||
|
" Color cheme list
|
||||||
|
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanocNext, gruvbox, Monokai, vmaterial
|
||||||
|
" Light: newspaper, newspaper, wikipedia, Atelier_CaveLight, mac_classic
|
||||||
|
" Outher: off
|
||||||
|
|
||||||
|
""""""""""
|
||||||
|
" MAPING "
|
||||||
|
""""""""""
|
||||||
|
let mapleader=',' " Leader key
|
||||||
|
|
||||||
|
" Smart way to move between windows
|
||||||
map <C-j> <C-W>j
|
map <C-j> <C-W>j
|
||||||
map <C-k> <C-W>k
|
map <C-k> <C-W>k
|
||||||
map <C-H> <C-W>h
|
map <C-h> <C-W>h
|
||||||
map <C-L> <C-W>l
|
map <C-l> <C-W>l
|
||||||
"Maping Russian letters
|
|
||||||
|
" Tabs
|
||||||
|
map <leader>tn :tabnew<cr>
|
||||||
|
map <leader>to :tabonly<cr>
|
||||||
|
map <leader>tc :tabclose<cr>
|
||||||
|
map <leader>tm :tabmove
|
||||||
|
|
||||||
|
" Russian letters
|
||||||
map ш i
|
map ш i
|
||||||
map м v
|
map м v
|
||||||
map ч x
|
map ч x
|
||||||
map в d
|
map в d
|
||||||
map р h
|
map р h
|
||||||
|
map п g
|
||||||
map о j
|
map о j
|
||||||
map л k
|
map л k
|
||||||
map д l
|
map д l
|
||||||
"MarkDownPreview
|
|
||||||
nmap <silent> <F8> <Plug>MarkdownPreview
|
|
||||||
imap <silent> <F8> <Plug>MarkdownPreview
|
|
||||||
nmap <silent> <F9> <Plug>StopMarkdownPreview
|
|
||||||
imap <silent> <F9> <Plug>StopMarkdownPreview
|
|
||||||
|
|
||||||
"Delate excess spase for python files
|
|
||||||
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