forked from jtgraphic/configurations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
71 lines (54 loc) · 1.34 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
70
71
" Manage default tabs with spaces and clean up bad stuff.
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
retab
" Disable comment continuation
set formatoptions-=cro
" Use line numbers.
set number
" Remember more.
set history=1000
" Make tab completion better.
set wildmenu
set wildmode=list:longest
" Show a vertical bar at column 121 and wrap text at 120
set colorcolumn=121
set textwidth=120
" Give the cursor some room while scrolling.
set scrolloff=3
" Highlight searches.
set hlsearch
set incsearch
" Make / searching case-insensitive most of the time.
set ignorecase
set smartcase
" Add syntax highlighting and general filetype options.
syntax on
filetype on
filetype plugin on
filetype indent on
"sane cursor movement
nmap j gj
nmap k gk
" commands
nmap \l :setlocal number!<CR>
" Make vim quieter.
set visualbell
" File specific stuff
" json syntax highlighting
autocmd BufNewFile,BufRead *.json set ft=javascript ts=2
" ruby spaces
autocmd BufRead,BufNewFile *.rb setlocal ts=2 sts=2 sw=2
" coffeescript
autocmd BufRead,BufNewFile *.coffee setlocal ts=2 sts=2 sw=2
" Plugins
" CntrlP.vim
set runtimepath^=~/.vim/plugin/ctrlp.vim
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<c-t>'],
\ 'AcceptSelection("t")': ['<cr>', '<2-LeftMouse>'],
\ }
" Pathogen
call pathogen#infect()