-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
50 lines (44 loc) · 1.07 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
syntax enable
colorscheme molokai
set hlsearch
set nowrap
set showcmd
set visualbell
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set cc=80
set autoread
set showmatch
set clipboard+=unnamed
set ruler
set number
map <F7> : tabp <ENTER>
map <F8> : tabn <ENTER>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
let g:rehash256=1
set t_Co=256
set term=screen-256color
let mapleader=","
nnoremap <leader>q gq0
filetype plugin indent on
autocmd FileType make setlocal noexpandtab
autocmd FileType tex,markdown setlocal wrap spell textwidth=80
autocmd BufRead,BufNewFile *.upc set filetype=c
autocmd BufRead,BufNewFile *.sbt set filetype=scala
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.s,*.S set filetype=asm
set autoindent
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
fun! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
%s/\s\+$//e
call cursor(l, c)
endfun
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()