Advertisement
savemanos

vimrc

Feb 13th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. set et ts=4
  2. set sw=4
  3. set tw=79
  4. set smarttab
  5. set expandtab
  6. set autoindent
  7. set copyindent
  8. syntax on
  9. set nowrap
  10. set modeline
  11.  
  12. set hlsearch
  13. set incsearch
  14. set mouse=a
  15. set showmatch
  16.  
  17. "set number " show line numbers next to the line
  18. set title " show title in console title bar
  19. set ruler " show line and column number
  20.  
  21. "required by Viki
  22. set nocompatible
  23.  
  24. filetype plugin indent on
  25.  
  26. "Set space to fold/unfold
  27. :nnoremap <space> za
  28.  
  29. "Shortcuts for moving between tabs.
  30. " Alt-j to move to the tab to the left
  31. noremap <A-j> gT
  32. " Alt-k to move to the tab to the right
  33. noremap <A-k> gt
  34. "Set the Tags for the Viki
  35. "set tags=/home/yiannis/wiki/tags;./tags;tags;/.
  36. "autocmd BufWritePost /home/yiannis/wiki/* :helptags /home/yiannis/wiki
  37.  
  38. au BufRead,BufNewFile *.txt set filetype=text
  39. autocmd FileType text syn match TextTag "\*[a-zA-Z]*\*"
  40. autocmd FileType text syn match TextJump "|[a-zA-Z]*|"
  41. hi def link TextTag String
  42. hi def link TextJump Comment
  43. "Set the browser
  44. let g:vikiOpenUrlWith_http = "exec 'silent !firefox '. escape('%{URL}', ' &!%')"
  45.  
  46.  
  47.  
  48.  
  49. " If using a dark background within the editing area and syntax highlighting
  50. " turn on this option as well
  51. set background=dark
  52.  
  53. " Uncomment the following to have Vim jump to the last position when
  54. " reopening a file
  55. if has("autocmd")
  56. au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
  57. endif
  58.  
  59. " Uncomment the following to have Vim load indentation rules and plugins
  60. " according to the detected filetype.
  61. if has("autocmd")
  62. filetype plugin indent on
  63. endif
  64.  
  65. " Prolog over Perl :)
  66. au BufNewFile,BufRead *.pl set ft=prolog
  67.  
  68. set foldcolumn=2 foldlevelstart=99 foldmethod=syntax
  69.  
  70. "If backspace not working
  71. set backspace=indent,eol,start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement