-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
92 lines (73 loc) · 1.85 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
set relativenumber "Sets numbering to relative
set number "Displays actual line num at 0
set scrolloff=8 "Sets min scroll buffer to 8
set showcmd
set showmode
set tw=82
set enc=utf-8
"Pathogen Support
execute pathogen#infect()
"Coulors!!!
syntax on
"Hex Coulors
call pathogen#infect('~/.vim/bundle{}')
"Syntanstic to follow
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
let g:syntastic_cpp_compiler_options = ' -std=c++11 `sdl2-config --cflags --libs`'
"Ctags on save
autocmd BufWritePost *.cpp,*.h call system("ctags -R")
"General setup
set nocompatible
syntax enable
filetype plugin on
" Menu configuration
set wildmode=longest,list "bash-like
set path+=** "Fuzzy file-search
set wildmenu
"Key Mappings
imap jj <Esc>
inoremap <Nul> <C-n>
"Highlight whitespace
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
"Pattern Matching
set smartcase
set hlsearch
set incsearch
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
"Powerline
let g:powerline_pycmd="py3"
set laststatus=2
set t_Co=256
"Tex Default Viewer
let g:livepreview_previewer = 'llpp.inotify'
set updatetime=500
"Vim Spelling
set spell spelllang=en
syntax spell toplevel
" Octave syntax
augroup filetypedetect
au! BufRead,BufNewFile *.m,*.oct set filetype=octave
augroup END
"STOP USING ARROWS!
noremap <Up> <nop>
noremap <Down> <nop>
noremap <Left> <nop>
noremap <Right> <nop>
inoremap <Up> <nop>
inoremap <Down> <nop>
inoremap <Left> <nop>
inoremap <Right> <nop>
set clipboard=unnamedplus
set tabstop=4 shiftwidth=2 expandtab