forked from ndejay/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
67 lines (54 loc) · 1.24 KB
/
.vimrc
File metadata and controls
67 lines (54 loc) · 1.24 KB
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
" Plugins
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
" Vi compatibility
set nocompatible
set backspace=indent,eol,start
set modelines=1
" Highlight
filetype plugin on
filetype indent on
syntax on
set hlsearch
" Plugins
let mapleader=","
" Folding
" map <Leader>fi :setlocal foldmethod=indent<CR>
" map <Leader>fs :setlocal foldmethod=syntax<CR>
" set foldmethod=indent
" Shortcuts
map <Leader>sn :set invnumber<CR>
set pastetoggle=<Leader>sp
map <Leader>sw :set invwrap<CR>
map <Leader>sh :set invhls<CR>
" Indent
set autoindent
set smartindent
" Tabs
set expandtab
set softtabstop=2
set shiftwidth=2
" Presentation
set cursorline
set nowrap
set number
set ruler
" Swap and temp file location
" set backupdir=/tmp,.
set directory=~/.vim/swpfiles/
" pandoc plugin
let g:pandoc#modules#disabled = ["folding"]
" Statusline
set laststatus=2
set statusline=[%n]\ %<%F\ \ \ [%M%R%H%W%Y][%{&ff}]\ \ %=\ line:%l/%L\ col:%c\ \ \ %p%%\ \ \ %{strftime(\"%H:%M:%S\")}\ %{fugitive#statusline()}
" Comments
autocmd FileType r set commentstring=#\ %s
" Vim training wheels
noremap <Up> ""
noremap! <Up> <NOP>
noremap <Down> ""
noremap! <Down> <NOP>
noremap <Left> ""
noremap! <Left> <NOP>
noremap <Right> ""
noremap! <Right> <NOP>