This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
123 lines (106 loc) · 3.76 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/pavlos/.config/nvim/dein//repos/github.com/Shougo/dein.vim
" Required: :call dein#update()
if dein#load_state('/home/pavlos/.config/nvim/dein/')
call dein#begin('/home/pavlos/.config/nvim/dein/')
" Let dein manage dein
" Required:
call dein#add('/home/pavlos/.config/nvim/dein//repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
"call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
"call dein#add('Shougo/deoplete.nvim')
"call dein#add('Rip-Rip/clang_complete')
"call dein#add('zchee/deoplete-clang')
"call dein#add('google/vim-colorscheme-primary')
"call dein#add('vim-latex/vim-latex')
call dein#add('vim-airline/vim-airline')
call dein#add('tpope/vim-fugitive')
call dein#add('scrooloose/nerdtree')
call dein#add('vim-syntastic/syntastic')
call dein#add('jiangmiao/auto-pairs')
call dein#add('Yggdroot/indentLine')
call dein#add('Valloric/YouCompleteMe')
call dein#add('altercation/vim-colors-solarized')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
"End dein Scripts-------------------------
"let g:deoplete#sources#clang#libclang_path='/usr/lib/llvm-3.8/lib/libclang.so'
"let g:deoplete#sources#clang#clang_header='/usr/include/clang'
"let g:deoplete#enable_at_startup=1
"let g:clang_complete_library_path='/usr/lib/llvm-3.8/lib/libclang.so'
"let g:clang_complete_auto=1
"let g:clang_use_library=1
"=========================================
let g:ycm_global_ycm_extra_conf='~/.config/nvim/.ycm_extra_conf.py'
let g:ycm_confirm_extra_conf = 0
let g:ycm_python_binary_path ='/usr/lib/python3.5'
"==============airline options================
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline_powerline_fonts = 1
let g:airline_skip_empty_sections = 1
"==========syntastic=================
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"======================================
if has("autocmd") " Jump to the last position after start up
au BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
endif
highlight CursorLine term=reverse cterm=None ctermbg=242 guibg=Grey40
syntax on
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized
set clipboard=unnamedplus "Pasting from systems clipboard
set completeopt-=preview "for YCM
set shiftwidth=2
set softtabstop=2
set expandtab
set scrolloff=3
set sidescrolloff=7
set sidescroll=1
set incsearch "Find the next match as we type the search
set hlsearch
set cc=80
set nobackup
set noswapfile
set wildmenu
set wildmode=list:full
set wildignore=*.swp,*.bak,*.pyc,*.class,*.log,*.aux,*.pdf
set relativenumber " Show relative to the cursor numbering
set cursorline " Highlight cursor line
set relativenumber " Show relative to the cursor numbering
"let g:deoplete#enable_at_startup = 1
set tw=80 "Text width
set fo+=t "Format option for text
set fo -=l "But not for lines
set autowrite "Save before various commands e.g. :make
set noshowmode "Don't show the mode(airline is handling it)
set conceallevel=0 "Show $$$$
nmap <f9> :make!<Enter>
nnoremap <Enter> :noh<Enter><Enter>