all repos

dotfiles @ 7c888331f8d5292e264cf1e66640f98444803edb

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