-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
58 lines (45 loc) · 1.39 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
filetype off
call pathogen#infect('bundle/{}', 'pythide/{}')
call pathogen#helptags()
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set laststatus=2
" Only do this part when compiled with support for autocommands
if has("autocmd")
augroup redhat
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
augroup END
endif
syntax enable
set hlsearch
set t_Co=256
set tabstop=8
set softtabstop=4
set shiftwidth=4
set expandtab
set number
set exrc
set nocp
autocmd FileType cpp set cino=g0
map <leader>g :GundoToggle<CR>
map <leader>n :NERDTreeToggle<CR>
map <leader>b :buffers<CR>
map <C-t> :FSHere<CR>
map <C-]> :YcmCompleter GoTo<CR>
set statusline=%{fugitive#statusline()}%t%m%r%y%=%c\ %l/%L\ %P
autocmd FileType c,cpp autocmd BufWritePre * %s/\s\+$//e
colorscheme inkpot
filetype indent plugin on