Advertisement
Guest User

Untitled

a guest
Dec 24th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.40 KB | None | 0 0
  1. set nocompatible              " be iMproved, required
  2. filetype off                  " required
  3.  
  4. set rtp+=/usr/lib/python3.7/site-packages/powerline/bindings/vim/
  5. let g:plantuml_executable_script='java -jar /opt/plantuml/plantuml.jar'
  6.  
  7. " Use a good indentation system
  8. set smartindent
  9. set tabstop=4
  10. set shiftwidth=4
  11. set noexpandtab
  12. set pastetoggle=<F7>
  13.  
  14. " Enable mouse
  15. set mouse=a
  16.  
  17. " Ignore case when searching
  18. set ignorecase
  19.  
  20. " Highlight search results
  21. set hlsearch
  22.  
  23. " Show matching brackets when text indicator is over them
  24. set showmatch
  25.  
  26. " Syntax highlighting
  27. syntax enable
  28. syntax on
  29.  
  30. " enable filetype detection and plugin loading
  31.         filetype plugin on
  32.  
  33. " Set utf8 as standard encoding and en_US as the standard language
  34. set encoding=utf8
  35.  
  36. " Always show the status line
  37. set laststatus=2
  38.  
  39. " Format the status line
  40. set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \
  41.  
  42. " Returns true if paste mode is enabled
  43. function! HasPaste()
  44.     if &paste
  45.         return 'PASTE MODE  '
  46.     en
  47.     return ''
  48. endfunction
  49.  
  50. nnoremap h hzz
  51. nnoremap j gjzz
  52. nnoremap k gkzz
  53. nnoremap l lzz
  54.  
  55. vnoremap h hzz
  56. vnoremap j gjzz
  57. vnoremap k gkzz
  58. vnoremap l lzz
  59.  
  60. nnoremap <C-d> 11gjzz
  61. nnoremap <C-u> 11gkzz
  62.  
  63. colorscheme koehler
  64. nnoremap <F1> :colorscheme default<CR>
  65. nnoremap <F2> :colorscheme murphy<CR>
  66. nnoremap <F3> :colorscheme morning<CR>
  67. nnoremap <F4> :colorscheme koehler<CR>
  68. map <C-t> :tabnew<CR>
  69. map <C-l> :tabn<CR>
  70. map <C-h> :tabp<CR>
  71. nnoremap <F5> :w<CR> :silent make<CR> :redraw!<CR>
  72. inoremap <F5> <Esc>:w<CR>:silent make<CR> :redraw!<CR>
  73. vnoremap <F5> :<C-U>:w<CR>:silent make<CR> :redraw!<CR>
  74. autocmd Filetype markdown map <F5> :w<CR> :execute 'silent<space>!pandoc<space><C-r>%<space>--pdf-engine=xelatex<space>-o<space><C-r> ./%:t:r.pdf<space>&>/dev/null &'<Enter><Enter><CR> :redraw!<CR>
  75. autocmd Filetype python map <F5> :w<cr> :!python<space>%<CR>
  76. set number
  77.  
  78. au BufEnter *.hs compiler ghc
  79.  
  80. let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
  81. let g:ycm_confirm_extra_conf = 0
  82. let g:ycm_server_python_interpreter = '/usr/bin/python'
  83. let g:ycm_autoclose_preview_window_after_insertion = 1
  84.  
  85. """ DEVELOPMENT SPECIFIC OPTIONS
  86. highlight ColorColumn ctermbg=8
  87. if exists('+colorcolumn')
  88.     set colorcolumn=80
  89. else
  90.     au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
  91. endif
  92.  
  93. " Source local .vimrc files if present
  94. set exrc
  95. set secure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement