all repos

dotfiles @ bb901e85c2a1bfc8cd2149f41925a1771f7df1e0

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