From 8795f72a26414e64c556fc5a9f4939f525f7d9d5 Mon Sep 17 00:00:00 2001 From: ptantiku Date: Wed, 6 Nov 2013 11:50:06 +0700 Subject: [PATCH] using vundle in vim, disable mouse, add dictionary --- vim/.vimrc | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 6a5b131..54b4b24 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -15,6 +15,17 @@ Bundle 'tpope/vim-endwise' Bundle 'tpope/vim-fugitive' Bundle 'tpope/vim-rails' Bundle 'vim-ruby/vim-ruby' +Bundle 'tpope/vim-surround' + +filetype plugin indent on " required by vundle +" Brief help +" :BundleList - list configured bundles +" :BundleInstall(!) - install(update) bundles +" :BundleSearch(!) foo - search(or refresh cache first) for foo +" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles +" +" see :h vundle for more details or wiki for FAQ +" NOTE: comments after Bundle command are not allowed.. " Set color terminal set t_Co=256 @@ -27,10 +38,11 @@ endif " allow backspacing over everything in insert mode set backspace=indent,eol,start -set history=50 " keep 50 lines of command line history +set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set showcmd " display incomplete commands -set incsearch " do incremental searching +set incsearch " do incremental searching +set number " set row number on " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries " let &guioptions = substitute(&guioptions, "t", "", "g") @@ -43,9 +55,9 @@ map Q gq inoremap u " In many terminal emulators the mouse works just fine, thus enable it. -if has('mouse') - set mouse=a -endif +" if has('mouse') +" set mouse=a +" endif " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. @@ -171,3 +183,6 @@ let g:airline_theme='dark' map :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif +" Dictionary +set dictionary=/usr/share/dict/america-english +