-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
69 lines (53 loc) · 1.32 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
66
67
68
69
execute pathogen#infect()
set nocompatible " be iMproved, required
filetype off " required
set expandtab
set runtimepath+=$GOROOT/misc/vim
set tabstop=2
set softtabstop=2
set shiftwidth=2
filetype plugin indent on
syntax on
let g:airline_theme = 'base16'
let g:airline_enable_branch = 1
let g:airline_enable_syntastic = 1
let g:airline_powerline_fonts = 1
let g:airline_section_y = airline#section#create(['%{getcwd()}'])
:nmap \l :setlocal number!<CR>
:nmap \0 :set paste!<CR>
:set number
:imap jk <Esc>
map <F2> :w<CR>
map <F3> :q<CR>
nmap :wc :w<space>!ruby<space>-c
nmap ;wc :w<space>!ruby<space>-c
nmap <silent> <F4> :NERDTreeToggle<CR>
set background=dark
colorscheme solarized
set t_Co=256
let g:solarized_termcolors=256
set scrolloff=5
set list
set noswapfile
:set hlsearch!
map <Space> :nohl<CR>
:set incsearch
:set ignorecase
:set smartcase
autocmd BufWritePre * :%s/\s\+$//e
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
:iabbrev </ </<C-X><C-O>
set pastetoggle=<F5>
nnoremap ; :
nmap s <Plug>(easymotion-s2)
nmap t <Plug>(easymotion-t2)
vmap <Enter> <Plug>(EasyAlign)
nmap <Leader>a <Plug>(EasyAlign)
:let mapleader = ","
highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn', '\%81v', 100)
vmap <expr> ++ VMATH_YankAndAnalyse()
nmap ++ vip++