Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- set rtp+=/usr/lib/python3.7/site-packages/powerline/bindings/vim/
- let g:plantuml_executable_script='java -jar /opt/plantuml/plantuml.jar'
- " Use a good indentation system
- set smartindent
- set tabstop=4
- set shiftwidth=4
- set noexpandtab
- set pastetoggle=<F7>
- " Enable mouse
- set mouse=a
- " Ignore case when searching
- set ignorecase
- " Highlight search results
- set hlsearch
- " Show matching brackets when text indicator is over them
- set showmatch
- " Syntax highlighting
- syntax enable
- syntax on
- " enable filetype detection and plugin loading
- filetype plugin on
- " Set utf8 as standard encoding and en_US as the standard language
- set encoding=utf8
- " Always show the status line
- set laststatus=2
- " Format the status line
- set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \
- " Returns true if paste mode is enabled
- function! HasPaste()
- if &paste
- return 'PASTE MODE '
- en
- return ''
- endfunction
- nnoremap h hzz
- nnoremap j gjzz
- nnoremap k gkzz
- nnoremap l lzz
- vnoremap h hzz
- vnoremap j gjzz
- vnoremap k gkzz
- vnoremap l lzz
- nnoremap <C-d> 11gjzz
- nnoremap <C-u> 11gkzz
- colorscheme koehler
- nnoremap <F1> :colorscheme default<CR>
- nnoremap <F2> :colorscheme murphy<CR>
- nnoremap <F3> :colorscheme morning<CR>
- nnoremap <F4> :colorscheme koehler<CR>
- map <C-t> :tabnew<CR>
- map <C-l> :tabn<CR>
- map <C-h> :tabp<CR>
- nnoremap <F5> :w<CR> :silent make<CR> :redraw!<CR>
- inoremap <F5> <Esc>:w<CR>:silent make<CR> :redraw!<CR>
- vnoremap <F5> :<C-U>:w<CR>:silent make<CR> :redraw!<CR>
- 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>
- autocmd Filetype python map <F5> :w<cr> :!python<space>%<CR>
- set number
- au BufEnter *.hs compiler ghc
- let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
- let g:ycm_confirm_extra_conf = 0
- let g:ycm_server_python_interpreter = '/usr/bin/python'
- let g:ycm_autoclose_preview_window_after_insertion = 1
- """ DEVELOPMENT SPECIFIC OPTIONS
- highlight ColorColumn ctermbg=8
- if exists('+colorcolumn')
- set colorcolumn=80
- else
- au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
- endif
- " Source local .vimrc files if present
- set exrc
- set secure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement