Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. " Enable awesome stuff
  2. set nocompatible
  3.  
  4. " Enable woring with vim-related packages in debian
  5. runtime! debian.vim
  6.  
  7. " vim-latexsuite
  8. filetype plugin indent on
  9. set grepprg=grep\ -nH\ $*
  10. let g:tex_flavor = "latex"
  11. set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after
  12.  
  13. "" Enable Vundle
  14. "filetype off
  15. "set rtp+=~/.vim/bundle/Vundle.vim
  16. "call vundle#begin()
  17. "
  18. "Plugin 'gmarik/Vundle.vim'
  19. "
  20. "" Making vim look good (plugins)
  21. "Plugin 'altercation/vim-colors-solarized'
  22. "Plugin 'tomasr/molokai'
  23. "Plugin 'bling/vim-airline'
  24. "
  25. "" File views
  26. "Plugin 'scrooloose/nerdtree'
  27. "Plugin 'jistr/vim-nerdtree-tabs'
  28. "
  29. "" Syntax highlighting
  30. "Plugin 'scrooloss/syntastic'
  31. "
  32. "" Tags
  33. "Plugin 'xolox/vim-misc'
  34. "Plugin 'xolox/vim-easytags'
  35. "Plugin 'majutsushi/tagbar'
  36. "
  37. "" File finder
  38. "Plugin 'kien/ctrlp.vim'
  39. "
  40. "" Alternate.vim
  41. "Plugin 'vim-scripts/a.vim'
  42. "
  43. "" Working with git
  44. "Plugin 'airblade/vim-gitgutter'
  45. "Plugin 'tpope/vim-fugitive'
  46. "
  47. "" Other editing features
  48. "Plugin 'Raimondi/delimitMate'
  49. "
  50. "" Man pages, tmux
  51. "Plugin 'jez/vim-superman'
  52. "Plugin 'christoomey/vim-tmux-navigator'
  53. "
  54. "" Highlight-remove trailing whitespace
  55. "Plugin 'ntpeters/vim-better-whitespace'
  56. "
  57. "" HTML closing tag
  58. "Plugin 'HTML-AutoCloseTag'
  59. "
  60. "call vundle#end()
  61. "
  62. "filetype plugin indent on
  63. "" End Vundle Stuff
  64.  
  65. " General settings
  66. set number " Show line numbers
  67. set ruler " Show cursor position always
  68. set backspace=indent,eol,start
  69. set showcmd " Show command in status line
  70. set incsearch " Do incremental searching
  71. set hlsearch
  72. set showmatch " Show matching brackets
  73. set pastetoggle=<F10> " For when you need to disable autoindent for proper pasting
  74.  
  75. " Enable syntax highlighting
  76. syntax enable
  77.  
  78. " set tabs and auto indenting
  79. set ts=4
  80. filetype indent on
  81. set autoindent
  82. set shiftwidth=4
  83. set softtabstop=4
  84. set expandtab
  85.  
  86.  
  87. " Enable mouse use
  88. set mouse=a
  89.  
  90. " Make vim pretty
  91. set t_Co=256
  92. set background=dark
  93. "colorscheme solarized
  94.  
  95. " Plugin settings
  96.  
  97. "-------vim-airline--------
  98. set laststatus=2
  99.  
  100. "Fancy arrow symbols
  101. let g:airline_powerline_fonts=1
  102.  
  103. " Show PASTE if in paste mode
  104. let g:airline_detect_paste=1
  105.  
  106. " Show airline for tabs too
  107. let g:airline#extensions#tabline#enabled=1
  108.  
  109. "------nerdTree stuff-------
  110. "Open/close tabs with \t
  111. nmap <silent> <leader>t :NERDTreeTabsToggle<CR>
  112. " TO have NERDtree always open on startup
  113. let g:nerdtree_tabs_open_on_console_startup = 0
  114.  
  115. "------ syntastic settings -----
  116. let g:syntastic_error_symbol="✘"
  117. let g:syntastic_warning_symbol="▲"
  118. augroup mySyntastic
  119. au!
  120. au FileType text let b:syntastic_mode = "passive"
  121. augroup END
  122.  
  123. "-------easy tags settings -----
  124. " Where to look for for tags files
  125. set tags=./tags;,~/.vimtags
  126. " Sensible defaults
  127. let g:easytags_events = ['BufReadPost', 'BufWritePost']
  128. let g:easytags_async = 1
  129. let g:easytags_dynamic_files = 2
  130. let g:easytags_resolve_links = 1
  131. let g:easytags_suppress_ctags_warning = 1
  132.  
  133. "-------- TagBar settings ------
  134. " Open/close tagbar with \b
  135. nmap <silent> <leader>b :TagbarToggle<CR>
  136. " Uncomment to open tagbar automatically whenever possible
  137. "autocmd BufEnter * nested :call tagbar#autoopen(0)
  138.  
  139. "------- airblade/vim-gitgutter settings -------
  140. " Required after having changed the colorscheme
  141. hi clear SignColumn
  142. " In vim-airline, only display "hunks" if the diff is non-zero
  143. let g:airline#extensions#hunks#non_zero_only = 1
  144.  
  145. "-------DelimitMate settings------------
  146. let delimitMate_expand_cr = 1
  147. augroup mydelimitMate
  148. au!
  149. au FileType markdown let b:delimitMate_nesting_quotes = ["`"]
  150. au FileType tex let b:delimitMate_quotes = ""
  151. au FileType tex let b:delimitMate_matchpairs = "(:),[:],{:},`:'"
  152. au FileType python let b:delimitmate_nesting_quotes = ['"', "'"]
  153. augroup END
  154.  
  155. "-------superman settings
  156. " k shortcut
  157. noremap K :SuperMan <cword><CR>
  158.  
  159. "--- Open last location when reopening a previously-edited file.
  160. if has("autocmd")
  161. au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
  162. endif
  163.  
  164. " vim-latexsuite comiler rules
  165. let g:tex_flavor='xelatex'
  166. let g:Tex_CompileRule_pdf='xelatex --interaction=nonstopmode $*'
  167. let g:Tex_CompileRule_dvi='xelatex --interaction=nonstopmode $*'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement