mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update vimrc
This commit is contained in:
parent
145068ac44
commit
baed534f32
1 changed files with 23 additions and 49 deletions
72
vimrc
72
vimrc
|
|
@ -1,53 +1,45 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERTreeToggle' } "Side bar, tree
|
Plug 'klen/python-mode', { 'for': 'python' }
|
||||||
Plug 'flazz/vim-colorschemes' "Color thems
|
Plug 'vim-ruby/vim-ruby', { 'for': 'ruby' }
|
||||||
Plug 'airblade/vim-gitgutter' "Git startus line
|
Plug 'fatih/vim-go', { 'for': 'go' }
|
||||||
Plug 'tpope/vim-fugitive' "Git comands in vim
|
Plug 'iamcco/markdown-preview.vim', { 'for': 'markdown' }
|
||||||
Plug 'Vimjas/vim-python-pep8-indent', {'for': 'python'} "Python syntax
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'stanangeloff/php.vim', {'for': 'php'} "PHP syntax
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'pangloss/vim-javascript', {'for': 'js'} "JavaScript syntax
|
|
||||||
Plug 'ap/vim-css-color', {'for': 'css'} "Hilighting color in css
|
|
||||||
Plug 'auxiliary/vim-layout', {'for': 'sh'} "BASH syntax
|
|
||||||
Plug 'iamcco/markdown-preview.vim', {'for': 'markdown'} "MarkDown syntax
|
|
||||||
Plug 'elzr/vim-json', {'for': 'json'} "JSON syntax
|
|
||||||
Plug 'stacruz/sparkup' "A parser for a condensed HTML
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'flazz/vim-colorschemes'
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'kien/ctrlp.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
syntax on
|
|
||||||
set number
|
set number
|
||||||
set ignorecase
|
syntax on
|
||||||
set hlsearch
|
|
||||||
set incsearch
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
|
set nocompatible
|
||||||
|
set ruler
|
||||||
|
set mouse=a
|
||||||
|
set hidden
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
set mouse=a
|
set history=150
|
||||||
set termencoding=utf8
|
set termencoding=utf8
|
||||||
set guifont=DroidSansMono\ Nerd\ Font\ 11
|
set guifont=DroidSansMono\ Nerd\ Font\ 11
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme OceanicNext
|
colorscheme OceanicNext
|
||||||
set nocompatible
|
"Tab for python
|
||||||
filetype off
|
|
||||||
set encoding=utf-8
|
|
||||||
set fileencodings=utf8,cp1251
|
|
||||||
set hidden
|
|
||||||
nnoremap <C-N> :bnext<CR>
|
|
||||||
nnoremap <C-P> :bprev<CR>
|
|
||||||
|
|
||||||
Tab settings for Python, according to the recommendations
|
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set smarttab
|
set smarttab
|
||||||
set expandtab
|
set expandtab
|
||||||
set softtabstop=4
|
|
||||||
|
|
||||||
|
"Maping chenge window
|
||||||
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
|
||||||
map ш i
|
map ш i
|
||||||
map м v
|
map м v
|
||||||
map ч x
|
map ч x
|
||||||
|
|
@ -56,30 +48,12 @@ map р h
|
||||||
map о j
|
map о j
|
||||||
map л k
|
map л k
|
||||||
map д l
|
map д l
|
||||||
|
"MarkDownPreview
|
||||||
"All highlight
|
|
||||||
let python_highlight_all = 1
|
|
||||||
|
|
||||||
"Turn off the sound in Vim
|
|
||||||
set visualbell t_vb=
|
|
||||||
|
|
||||||
"Delate swap vim files
|
|
||||||
set nobackup
|
|
||||||
set noswapfile
|
|
||||||
|
|
||||||
"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
|
|
||||||
|
|
||||||
"NerdTree
|
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
|
||||||
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
|
|
||||||
let NERDTreeShowHidden=1
|
|
||||||
let g:NERDTreeWinPos="left"
|
|
||||||
let g:NERDTreeDirArrows=0
|
|
||||||
|
|
||||||
"Maping MarkdownPreview
|
|
||||||
nmap <silent> <F8> <Plug>MarkdownPreview
|
nmap <silent> <F8> <Plug>MarkdownPreview
|
||||||
imap <silent> <F8> <Plug>MarkdownPreview
|
imap <silent> <F8> <Plug>MarkdownPreview
|
||||||
nmap <silent> <F9> <Plug>StopMarkdownPreview
|
nmap <silent> <F9> <Plug>StopMarkdownPreview
|
||||||
imap <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