Mercurial > ec-dotfiles
annotate rc/vimrc @ 419:587abe573053
Added PATH for pgdg 9.2.
Sure has been ages last time I tried that :/
author | Edho Arief <edho@myconan.net> |
---|---|
date | Tue, 11 Dec 2012 16:15:34 -0500 |
parents | c0ac21407903 |
children | f4a29755dd01 |
rev | line source |
---|---|
3 | 1 set showmode |
2 set showcmd | |
3 set nomodeline | |
4 set autoindent | |
5 set lazyredraw | |
6 set vb t_vb= | |
7 set ruler | |
8 set nohls | |
9 set nocompatible | |
10 set backspace=2 | |
11 set esckeys | |
12 set noerrorbells | |
13 set ts=2 | |
14 set expandtab | |
32 | 15 set title |
339
1d88cefc7aca
[vimrc] set list for tab-squashing.
Edho Arief <edho@myconan.net>
parents:
336
diff
changeset
|
16 set list |
33 | 17 |
18 map <C-t><up> :tabr<cr> | |
19 map <C-t><down> :tabl<cr> | |
20 map <C-t><left> :tabp<cr> | |
21 map <C-t><right> :tabn<cr> | |
35
a8dc309a1b8a
Misc adjusments for vim keys
Edho Prima Arief <me@myconan.net>
parents:
33
diff
changeset
|
22 map <C-t>p :tabp<cr> |
a8dc309a1b8a
Misc adjusments for vim keys
Edho Prima Arief <me@myconan.net>
parents:
33
diff
changeset
|
23 map <C-t>n :tabn<cr> |
33 | 24 map <C-t><C-t> :NERDTreeToggle<cr> |
25 map <C-t><C-m> :NERDTreeMirror<cr> | |
26 | |
27 "autocmd VimEnter * NERDTree | |
28 "autocmd BufEnter * NERDTreeMirror | |
29 | |
329
ea82caf6c059
Added test to verify vim version (lite or full).
Edho Arief <edho@myconan.net>
parents:
315
diff
changeset
|
30 if has('syntax') |
ea82caf6c059
Added test to verify vim version (lite or full).
Edho Arief <edho@myconan.net>
parents:
315
diff
changeset
|
31 syntax on |
ea82caf6c059
Added test to verify vim version (lite or full).
Edho Arief <edho@myconan.net>
parents:
315
diff
changeset
|
32 set background=dark |
336
f0771672c559
[rc/vimrc] Forces transparent background for vim on gnome-terminal.
Edho Arief <edho@myconan.net>
parents:
329
diff
changeset
|
33 let g:solarized_termtrans=1 |
329
ea82caf6c059
Added test to verify vim version (lite or full).
Edho Arief <edho@myconan.net>
parents:
315
diff
changeset
|
34 colorscheme solarized |
ea82caf6c059
Added test to verify vim version (lite or full).
Edho Arief <edho@myconan.net>
parents:
315
diff
changeset
|
35 endif |
350 | 36 |
37 if has("autocmd") | |
38 autocmd BufRead,BufNewFile supervisord.conf :set ft=dosini | |
353 | 39 autocmd BufRead,BufNewFile Gemfile :set ft=ruby |
357 | 40 autocmd BufRead,BufNewFile crontab.* :set noet ts=8 nolist |
41 autocmd BufRead,BufNewFile crontab :set noet ts=8 nolist | |
369 | 42 autocmd BufRead,BufNewFile fstab :set noet ts=8 nolist |
358
b4f92c167f5b
Even more vimrc rules (git commit message).
Edho Arief <edho@myconan.net>
parents:
357
diff
changeset
|
43 autocmd BufRead,BufNewFile .git/COMMIT_EDITMSG :set noet ts=8 nolist |
362 | 44 autocmd BufRead,BufNewFile .gitconfig :set noet ts=8 nolist |
45 autocmd BufRead,BufNewFile .git/config :set noet ts=8 nolist | |
390 | 46 autocmd BufRead,BufNewFile *.erb :set ft=eruby ts=2 et list |
393
0aabb2b34ef6
Added scss vim syntax support.
Edho Arief <edho@myconan.net>
parents:
390
diff
changeset
|
47 autocmd BufRead,BufNewFile *.scss :set ft=scss |
410
fd0a889066a6
Added syntax highlight for coffeescript.
Edho Arief <edho@myconan.net>
parents:
393
diff
changeset
|
48 autocmd BufRead,BufNewFile *.coffee :set ft=coffee |
350 | 49 endif |
412
7ceec4404caf
Add restore cursor position for vim.
Edho Arief <edho@myconan.net>
parents:
410
diff
changeset
|
50 |
418
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
51 if has('function!') |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
52 "Restore cursor position |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
53 set viminfo='10,\"100,:20,%,n~/.viminfo |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
54 function! ResCur() |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
55 if line("'\"") <= line("$") |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
56 normal! g`" |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
57 return 1 |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
58 endif |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
59 endfunction |
412
7ceec4404caf
Add restore cursor position for vim.
Edho Arief <edho@myconan.net>
parents:
410
diff
changeset
|
60 |
418
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
61 augroup resCur |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
62 autocmd! |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
63 autocmd BufWinEnter * call ResCur() |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
64 augroup END |
c0ac21407903
Disable features on vim basic.
Edho Arief <edho@myconan.net>
parents:
412
diff
changeset
|
65 endif |