Advertisement
Guest User

vimrc

a guest
Aug 24th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.11 KB | None | 0 0
  1. " enables backspacing in insert mod
  2. set backspace=indent,eol,start
  3.  
  4. " turn on sintax hightlighting + automatic filetype detection
  5. syntax on
  6. filetype on
  7. filetype plugin on
  8. filetype indent on
  9.  
  10. " Highlight search terms...
  11. set hlsearch
  12. set incsearch " ...dynamically as they are typed.
  13.  
  14. set number
  15. set mouse=a
  16. set hidden
  17. let mapleader = ","
  18. set history=200
  19. runtime macros/matchit.vim
  20. set wildmenu
  21. set wildmode=list:longest
  22. set title
  23. set ruler
  24. set tabstop=3
  25. "set ai "Auto indent
  26. "set si "Smart indent
  27.  
  28. " set number colum and visual mode colors
  29. highlight LineNr cterm=none ctermbg=none ctermfg=4
  30. highlight Visual ctermbg=7 ctermfg=4
  31.  
  32. " hightlight html in php (in echo, etc.)
  33. let php_htmlInStrings = 1
  34.  
  35. """"""""""""""""""""""""""""""
  36. "=> Visual mode related
  37. """"""""""""""""""""""""""""""
  38. " Visual mode pressing * or # searches for the current selection
  39. " Super useful! From an idea by Michael Naumann
  40. vnoremap <silent> * :call VisualSelection('f', '')<CR>
  41. vnoremap <silent> # :call VisualSelection('b', '')<CR>
  42.  
  43. autocmd BufWrite *.py :call DeleteTrailingWS() "autoremove trailing spaces when python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement