Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. filetype plugin indent on
  2. " show existing tab with 4 spaces width
  3. set tabstop=4
  4. " when indenting with '>', use 4 spaces width
  5. set shiftwidth=4
  6. " On pressing tab, insert 4 spaces
  7. set expandtab
  8.  
  9. set smartindent
  10. set tabstop=4
  11. set shiftwidth=4
  12. set expandtab
  13.  
  14. " Relative line numbering (lags tho...)
  15. set relativenumber
  16.  
  17. " Point and click navigation
  18. set mouse=a
  19.  
  20. " Remap to intuitive line moving
  21. map j gj
  22. map k gk
  23.  
  24. " ||||||| LATEX SHORTCUTS ||||||||||||||||||||||||||||||||||||||||||||||||||||
  25.  
  26. autocmd BufWritePost *.tex silent! execute "!/home/daniel/bin/compile.sh <afile>" | redraw!
  27. let @e = 'o\begin{equation*}
  28.  
  29. €kb€kb€kb€kb\end{equation*}kzzi q€kba'
  30. let @r = 'o\begin{align*}
  31.  
  32. €kb€kb€kb€kb\end{align*}kzzi q€kba'
  33. "let @f = 'o\begin{enumerate}[(a)]
  34.  
  35. €kb€kb€kb€kb\end{enumerate}ki q€kba\item'
  36.  
  37. let @f = 'o\begin{enumerate}[(a)]o€kb€kb€kb€kb€kb€kb€kb€kb\end{enumerate}kzzo
  38. ko€kb€kb€kb€kb\item '
  39.  
  40. let @d = 'o\clearpageo\begin{problem}{1}o€kb€kb€kb€kb\end{problem}kzzo'
  41.  
  42. " Remap leader key
  43. let mapleader = ","
  44.  
  45. " Display line numbers
  46. set number
  47.  
  48. " |||||||||| COLORSCHEME |||||||||||||||||||||||||||||||||||||||||||||||||||||
  49.  
  50. let g:solarized_termcolors=256
  51.  
  52. syntax enable
  53. set background=dark
  54. colorscheme harlequin
  55.  
  56. " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  57. " |||||||| VUNDLE OPTIONS |||||||||||||||||||||||||||||||||||||||||||||||||||||
  58. " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  59.  
  60. set nocompatible
  61. filetype off
  62. set rtp+=~/.vim/bundle/vundle/
  63. call vundle#rc()
  64.  
  65. " This is the Vundle package, which can be found on GitHub.
  66. " " For GitHub repos, you specify plugins using the
  67. " " 'user/repository' format
  68. Plugin 'gmarik/vundle'
  69. Plugin 'valloric/youcompleteme'
  70. Plugin 'altercation/vim-colors-solarized'
  71. Plugin 'flazz/vim-colorschemes'
  72. Plugin 'rafi/awesome-vim-colorschemes'
  73. Plugin 'easymotion/vim-easymotion'
  74. " Plugin 'scrooloose/syntastic' <-- annoying errors
  75. " Plugin 'KeitaNakamura/tex-conceal.vim'
  76. " Plugin 'khzaw/vim-conceal'
  77. Plugin 'scrooloose/nerdcommenter'
  78. Plugin 'bling/vim-airline'
  79. Plugin 'vim-airline/vim-airline-themes'
  80.  
  81. " Now we can turn our filetype functionality back on
  82. filetype plugin indent on
  83.  
  84. " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  85. " ||||| END VUNDLE OPTIONS ||||||||||||||||||||||||||||||||||||||||||||||||||||
  86. " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  87.  
  88. " Syntastic Options
  89.  
  90. set statusline+=%#warningmsg#
  91. set statusline+=%{SyntasticStatuslineFlag()}
  92. set statusline+=%*
  93.  
  94. let g:syntastic_always_populate_loc_list = 1
  95. let g:syntastic_auto_loc_list = 1
  96. let g:syntastic_check_on_open = 1
  97. let g:syntastic_check_on_wq = 0
  98.  
  99. " ACTUALLY I DONT LIKE TEX CONCEAL
  100. " tex-conceal options
  101.  
  102. " set conceallevel=2
  103. " let g:tex_conceal="abdgm"
  104. "
  105. " NerdCommenter
  106. "
  107. nnoremap <space>r :SyntasticReset<CR>
  108.  
  109. " close syntastic error window
  110. :command K lclose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement