dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 8a621978cf5a8aec1db9171b2cd4ad972488bc2f
parent a3ec4c47f44eb7e4ccbfa10a880f0010dcaf805f
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Thu, 11 Dec 2014 19:43:10 +0200

vimrc: Use Vundle instead of pathogen

Use Vundle instead of pathogen and some minor whitespace cleanup

Diffstat:
.vimrc | 66++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 34 insertions(+), 32 deletions(-)

diff --git a/.vimrc b/.vimrc @@ -1,7 +1,23 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "For updates please check https://erethon.com and https://github.com/erethon """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"Plugins and Vundle +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +set nocompatible +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +Plugin 'kien/ctrlp.vim' +Plugin 'scrooloose/nerdcommenter' +Plugin 'tpope/vim-surround' + +call vundle#end() +filetype plugin indent on + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Visual stuff """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Turn syntax highlighting on @@ -17,11 +33,11 @@ set softtabstop=4 set shiftwidth=4 "Remove trailing whitespace for .py/.yml/.init/.rst/.spec files -autocmd BufWritePre *.py :%s/\s\+$//e -autocmd BufWritePre *.yml :%s/\s\+$//e -autocmd BufWritePre *.init :%s/\s\+$//e -autocmd BufWritePre *.rst %s/\s\+$//e -autocmd BufWritePre *.spec %s/\s\+$//e +autocmd BufWritePre *.py :%s/\s\+$//e +autocmd BufWritePre *.yml :%s/\s\+$//e +autocmd BufWritePre *.init :%s/\s\+$//e +autocmd BufWritePre *.rst %s/\s\+$//e +autocmd BufWritePre *.spec %s/\s\+$//e autocmd BufWritePre *.conf %s/\s\+$//e "Show line numbers @@ -51,16 +67,15 @@ else au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) endif - """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Mapping stuff """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -"Mapping 0 to go to first non-blank character of line -map 0 ^ - "Map <leader> to ";" let mapleader = ";" +"Mapping 0 to go to first non-blank character of line +map 0 ^ + "Use Ctrl + t for opening a new tab nnoremap <c-t> :tabnew "Use Ctrl + h/l for previous/next tab @@ -76,30 +91,17 @@ imap ii <Esc> "Pep8 checking map <F5> :!pep8 % <Enter> -"Git blame -map <F6> :!git blame % <Enter> - -"Check number of characters in file -map <F4> :!wc -m %<CR> - -"Easy set paste and set nopaste -set pastetoggle=<F2> - -"Spell checking -map <F7> :set spell<CR> - -"Enable mouse in vim -set mouse=a +"Git blame +map <F6> :!git blame % <Enter> -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -"Random Stuff -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +"Check number of characters in file +map <F4> :!wc -m %<CR> -"Enable pathogen add ons -"execute pathogen#infect() +"Easy set paste and set nopaste +set pastetoggle=<F2> -"Start CtrlP -"set runtimepath^=~/.vim/bundle/ctrlp.vim +"Spell checking +map <F7> :set spell<CR> -filetype indent plugin on -filetype indent on +"Enable mouse in vim +set mouse=a