-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
39 lines (31 loc) · 891 Bytes
/
vimrc
File metadata and controls
39 lines (31 loc) · 891 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
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
set hlsearch
set t_Co=16
colorscheme base16-tomorrow-night
set splitbelow
set splitright
" syntax highlighting
syntax on
au BufNewFile,BufRead *.r,*.R setf r " don't use rexx syntax
au BufNewFile,BufRead *.gv setf cpp " gv files look like c++
au BufNewFile,BufRead *.rabl setf ruby " rabl is just ruby
" indentation
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set autoindent
filetype plugin indent on
au FileType r setlocal tabstop=4 softtabstop=4 shiftwidth=4 " 4-space indentation for R
let g:vimrplugin_assign=0
" cut/copy/paste
nnoremap <space> :let @+=@0<CR>
" tslime
vmap <CR> <Plug>SendSelectionToTmux
"nmap <CR> <Plug>NormalModeSendToTmux " haven't figured this one out yet
nmap <C-c>r <Plug>SetTmuxVars
" local
if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local
endif