-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
52 lines (37 loc) · 971 Bytes
/
vimrc
File metadata and controls
52 lines (37 loc) · 971 Bytes
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
" ok pathogen is set
" execute pathogen#infect()
syntax on
"set clipboard=unnamed
set number
set tabstop=4 shiftwidth=4 expandtab
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
"Bundle 'Valloric/YouCompleteMe'
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-fugitive'
Bundle 'altercation/vim-colors-solarized'
filetype plugin indent on
" custom obh additions
noremap % v%
xmap vv <Esc>:%!python -m json.tool
" stupid hack because backspace doesn't seem to work in vim-insert mode
set backspace=indent,eol,start
" setting solarized theme
syntax enable
set background=dark
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
colorscheme solarized
" custom window movements
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" custom <shift> + : => ;
noremap ; :
" custom non-sudo save
let mapleader=","
noremap <Leader>w :w !sudo tee % > /dev/null