-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim_bck
103 lines (81 loc) · 2.67 KB
/
init.vim_bck
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
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
"Colorscheme
Plug 'morhetz/gruvbox'
"UI tweaks
Plug 'https://github.com/vim-airline/vim-airline.git'
Plug 'https://github.com/bling/vim-bufferline.git'
Plug 'https://github.com/edkolev/tmuxline.vim'
Plug 'https://github.com/wesQ3/vim-windowswap.git'
"Editor packages
Plug 'https://github.com/jiangmiao/auto-pairs.git'
Plug 'zchee/deoplete-jedi'
Plug 'https://github.com/nathanaelkane/vim-indent-guides.git'
Plug 'https://github.com/ervandew/supertab.git'
Plug 'https://github.com/haya14busa/incsearch.vim.git'
"Plug 'https://github.com/vim-python/python-syntax.git'
Plug 'https://github.com/scrooloose/nerdcommenter.git'
Plug 'https://github.com/scrooloose/nerdtree.git'
"Latex packages
Plug 'https://github.com/donRaphaco/neotex.git'
Plug 'lervag/vimtex'
"Linting/syntax
Plug 'neomake/neomake'
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
" Initialize plugin system
call plug#end()
let g:deoplete#enable_at_startup = 1
let g:python_host_prog = '/usr/bin/python'
let g:python3_host_prog = '/usr/bin/python3'
" NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
" AutoClose
let g:AutoPairsFlyMode = 0
set clipboard=unnamed,unnamedplus
colorscheme gruvbox "Set colorscheme"
set background=dark "Set background color
syntax enable "Enable syntax processing"
syntax on
set tabstop=4 "Number of spaces show for tab"
set softtabstop=4 "Number of spaces in tab"
set expandtab "Tabs are spaces"
set termguicolors
"UI tweaks"
set number "Show linenumbers"
set cursorline "Higlight cursot line"
filetype indent on "Allows for loading indent files for spesific files"
set wildmenu "Show menu for autocomlete in commandline"
set showmatch "Highligths matching brackets"
set mouse=a
let g:python_highlight_all = 1
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set colorcolumn=80
"Search tweaks"
set incsearch "Highlights while searching"
set hlsearch "Higlight matches"
set magic
set inccommand=nosplit
set incsearch
set gdefault
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup