From 5e3598c86d8e6fc3d624a01df465c0a53a55ae29 Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Sun, 21 Jul 2013 15:51:48 +0530 Subject: [PATCH] Cleaning --- home/.vimrc | 67 +++++++++++++++++------------------------------------ 1 file changed, 21 insertions(+), 46 deletions(-) diff --git a/home/.vimrc b/home/.vimrc index 3fc4e0e..e4f62f4 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -1,64 +1,30 @@ +" This file is inspired by spf13's vimrc + + " keyboard { nmap :w vmap gv imap - " map th :tabfirst - " map tn :tabnext - " map tp :tabprev - " map tl :tablast - " map tq :tabclose map :TlistToggle nmap :waexe "mksession! " . v:this_session set mouse=a - " map j - " map k - " map l - " map h cmap cwd lcd %:p:h cmap cd. lcd %:p:h - " set = - " set = - " set = - " set = - " imap ki - " imap ji - " imap li - " imap hi - " set =± " alt-1 - " set =² " alt-2 - " set =³ " alt-3 - " set =´ " alt-4 - " set =ä " alt-d - " set =å " alt-e - " set =ã " alt-c - " set =ö " alt-v - " set = - " set =´ - " imap 1gti - " imap 2gti - " imap 3gti - " imap 4gti set timeout timeoutlen=1000 ttimeoutlen=100 : " } " My settings { - " colorscheme elflord - let g:ctrlp_user_command = {} - let g:ctrlp_working_path_mode = 0 - let g:ctrlp_custom_ignore = 'node_modules' - " let g:neocomplcache_enable_at_startup = 1 + filetype on " required! set clipboard=unnamedplus set history=1000 " Store a ton of history (default is 20) set spell " Spell checking on set hidden " Allow buffer switching without saving - set directory=~/.vim/swap// + set directory=~/.vim/swap/ filetype plugin indent on " Automatically detect file types. let NERDSpaceDelims=1 set listchars=tab:»\ ,eol:¶,trail:·,precedes:…,extends:… - " set list - " set sessionoptions=blank,buffers,curdir,folds,tabpages,winsize - " au FileType xml setlocal foldmethod=syntax - " let g:xml_syntax_folding=1 + let g:xml_syntax_folding=1 + au FileType xml setlocal foldmethod=syntax " } @@ -80,7 +46,6 @@ set showmode " Display the current mode if has('statusline') set laststatus=2 - " Broken down into easily includeable segments set statusline=%w%h%m%r " Options " set statusline+=%{fugitive#statusline()} " Git Hotness @@ -103,15 +68,25 @@ set whichwrap=b,s,h,l,<,>,[,] " Backspace and cursor keys wrap too set scrolljump=5 " Lines to scroll when cursor leaves screen set scrolloff=3 " Minimum lines to keep above and below cursor - " set foldenable " Auto fold code set list " } +"for Ctrl-P{ + + let g:ctrlp_user_command = {} + let g:ctrlp_working_path_mode = 0 + let g:ctrlp_show_hidden = 1 + " custom file/folder ignores + let g:ctrlp_custom_ignore = { + \ 'dir': '\v[\/]\.(git|hg|svn|ve|node_modules)$', + \ 'file': '\v\.(o|pyc|class)$', + \ 'link': '', + \ } +"}" "for Bundle { set nocompatible " be iMproved - filetype on " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle @@ -120,7 +95,6 @@ " My Bundles here: " " original repos on github - Bundle 'tpope/eclim' Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} @@ -136,7 +110,6 @@ " Bundle 'Raimondi/delimitMate.git' Bundle 'bkad/CamelCaseMotion' " Bundle 'vim-scripts/boxdraw' - filetype plugin indent on " required! " Bundle "vim-scripts/Vim-JDE" @@ -166,6 +139,7 @@ "Bundle 'git://github.com/vim-scripts/autoload_cscope.vim.git' Bundle 'honza/vim-snippets' Bundle 'int3/vim-taglist-plus' + Bundle 'tpope/eclim' " Source support_function.vim to support vim-snippets. if filereadable(expand("~/.vim/bundle/vim-snippets/snippets/support_functions.vim")) source ~/.vim/bundle/vim-snippets/snippets/support_functions.vim @@ -218,6 +192,7 @@ " Session List { set sessionoptions=blank,buffers,curdir,tabpages,winsize,resize,winpos + nmap pt :ProjectsTree nmap sl :SessionList nmap sc :SessionClose " }