esaurito committed befd794

Added some changes based on this nice post

  • Participants
  • Parent commits a49212c

Comments (0)

Files changed (1)

-"Last-modified: 05 Sep 2010 12:35:35 PM
+"Last-modified: 14 Sep 2010 13:58:46
 "Most of the content is stealed from the Interweb ;-)
 set nocompatible        " We're running Vim, not Vi!
 set backupdir=~/.vim/sessions
 set dir=~/.vim/sessions
+" change the mapleader from \ to ,
+let mapleader=","
 "See for details
+if &t_Co >= 256 || has("gui_running")
+   colorscheme mustang
+if &t_Co > 2 || has("gui_running")
+   " switch syntax highlighting on, when the terminal has colors
+   syntax on
+set background=dark
 syntax on " syntax highlighting
-colorscheme ir_black
-set background=dark
+"colorscheme ir_black
 "colorscheme desert
 "colorscheme wombat
-"Change omnicomplete colors
-"highlight Pmenu guibg=brown gui=bold
 """""""""""""""""""""""""""""""""""STATUS LINE"""""""""""""""""""""""""""""""
 set wildmenu "Show some autocomplete options in status bar
 set number "Display line numbers
 set nobackup "Do not keep a backup files 
 set nowritebackup "Do not keep a backup files 
-set history=50 "Keep 50 lines of command line history
+set history=1000 "Keep 50 lines of command line history
+set undolevels=1000 "Use many muchos levels of undo
+set wildignore=*.swp,*.bak,*.pyc,*.class "Ignore this files in wildmenu
 set showmatch "Show the matching bracket for the last ')'
-set noerrorbells "Error bells
+set noerrorbells "Don't beep
+set visualbell "Don't beep
 set matchpairs+=<:> "allow to jump with % between < and > linke for parenthesis
 " Sets what is saved when you save a session
 set sessionoptions=blank,buffers,curdir,folds,help,resize,tabpages,winsize
 " map :BufClose to :bq and configure it to open a file browser on close
 cnoreabbr <expr> bq 'BufClose' 
+" Quickly edit/reload the vimrc file
+nmap <silent> <leader>ev :e $MYVIMRC<CR>
+map <silent> <leader>sv :so $MYVIMRC<CR>
+"Clear hilighted search
+nmap <silent> ,<space> :let @/=""<CR> 
+"Toggle paste mode with a key
+set pastetoggle=<F2>
 filetype on             "Enable filetype detection
 filetype indent on      "Enable filetype-specific indenting