-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
65 lines (51 loc) · 1.53 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
set nocompatible
" vim plugin loading
execute pathogen#infect()
" syntaax highlighting
syntax on
" smart filetype dependent indenting
filetype plugin indent on
set encoding=utf-8
set listchars=tab:→\ ,trail:·
" allow backspace to remove newlines
set backspace=indent,eol,start
" allow arrow keys to traverse newlines
set whichwrap+=<,>,[,]
" strip whitespace on save for source files
autocmd FileType c,cpp,python,rust autocmd BufWritePre <buffer> :%s/\s\+$//e
" highlight search matches
set hlsearch
" keep indent same as current line when inserting new line (unless
" filetype-specific rules in effect)
set autoindent
" show line numbers
set number
" Indentation settings for using spaces for indent. Display tabs as
" 4 characters wide.
filetype plugin indent on
set shiftwidth=4
set tabstop=4
set softtabstop=4
set expandtab
" Make w, q, and wq case insensitive
command W w
command WQ wq
command Wq wq
command Q q
" Start in Insert mode
" au BufRead,BufNewFile * start
set statusline=%t "tail of the filename
set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding
set statusline+=%{&ff}] "file format
set statusline+=%h "help file flag
set statusline+=%m "modified flag
set statusline+=%r "read only flag
set statusline+=%y "filetype
set statusline+=%= "left/right separator
set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set statusline+=\ %P "percent through file
set laststatus=2
set mouse=a
let g:syntastic_always_populate_loc_list = 1
match ErrorMsg '\%>80v.\+'