-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·53 lines (43 loc) · 1.06 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
execute pathogen#infect()
filetype indent on
filetype plugin on
syntax on
set nocompatible
set title
set ruler
set number
set esckeys
set hlsearch
set showmode
set showmatch
set expandtab
set tabstop=4
set scrolloff=2
set shiftwidth=4
set softtabstop=2
set encoding=UTF-8
set fileencodings=UTF-8
set backspace=eol,start,indent
map j gj
map k gk
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++'
cabbrev E Explore
if has("autocmd")
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
autocmd BufEnter * let &titlestring = expand("%:t") . " :: vim"
endif
" python
au Bufenter *.py map <F5> :!python %<CR>
" c
au Bufenter *.c map <F5> :!gcc % -lm && ./a.out<CR>
" ruby
au Bufenter *.rb map <F5> :!ruby %<CR>
" js
au Bufenter *.js map <F5> :!node %<CR>