forked from atomicobject/atomic_vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiva-vimrc.vim
87 lines (69 loc) · 1.96 KB
/
siva-vimrc.vim
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"crosby: From my personal .vimrc, I source:
" source ~/.vim/common-vimrc.vim
" source ~/.vim/crosby-vimrc.vim
let optional = []
let optional += ["nerdtree"]
let optional += ["vim-endwise"]
call OptionalBundles#Include(optional)
set autowrite
set nofoldenable
colorscheme synic
" Tidy (cheap shot; would like a better plugin)
cabbr tidy %!tidy -q -i -ashtml<CR>
" Croz can't type:
iabbr descrube describe
" Window horizontal split
noremap <leader>h :split<CR><C-W><C-W>
" Buffer navigation: Next and Previous
noremap <C-N> :bn<CR>
noremap <C-P> :bp<CR>
noremap ,<Space> :set nohlsearch
" Search term highlighting on / off:
noremap <leader>hl :set hlsearch<CR>
noremap <leader>nhl :set nohlsearch<CR>
" Faster Ctrl+W+hjkl by taking W out
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Textmate-style arrows shortcut
imap <Space>=>
imap "([^"]+)"
" Set search highlighting color:
set hl=l:DiffChange
" Quick search and replace in Visual mode by using Control+R
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
" Quickly delete a word using Control+Backspace
inoremap <C-BS> <C-O>b<C-O>dw
noremap <C-BS> bdw
" Save all open buffers
noremap <F2> :wa<CR>
" Change to corresponding spec file
map <F3> :A
" ~/snip is a junk file; call it a customized clipboard
" Write to snip. Either uses current visual selection, or entire buffer
noremap \ws :w! ~/snip<cr>
" Read contents of snip into current buffer
noremap \rs :r ~/snip<cr>
" Edit the snip file
noremap \es :e ~/snip<cr>
" Append to the snip file
noremap \as :w! >> ~/snip<cr>
nnoremap <leader><space> :noh<cr>
:set incsearch
:set autowrite
" NERDTree toggle
nmap <silent> <C-D> :NERDTreeToggle<CR>
let clj_want_gorilla = 1
syntax on
filetype plugin indent on
" Textmate-style arrows shortcut
imap <Space>=><Space>
:set hlsearch
" ERB renders like HTML
if has("autocmd")
au BufRead,BufNewFile *.erb set filetype=eruby
endif
if has('gui_running')
set guifont=Anonymous:h14
endif