-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotvimrc
More file actions
59 lines (45 loc) · 1.28 KB
/
dotvimrc
File metadata and controls
59 lines (45 loc) · 1.28 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
call pathogen#infect()
syntax enable
:set tabstop=4
:set shiftwidth=4
:set expandtab
:set nowrap
:set ruler
" Syntax highlighting long lines is bad
:set synmaxcol=256
autocmd FileType html setlocal expandtab shiftwidth=2 tabstop=2
autocmd FileType javascript setlocal expandtab shiftwidth=2 softtabstop=2
filetype plugin indent on
:nnoremap <Tab> :buffers<CR>:buffer<Space>
:inoremap <c-\> <c-x><c-n><down>
" less-css
nnoremap ,m :w <BAR> !lessc % > %:t:r.css<CR><space>
" Remove menu bar
set guioptions-=m
" Remove toolbar
set guioptions-=T
" Solarized colors
set t_Co=256
set background=dark
let g:solarized_termcolors=256
let g:solarized_contrast="high"
colo solarized
" Mouse in terminal
set mouse=a
" iTerm insert mode cursor
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
:autocmd InsertEnter,InsertLeave * set cul!
" Remove occasional delay quickly exiting insert mode. This disables
" function and arrow keys in insert mode
"set noesckeys
set ttimeoutlen=100
" Netrw tree view
let g:netrw_liststyle=3
let g:netrw_browse_split=4
let g:netrw_preview=1
let g:netrw_winsize=30
command! Files Vex | silent vertical resize 30 | set winfixwidth
" Get swp files out of working directory
set directory=/Users/leroix/.vim/tmp
set backupdir=/Users/leroix/.vim/tmp