-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
105 lines (88 loc) · 2.68 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
set nu
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'liuchengxu/space-vim-dark'
Plugin 'arcticicestudio/nord-vim'
Plugin 'glepnir/oceanic-material'
"The following are examples of different formats supported.
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"VIM TIPS BEGINS HERE
" % = for every line
" norm = type the following commands
"A* = append '*' to the end of current line
"VIM TIPS END HERE
syntax on
set nu
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
au BufNewFile,BufRead *.py
\ set tabstop=4|
\ set softtabstop=4|
\ set shiftwidth=4|
" \ set textwidth=79|
\ set expandtab|
\ set autoindent|
\ set fileformat=unix|
au BufNewFile,BufRead *.c
\ set tabstop=4|
\ set softtabstop=4|
\ set shiftwidth=4|
" \ set textwidth=79|
\ set expandtab|
\ set autoindent|
\ set fileformat=unix|
"mucomplete settings
set completeopt-=preview
set completeopt+=menuone,noselect
let g:jedi#popup_on_dot = 0 " It may be 1 as well
let g:mucomplete#enable_auto_at_startup = 1
"highlight settings:
hi PmenuSel ctermfg=250 ctermbg=167 guifg=#bcbcbc guibg=#af5f5f
hi Pmenu ctermfg=0 ctermbg=67 guifg=#bcbcbc guibg=#262626
"bracket and quote matching
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
"setting up esc mapping
inoremap jj <esc>
"Leader Key set up
nnoremap <SPACE> <Nop>
let mapleader = " "
map <leader>b :bp<enter>
map <leader>n :bn<enter>
map <leader>d :bd<enter>
map <leader>w :w<enter>
map <leader>q :q<enter>
map <leader>s :sfind
map <leader>v :vert sfind
map <Leader>a ggVG
"color scheme settings
let g:oceanic_material_transparent_background=1
colorscheme oceanic_material