SHARE
TWEET

Untitled

a guest Mar 28th, 2013 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
  2. " /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
  3. " you can find below.  If you wish to change any of those settings, you should
  4. " do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
  5. " everytime an upgrade of the vim packages is performed.  It is recommended to
  6. " make changes after sourcing archlinux.vim since it alters the value of the
  7. " 'compatible' option.
  8.  
  9. " This line should not be removed as it ensures that various options are
  10. " properly set to work with the Vim-related packages.
  11. runtime! archlinux.vim
  12.  
  13. " If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
  14. " Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
  15. " and configure vim to your own liking!
  16.  
  17. syntax on
  18. "colorscheme zellner
  19. colorscheme molokai
  20. " Vertical mark at columns 80 an 81
  21. set colorcolumn=80,81
  22. hi ColorColumn ctermbg=234 guibg=1C1C1C
  23.  
  24. " Four spaces instead of tabs
  25. set expandtab
  26. set smarttab
  27. set tabstop=4
  28. set shiftwidth=4
  29.  
  30. " Indentation
  31. set autoindent
  32. set smartindent
  33. " Allow first line of paragraph to have its own indentation
  34. set fo+=2
  35.  
  36. " Indent based upon file type
  37. if has("autocmd")
  38.     filetype plugin indent on
  39. endif
  40.  
  41. " Line Numbers
  42. set number
  43.  
  44. " Smart Search ( case sensitive when upper-case letters are in search )
  45. set ignorecase
  46. set smartcase
  47.  
  48. " auto-complete paths ( Control + N )
  49. set path+=/usr/include/**
  50.  
  51. " Remember last lines
  52. if has("autocmd")
  53.     au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
  54.         \| exe "normal g'\"" | endif
  55. endif
  56.  
  57. " Bind space in command mode to insert one character
  58. " I.E. press 'space' + [key] to insert [key] before cursor w/o exiting command mode
  59. "nmap <Space> i_<Esc>r
  60.  
  61. " Treat broken-lines as separate lines while moving around
  62. map j gj
  63. map k gk
  64.  
  65. " Always show status line
  66. "set laststatus=2
  67.  
  68. " Don't preview one line of minimized windows
  69. set wmh=0
  70. set wmw=0
  71. " Move between windows with Ctrl+[hjkl]
  72. nmap <C-j> <C-w>j<Enter>
  73. nmap <C-k> <C-w>k<Enter>
  74. nmap <C-h> <C-w>h<Enter>
  75. nmap <C-l> <C-w>l<Enter>
  76.  
  77. " Bind Ctrl C to compile tex source named 'lab.tex' using pdflatex
  78. "map <C-c> :!pdflatex %<Enter>
  79.  
  80. " Bind Ctrl P to interperete current source file using python
  81. "map <C-p> :!python %<Enter>
  82. "map <C-i> :!python -i %<Enter>
  83.  
  84. " Authorinfo plugin config
  85. let g:vimrc_author='snip'
  86. let g:vimrc_email='snip'
  87. let g:vimrc_homepage='snip'
  88. nmap <F4> :AuthorInfoDetect<CR>
  89.  
  90. " Taglist Options
  91. " Open on keybind
  92. nmap <C-t> :TlistToggle<CR>
  93. " Close the list when something is selected
  94. let Tlist_Close_On_Select = 1
  95. let Tlist_GainFocus_On_ToggleOpen = 1
  96.  
  97. " NERDTree
  98. nmap <C-n> :NERDTreeToggle<CR>
  99. let NERDTreeQuitOnOpen = 1
  100.  
  101. " Latex-Suite
  102. set grepprg=grep\ -nH\ $*
  103. let g:tex_flavor = "latex"
  104. let g:tex_comment_nospell = 1
  105. let g:Tex_Folding = 0
  106. let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*'
  107. let g:Tex_FormatDependancy_pdf = 'pdf'
  108. let g:Tex_DefaultTargetFormat = 'pdf'
  109. let g:Tex_MultipleCompileFormats = 'pdf'
  110. let g:Tex_ViewRule_pdf = 'evince'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top