-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
56 lines (49 loc) · 1.24 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
execute pathogen#infect()
execute pathogen#helptags()
"filetype off
"filetype plugin indent off
"set runtimepath+=/usr/local/opt/go/libexec/misc/vim
"filetype plugin indent on
"autocmd BufWritePre *.go Fmt
syntax on
set nocompatible
set backspace=2
set number
set noeb
"set nowrap
set modeline
set ls=2
"set clipboard=unnamedplus
"set background=dark
"let g:solarized_degrade=1
"let g:solarized_termcolors=256
set t_Co=256
set tabstop=4
set shiftwidth=4
set smartindent
set autoindent
set smarttab
set cindent
set expandtab
set nowrap
set dir=~/.vimswap//
set backupdir=~/.vimbackup//
colo solarized
" for vim-better-whitespace plugin
autocmd BufEnter * EnableStripWhitespaceOnSave
" language-specific settings
autocmd Filetype ruby setlocal tabstop=2 shiftwidth=2
autocmd Filetype python setlocak tabstop=2 shiftwidth=2
" syntastic settings
"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_checkers = ['gcc']
"let g:syntastic_cpp_compiler = 'gcc'
"let g:syntastic_cpp_compiler_options = '-std=c++11'
:nmap <C-n> :tabn <CR>
:nmap <C-p> :tabp <CR>