summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2009-11-17 20:20:01 -0500
committerMike Crute <mike@crute.us>2009-11-17 20:20:01 -0500
commit9b6b7f41efdb6cd8e0bcb45ccd21ed4a78d3f18f (patch)
tree2ae31a81870ee91838a9bfe39b095db9749e9035 /.vimrc
parent46f238b877c78b1555ade071c8d061247dab5a32 (diff)
downloaddotfiles-9b6b7f41efdb6cd8e0bcb45ccd21ed4a78d3f18f.tar.bz2
dotfiles-9b6b7f41efdb6cd8e0bcb45ccd21ed4a78d3f18f.tar.xz
dotfiles-9b6b7f41efdb6cd8e0bcb45ccd21ed4a78d3f18f.zip
Updating from work
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc84
1 files changed, 42 insertions, 42 deletions
diff --git a/.vimrc b/.vimrc
index af2cf50..d5b77a9 100644
--- a/.vimrc
+++ b/.vimrc
@@ -113,48 +113,6 @@ autocmd BufNewFile,BufRead *.py
113command FixLineEnd %s/ //gi 113command FixLineEnd %s/ //gi
114command PEP8 call IsPEP8() 114command PEP8 call IsPEP8()
115" }}} 115" }}}
116" Key Bindings {{{
117set pastetoggle=<F12>
118
119" Tab Key Bindings
120map nt :tabnew<CR>
121map tm :tabmove<CR>
122map tn :tabnext<CR>
123map tp :tabprev<CR>
124map tc :tabclose<CR>
125
126" Buffer Key Bindings
127map <C-l> :bnext!<CR>
128map <C-h> :bprev!<CR>
129map bn :bnext<CR>
130map bp :bprev<CR>
131
132" Paging Key Bindings
133map df <C-f>
134map fd <C-b>
135
136" Plugin Key Bindings
137map <unique> <leader>tl :TlistToggle<CR>
138map <unique> <leader>fe :Vexplore<CR>
139
140nmap \ih :call InsertTemplate("header", 1)<CR>
141map <silent><F6> :call SVNDiff()<CR>
142
143" Convenience Key Bindings
144" cs: clears search buffer
145map cs :let @/=""<CR>
146map sp :set spell!<CR>
147map txt :set filetype=text<CR>
148
149" GUI-style Saving!
150map <C-s> :w<CR>
151
152" Turns selected camelCase into camel_case
153vnoremap <leader>dc :s/\v\C(([a-z]+)([A-Z]))/\2_\l\3/g<CR>
154
155" Run python scripts and display the output
156nnoremap <leader>lp :!python %:p<CR>
157" }}}
158" Folding Settings {{{ 116" Folding Settings {{{
159set foldenable 117set foldenable
160set foldcolumn=3 118set foldcolumn=3
@@ -624,4 +582,46 @@ nnoremap <leader>A :call RunAllTests('')<cr>
624nnoremap <leader>t :call JumpToTestsForClass()<cr> 582nnoremap <leader>t :call JumpToTestsForClass()<cr>
625nnoremap <leader><leader> <c-^> 583nnoremap <leader><leader> <c-^>
626" }}} 584" }}}
585" Key Bindings {{{
586set pastetoggle=<F12>
587
588" Tab Key Bindings
589map nt :tabnew<CR>
590map tm :tabmove<CR>
591map tn :tabnext<CR>
592map tp :tabprev<CR>
593map tc :tabclose<CR>
594
595" Buffer Key Bindings
596map <C-l> :bnext!<CR>
597map <C-h> :bprev!<CR>
598map bn :bnext<CR>
599map bp :bprev<CR>
600
601" Paging Key Bindings
602map df <C-f>
603map fd <C-b>
604
605" Plugin Key Bindings
606map <unique> <leader>tl :TlistToggle<CR>
607map <unique> <leader>fe :Vexplore<CR>
608
609nmap \ih :call InsertTemplate("header", 1)<CR>
610map <silent><F6> :call SVNDiff()<CR>
611
612" Convenience Key Bindings
613" cs: clears search buffer
614map cs :let @/=""<CR>
615map sp :set spell!<CR>
616map txt :set filetype=text<CR>
617
618" GUI-style Saving!
619map <C-s> :w<CR>
620
621" Turns selected camelCase into camel_case
622vnoremap <leader>dc :s/\v\C(([a-z]+)([A-Z]))/\2_\l\3/g<CR>
623
624" Run python scripts and display the output
625nnoremap <leader>lp :!python %:p<CR>
626" }}}
627" vim:foldenable:foldmethod=marker: 627" vim:foldenable:foldmethod=marker: