Guest User

Vimrc

a guest
Oct 31st, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. " -[ General behaviour ]-
  2. " general
  3. set nocompatible
  4. set nowrap
  5.  
  6. " search
  7. set nohls
  8. set incsearch
  9. set showmatch
  10.  
  11. " identing
  12. set autoindent
  13. set smartindent
  14.  
  15. " command mode
  16. set wildmenu
  17. set wildmode=list:longest,full
  18.  
  19. " -[ Look ]-
  20. " general
  21. set showcmd
  22. set showmode
  23. set number
  24.  
  25. " statusline
  26. set statusline=%<%f\ %y%h%m%r\ PWD:%{getcwd()}%=%-14.(%l,%c%V%)\ %P
  27. set laststatus=2
  28.  
  29. " colours
  30. "set t_Co=256
  31. colorscheme candycode
  32.  
  33.  
  34. " -[ FileTypes ]-
  35. " mail
  36. autocmd FileType mail,human set formatoptions+=t textwidth=72
  37.  
  38. " Python stuff
  39. autocmd FileType python let python_highlight_all = 1
  40. autocmd FileType python let python_slow_sync = 1
  41. autocmd FileType python set expandtab shiftwidth=4 softtabstop=4
  42.  
  43. " LaTeX
  44. autocmd Filetype tex,latex set grepprg=grep\ -nH\ $
  45. autocmd Filetype tex,latex let g:tex_flavor = "latex"
  46.  
  47.  
  48. " -[ Mappings ]-"
  49. " taglist
  50. nnoremap <silent> <F8> :TlistToggle<CR>
  51. inoremap <silent> <F8> <esc>:TlistToggle<CR>a
  52. nnoremap <silent> <F9> :TlistUpdate<CR>
  53. inoremap <silent> <F9> <esc>:TlistUpdate<CR>a
  54.  
  55.  
  56. " -[ Plugins and Scripts ]-
  57. " taglist
  58. let Tlist_Use_Right_Window = 1
  59. let Tlist_Compart_Format = 1
  60. let Tlist_Show_Menu = 1
  61. let Tlist_Exit_OnlyWindow = 1
  62.  
  63. "To load template
  64. "autocmd! BufNewFile * silent! 0r $HOME/.vim/skel/tmpl.%:e
  65. "autocmd BufNewFile *.c 0r ~/.vim/skel/tmpl.c
  66. autocmd BufNewFile *.c execute ':r ~/.vim/skel/tmpl.c'
Advertisement
Add Comment
Please, Sign In to add comment