-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc
More file actions
95 lines (82 loc) · 1.73 KB
/
vimrc
File metadata and controls
95 lines (82 loc) · 1.73 KB
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
" By Andy Tseng
" still deciding if I should do this
set nobackup
set nowritebackup
set nu
"set swapfile
"set dir=~/swaps
set nocompatible
set expandtab
set tabstop=4
set shiftwidth=4
set smarttab
set cursorline
set hidden
set encoding=utf-8
set termencoding=utf-8
set backspace=indent,eol,start
set formatoptions-=cro
set t_Co=256
set background=dark
set wildmenu
set showcmd
set ruler
set colorcolumn=80
set laststatus=2
set hlsearch
" remaps
inoremap jj <Esc>
inoremap Jj <Esc>
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <right> <nop>
inoremap <left> <nop>
nnoremap L $
nnoremap H 0
command Wq wq
command Q q
command W w
:map <F2> <Esc>
"color!
colorscheme gruvbox
"syntax
syntax on
filetype plugin indent on
"plugins manager
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on' : 'NERDTreeToggle'}
Plug 'scrooloose/syntastic'
Plug 'junegunn/goyo.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
execute pathogen#infect()
"syntastic
let g:syntastic_cpp_compiler ='clang++'
let g:syntastic_cpp_compiler_options =' -std=c++11'
" cpp highlighting
let g:cpp_class_scope_highlight = 1
" highlight search
highlight Search guibg=blue ctermbg=black
function! ToggleMouse()
check if mouse is enabled
if &mouse == 'a'
" disable mouse
set mouse=
else
" enable mouse everywhere
set mouse=a
endif
endfunc
" Code from stackoverflow for tabbar colors
:hi TabLineFill ctermbg=237
:hi TabLine ctermfg=72 ctermbg=237
:hi TabLineSel ctermfg=208 ctermbg=237
" NERDTree Mappings/Hotkeys
map <C-n> :NERDTreeToggle<CR>
" airline
let g:airline_theme='gruvbox'