From 1b7241b67cde6e3dfcf97d234a45c57ec7bf36eb Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 11 Jan 2014 00:03:59 +0100 Subject: [PATCH] cleanup vim config, update vundle --- vim/autocorrect.vim | 2 - vim/autoload/pathogen.vim | 234 -------------------------------------- vim/bundle/vundle | 2 +- vimrc | 58 ++-------- 4 files changed, 9 insertions(+), 287 deletions(-) delete mode 100644 vim/autocorrect.vim delete mode 100644 vim/autoload/pathogen.vim diff --git a/vim/autocorrect.vim b/vim/autocorrect.vim deleted file mode 100644 index 6f41eee..0000000 --- a/vim/autocorrect.vim +++ /dev/null @@ -1,2 +0,0 @@ -" Well just a example syntax entry -iab teh the diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim deleted file mode 100644 index 7dbbd47..0000000 --- a/vim/autoload/pathogen.vim +++ /dev/null @@ -1,234 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.0 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc -" prior to `filetype plugin indent on` is the only other setup necessary. -" -" The API is documented inline below. For maximum ease of reading, -" :set foldmethod=marker - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a directory name to invoke -" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path -" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards, -" pathogen#cycle_filetype() is invoked. -function! pathogen#infect(...) abort " {{{1 - let source_path = a:0 ? a:1 : 'bundle' - if source_path =~# '[\\/]' - call pathogen#runtime_prepend_subdirectories(source_path) - else - call pathogen#runtime_append_all_bundles(source_path) - endif - call pathogen#cycle_filetype() -endfunction " }}}1 - -" Split a path into a list. -function! pathogen#split(path) abort " {{{1 - if type(a:path) == type([]) | return a:path | endif - let split = split(a:path,'\\\@,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) - -" vim:set ft=vim ts=8 sw=2 sts=2: diff --git a/vim/bundle/vundle b/vim/bundle/vundle index d62b51a..f31aa52 160000 --- a/vim/bundle/vundle +++ b/vim/bundle/vundle @@ -1 +1 @@ -Subproject commit d62b51a8fea39fb5345123b7590c80ba6c8e102d +Subproject commit f31aa52552ceb40240e56e475e6df89cc756507e diff --git a/vimrc b/vimrc index 52105d4..2d14743 100644 --- a/vimrc +++ b/vimrc @@ -15,25 +15,17 @@ Bundle 'pangloss/vim-javascript' Bundle 'tpope/vim-fugitive' Bundle 'clones/vim-l9' Bundle 'clones/vim-fuzzyfinder' -Bundle 'kchmck/vim-coffee-script' Bundle 'scrooloose/syntastic.git' -Bundle 'myusuf3/numbers.vim.git' Bundle 'kien/ctrlp.vim' Bundle 'Lokaltog/powerline' Bundle 'flazz/vim-colorschemes' -" vim-scripts repos -"Bundle 'L9' -" non github repos -"Bundle 'git://git.wincent.com/command-t.git' +filetype plugin indent on " enable 256 color !!1! set t_Co=256 -" Continue with the rest - -filetype plugin indent on " MAP LEADER noremap , \ @@ -42,7 +34,7 @@ let mapleader = "," " CONFIGURATION MAPPING set scrolloff=3 " show 3 lines of context around the cursor set autoread " set to auto read when a file is changed from the outside -"set mouse=a " allow for full mouse support +set mouse=a " allow for full mouse support set autowrite set showcmd " show typed commands @@ -90,9 +82,6 @@ au GUIEnter * set vb t_vb= syntax enable " enable syntax highlighting -" toggle number plugin -nnoremap :NumbersToggle - " Statusline if has('statusline') @@ -181,8 +170,12 @@ map sn ]s map sp [s map sa zg map s? z= -" toggle show number -map ln :set number! + +" numbers +set number +set relativenumber +nnoremap :set nonumber! +nnoremap :set relativenumber! "" ADDITIONAL AUTOCOMMANDS @@ -213,9 +206,6 @@ if has("gui_running") endif endif -"" ABBREVIATIONS -source $HOME/.vim/autocorrect.vim - "" PLUGIN SETTINGS " NERDTree @@ -236,21 +226,6 @@ nmap ]e vmap [egv vmap ]egv -" Command-T -let g:CommandTMaxHeight=20 - -" Ack -set grepprg=ack -nnoremap a :Ack -let g:ackhighlight=1 -let g:ackprg="ack-grep -H --type-set jade=.jade --type-set stylus=.styl --type-set coffee=.coffee --nocolor --nogroup --column --ignore-dir=node_modules -G '^((?!min\.).)*$'" - -" CoffeeScript -au FileType coffee set expandtab tabstop=3 shiftwidth=3 -map cc :CoffeeCompile -map cm :CoffeeMake -au BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable - " MAIL HUMAN TEX au BufNewFile,BufRead *.txt set filetype=human au FileType human,mail,tex set expandtab textwidth=78 nocindent @@ -266,26 +241,9 @@ au FileType html,xhtml set foldmethod=indent smartindent au FileType html,xhtml set expandtab tabstop=3 shiftwidth=3 au FileType html,php,xhtml,jsp,ejs let b:delimitMate_matchpairs = "(:),[:],{:}" -" Ruby -au FileType ruby setlocal ts=2 sts=2 sw=2 expandtab foldmethod=syntax - " Python au FileType python set noexpandtab " JavaScript au FileType javascript setlocal ts=4 sts=4 sw=4 au BufRead,BufNewFile *.json set ft=json - - -"" MISC FUNCTIONS -function! FileSize() - let bytes = getfsize(expand("%:p")) - if bytes <= 0 - return "" - endif - if bytes < 1024 - return bytes . " Bytes" - else - return (bytes / 1024) . "kB" - endif -endfunction