-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
110 lines (83 loc) · 2.46 KB
/
init.vim
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
106
107
108
109
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Group dependencies, vim-snippets depends on ultisnips
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'honza/vim-snippets'
Plug 'MattesGroeger/vim-bookmarks'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline'
Plug 'KabbAmine/zeavim.vim', {'on' : ['ZeaVim', '<Plug>Zeavim']}
Plug 'mattn/gist-vim'
Plug 'mattn/emmet-vim'
Plug 'reedes/vim-wordy'
Plug 'klen/python-mode'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-surround'
Plug 'altercation/vim-colors-solarized'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'pangloss/vim-javascript'
Plug 'bfrg/vim-cpp-modern'
" Add plugins to &runtimepath
call plug#end()
" automatic reloading of vimrc
autocmd! bufwritepost init.vim source %
set ruler
syntax on
set showcmd
filetype plugin indent on
set hlsearch
filetype plugin on
set relativenumber
" Quick saves
noremap <C-Z> :update<CR>
vnoremap <C-Z> <C-C>:update<CR>
inoremap <C-Z> <C-O>:update<CR>
" no need to use <shift> to type :
nnoremap ; :
nnoremap : ;
" remapping esapce key
inoremap jj <Esc>
" Showing line numbers and length set number
set tw=79
set nowrap
set fo-=t
set number
set laststatus=2
" --- Column/Row stuff ---"
set cul
" set lines=40 columns=120 "window size
set colorcolumn=80
highlight ColorColumn ctermbg=blue guibg=#cc0000
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn','\%121v',100)
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set expandtab "only for blender python
set smarttab
" auto -complete
set ofu=syntaxcomplete#Complete
" Force saving files that require root permission
cnoremap w!! w !sudo tee > /dev/null %
set history=9000
set undolevels=9000
set spelllang=en_gb
set spellsuggest=best,6
set spellfile=~/.config/nvim/dict.krv.utf-8.add
set dictionary+=/usr/share/dict/words,
set dictionary+=/usr/share/dict/british-english
set dictionary+=/usr/share/dict/connectives.gz
set dictionary+=/usr/share/dict/web2,
set dictionary+=/usr/share/dict/web2a.gz
set dictionary+=/usr/share/dict/propernames.gz