Skip to content

Commit

Permalink
a load of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ehg committed Feb 26, 2013
1 parent 3f1ddfb commit b825a37
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 39 deletions.
24 changes: 15 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "bundle/fugitive"]
path = bundle/fugitive
url = git://github.com/tpope/vim-fugitive.git
[submodule "bundle/command-t"]
path = bundle/command-t
url = git://git.wincent.com/command-t.git
Expand All @@ -16,21 +13,30 @@
[submodule "bundle/cucumber"]
path = bundle/cucumber
url = https://github.com/tpope/vim-cucumber.git
[submodule "bundle/haml"]
path = bundle/haml
url = https://github.com/tpope/vim-haml.git
[submodule "bundle/markdown"]
path = bundle/markdown
url = https://github.com/plasticboy/vim-markdown.git
[submodule "bundle/snipmate"]
path = bundle/snipmate
url = git://github.com/msanders/snipmate.vim.git
[submodule "bundle/r"]
path = bundle/r
url = git://github.com/vim-scripts/Vim-R-plugin.git
[submodule "bundle/screen"]
path = bundle/screen
url = git://github.com/ervandew/screen.git
[submodule "bundle/youcompleteme"]
path = bundle/youcompleteme
url = git://github.com/Valloric/YouCompleteMe.git
[submodule "bundle/syntastic"]
path = bundle/syntastic
url = git://github.com/scrooloose/syntastic.git
[submodule "bundle/easymotion"]
path = bundle/easymotion
url = git://github.com/Lokaltog/vim-easymotion.git
[submodule "bundle/powerline"]
path = bundle/powerline
url = https://github.com/Lokaltog/powerline
[submodule "bundle/csscolour"]
path = bundle/csscolour
url = git://github.com/ap/vim-css-color.git
[submodule "bundle/detectindent"]
path = bundle/detectindent
url = git://github.com/ciaranm/detectindent.git
1 change: 0 additions & 1 deletion Vim-R-plugin
Submodule Vim-R-plugin deleted from 7b5e25
1 change: 1 addition & 0 deletions bundle/csscolour
Submodule csscolour added at b93466
1 change: 1 addition & 0 deletions bundle/detectindent
Submodule detectindent added at c6f6e7
1 change: 1 addition & 0 deletions bundle/easymotion
Submodule easymotion added at 667a66
1 change: 1 addition & 0 deletions bundle/powerline
Submodule powerline added at b347d5
1 change: 1 addition & 0 deletions bundle/syntastic
Submodule syntastic added at 0fcf79
2 changes: 0 additions & 2 deletions ftplugin/javascript.vim

This file was deleted.

4 changes: 0 additions & 4 deletions ftplugin/python.vim

This file was deleted.

1 change: 1 addition & 0 deletions powerline
Submodule powerline added at b347d5
72 changes: 49 additions & 23 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,63 @@ set laststatus=2 " Show the status line all the time
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P

set list
set listchars=tab:▸\
set listchars=tab:▸\

colorscheme jellybeans

" Tab mappings.
map <leader>tt :tabnew<cr>
map <leader>te :tabedit
map <leader>tc :tabclose<cr>
map <leader>to :tabonly<cr>
map <leader>tn :tabnext<cr>
map <leader>tp :tabprevious<cr>
map <leader>tf :tabfirst<cr>
map <leader>tl :tablast<cr>
map <leader>tm :tabmove

noremap <leader>o <Esc>:CommandT<CR>
noremap <leader>O <Esc>:CommandTFlush<CR>
noremap <leader>m <Esc>:CommandTBuffer<CR>
" Set ctrl space to autocomplete
inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
\ "\<lt>C-n>" :
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
imap <C-@> <C-Space>
nnoremap ; :
nnoremap : ;
" nnoremap : ;

vnoremap ; :
vnoremap : ;
set t_Co=256
" vnoremap : ;

if (&term =~ "xterm")
set t_Co=256
elseif (&term =~ "screen")
set t_Co=16
else
set t_Co=8
endif

" Functions
function TrimEndLines()
let save_cursor = getpos(".")
:silent! %s#\($\n\s*\)\+\%$##
call setpos('.', save_cursor)
endfunction

function TrimTrailingWhitespaces()
let save_cursor = getpos(".")
:silent! %s#\s\+$##g
call setpos('.', save_cursor)
endfunction

"Trim empty lines at the EOF
au BufWritePre * call TrimEndLines()
au BufWritePre * call TrimTrailingWhitespaces()

set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim

noremap <C-H> :bp<CR>
noremap <C-L> :bn<CR>
let g:EasyMotion_leader_key = '<Space>'
nmap s <Space>w
nmap S <Space>b
let g:syntastic_error_symbol=''
let g:syntastic_warning_symbol=''
let g:syntastic_style_warning_symbol=':('
let g:syntastic_style_error_symbol=':('

let g:netrw_liststyle = 4

augroup syn_gutter
au BufWinEnter * sign define mysign
au BufWinEnter * exe "sign place 1337 line=1 name=mysign buffer=" . bufnr('%')
augroup END

0 comments on commit b825a37

Please sign in to comment.