all repos

dotfiles @ 4901ad0581d9ed21c72391a4e3a1198b12f38d97

i use rach linux btw

dotfiles/vimrc (view raw)

1
call plug#begin('~/.vim/plugged')
2
Plug 'jiangmiao/auto-pairs'             " Automapic closing of quotes
3
Plug 'flazz/vim-colorschemes'           " ColorChemes pack
4
    "Plug 'airblade/vim-gitgutter'          " Git indecator
5
    "Plug 'pangloss/vim-javascript'         " JS syntax support
6
call plug#end()
7
8
set nocompatible    " be iMproved
9
10
"set number         " Number line
11
"set relativenumber " Number line
12
13
syntax on           " Support syntax
14
set ruler           " Cursor position
15
set t_Co=256        " Enable 265 colors
16
17
set mouse=a         " Mouse support
18
set mousehide       " Mouse hide 
19
20
set encoding=utf-8  " Use utf-8 encoding
21
set fileencodings=utf8,cp1251
22
23
"set cursorline      " The line with the cursor will be highlighted
24
set wrap            " Line wrappingv
25
set linebreak       " Line wrappingv
26
27
set nobackup        " Disable backup files
28
set noswapfile      " Disable *.swp files
29
set history=50      " History size 1000 edits
30
set autoread        " Auto reade file for edit
31
32
set showmode
33
set showcmd
34
35
" Tab
36
set tabstop=4       " Tab size 4
37
set shiftwidth=4    " Tab size 4
38
set softtabstop=4   " Tab size 4
39
set expandtab       " Tab consist of space
40
set smarttab
41
set autoindent
42
43
" Search
44
set incsearch       " Highlighted
45
set ignorecase      " Highlighted
46
set smartcase       " Smart Rigger
47
48
" Buffers
49
set hidden
50
set smartindent	
51
52
set visualbell t_vb=    " Mute Vim
53
54
" ColoerCheme
55
set background=dark
56
colorscheme OceanicNext
57
" Color cheme list
58
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanicNext, gruvbox, Monokai, material
59
" Light: newspaper, wikipedia, Atelier_CaveLight, mac_classic
60
61
" Python
62
let python_highlight_all = 1
63
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
64
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
65
66
""""""""""
67
" MAPING "
68
""""""""""
69
let mapleader=','   " Leader key
70
71
" Smart way to move between windows
72
map <C-j> <C-W>j
73
map <C-k> <C-W>k
74
map <C-h> <C-W>h
75
map <C-l> <C-W>l
76
77
" Tabs
78
map <leader>tn :tabnew<CR>      " Create new tab
79
map <leader>tc :tabclose<CR>    " Tab kill
80
map <leader>1 :tabn 1<CR>       " Change tab
81
map <leader>2 :tabn 2<CR>       " Change tab
82
map <leader>3 :tabn 3<CR>       " Change tab
83
map <leader>4 :tabn 4<CR>       " Change tab
84
map <leader>5 :tabn 5<CR>       " Change tab
85
map <leader>6 :tabn 6<CR>       " Change tab
86
map <leader>7 :tabn 7<CR>       " Change tab
87
map <leader>8 :tabn 8<CR>       " Change tab
88
map <leader>9 :tabn 9<CR>       " Change tab
89
90
" Bufer
91
nnoremap <C-N> :bnext<CR>
92
nnoremap <C-P> :bprev<CR>
93
94
""""""""
95
" GVIM "
96
""""""""
97
if has("gui_running")
98
    set guioptions -=m
99
    set guioptions -=T
100
    map <leader>p "+gP          " Past text in buffer
101
    map <C-Tab> :tabnext<cr>    " Change tab
102
    map <C-S-Tab> :tabprev<cr>  " Change tab
103
endif