-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.old
57 lines (50 loc) · 1.26 KB
/
vimrc.old
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
set nocompatible
call pathogen#infect()
if $TERM == "xterm-256color"
set t_Co=256
end
set autoindent
set background=dark
set backspace=indent,eol,start
set clipboard=unnamed
set expandtab
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set modifiable
set nolist
set pastetoggle=<F3>
set shiftwidth=2
set smartindent
set splitbelow
set splitright
set tabstop=2
set virtualedit=onemore
color molokai
filetype indent on
filetype plugin indent on
filetype plugin on
highlight clear SignColumn
syntax on
let g:airline_powerline_fonts = 1
let g:airline_theme = 'murmur'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_map = '<c-p>'
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
let mapleader=","
let NERDTreeShowHidden=1
autocmd FileType c,cpp,java,php,ruby,python autocmd! BufWritePre <buffer> :call <SID>StripTrailingWhitespaces()
autocmd FileType gitcommit autocmd! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])
autocmd FileType ruby,eruby set filetype=ruby.eruby.chef
nnoremap <c-e> :NERDTreeToggle<CR>
nnoremap <c-h> :nohl<CR>
nnoremap <c-n> :set invrelativenumber invnumber<CR>
nnoremap <leader>e :NERDTreeFind<CR>
nnoremap <leader>r :RuboCop<CR>
fun! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
%s/\s\+$//e
call cursor(l, c)
endfun