Posted By

arnaudbrousseau on 12/15/10


Tagged

vim


Versions (?)

My VimRC file


 / Published in: Other
 

This is my .vimrc file. I'll try to keep it updated : each time I discover a new Vim trick, I'll put it there.

  1. set nocompatible
  2.  
  3. colorscheme fruit
  4. set guifont=Courier_new:h12
  5.  
  6. "Tab stuff
  7. set tabstop=2
  8. set shiftwidth=2
  9. set softtabstop=2
  10. set expandtab
  11.  
  12. "Show command in bottom right portion of the screen
  13. set showcmd
  14.  
  15. "Show lines numbers
  16. set number
  17.  
  18. "Indent stuff
  19. set smartindent
  20. set autoindent
  21.  
  22. "Always show the status line
  23. set laststatus=2
  24.  
  25. "Prefer a slightly higher line height
  26. set linespace=4
  27.  
  28. "Better line wrapping
  29. "set wrap
  30. "set textwidth=79
  31.  
  32. "Set incremental searching"
  33. set incsearch
  34.  
  35. "Highlight searching
  36. set hlsearch
  37.  
  38. " case insensitive search
  39. set ignorecase
  40. set smartcase
  41.  
  42. "Enable code folding
  43. set foldenable
  44.  
  45. "Hide mouse when typing
  46. set mousehide
  47.  
  48. "Split windows below the current window.
  49. set splitbelow
  50.  
  51. " session settings
  52. set sessionoptions=resize,winpos,winsize,buffers,tabpages,folds,curdir,help
  53.  
  54. "Automatically change current directory to that of the file in the buffer
  55. autocmd BufEnter * cd %:p:h
  56.  
  57. "Map code completion to , + tab
  58. imap ,<tab> <C-x><C-o>
  59.  
  60. " More useful command-line completion
  61. set wildmenu
  62.  
  63. "Auto-completion menu
  64. set wildmode=list:longest
  65. set completeopt=longest,menuone

Report this snippet  

You need to login to post a comment.