-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
66 lines (53 loc) · 1.64 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'rust-lang/rust.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'morhetz/gruvbox'
Plugin 'itchyny/lightline.vim'
call vundle#end()
filetype plugin indent on
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
set number
set encoding=utf-8 " For YouCompleteMe
set laststatus=2 " For lightline.vim
set t_u7= " Weird workaround
set t_RV=
let g:ycm_confirm_extra_conf = 0
map <C-o> :NERDTreeToggle<CR>
" colorscheme gruvbox
set background=dark
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
nnoremap <Left> :echo "Press h"<CR>
vnoremap <Left> :<C-u>echo "Press h"<CR>
inoremap <Left> <C-o>:echo "Press h"<CR>
nnoremap <Up> :echo "Press k"<CR>
vnoremap <Up> :<C-u>echo "Press k"<CR>
inoremap <Up> <C-o>:echo "Press k"<CR>
nnoremap <Down> :echo "Press j"<CR>
vnoremap <Down> :<C-u>echo "Press j"<CR>
inoremap <Down> <C-o>:echo "Press j"<CR>
nnoremap <Right> :echo "Press l"<CR>
vnoremap <Right> :<C-u>echo "Press l"<CR>
inoremap <Right> <C-o>:echo "Press l"<CR>
nnoremap <PageUp> :echo "Press Ctrl+u"<CR>
vnoremap <PageUp> :<C-u>echo "Press Ctrl+u"<CR>
inoremap <PageUp> <C-o>:echo "Press Ctrl+u"<CR>
nnoremap <PageDown> :echo "Press Ctrl+d"<CR>
vnoremap <PageDown> :<C-u>echo "Press Ctrl+d"<CR>
inoremap <PageDown> <C-o>:echo "Press Ctrl+d"<CR>