all repos

dotfiles @ 9cfea5e5f0e219994afc29dd80f5bec745e794cc

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