Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set shell=/bin/bash
- "call pathogen#infect()
- set nocompatible " be iMproved
- filetype off " required!
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " Bundles
- Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
- Bundle 'tomtom/tlib_vim'
- Bundle 'marcweber/vim-addon-mw-utils'
- "Bundle 'garbas/vim-snipmate'
- "Bundle 'othree/vim-autocomplpop'
- Bundle 'Shougo/neocomplcache.vim'
- Bundle 'scrooloose/nerdtree'
- Bundle 'airblade/vim-gitgutter'
- "Bundle 'ervandew/supertab'
- Bundle 'guns/xterm-color-table.vim'
- Bundle 'Twinside/vim-cuteErrorMarker'
- Bundle 'ntpeters/vim-better-whitespace'
- Bundle 'Yggdroot/indentLine'
- Bundle 'eparreno/vim-l9'
- Bundle 'elzr/vim-json'
- Bundle 'majutsushi/tagbar'
- Bundle 'neovimhaskell/haskell-vim'
- "Bundle 'nathanaelkane/vim-indent-guides'
- call vundle#end()
- filetype plugin indent on
- "Basic Configs
- set mouse=a
- set shiftwidth=4
- set expandtab
- set softtabstop=4
- set laststatus=2
- set noshowmode
- set number
- set modeline
- "set t_Co=256
- set foldmethod=syntax
- set nofoldenable
- set tabstop=4
- set cursorline
- set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim
- nnoremap <silent> <F5> :NERDTree<CR>
- nnoremap <F6> :TagbarToggle<CR>
- let g:tagbar_ctags_bin='ctags'
- let g:tagbar_width=30
- syntax on
- nnoremap <F4> :w <bar> :!~/.cp-script f4 % <CR>
- nnoremap <F7> :w <bar> :!~/.cp-script addin %< <CR>
- autocmd filetype cpp nnoremap <F8> :w <bar> :!~/.cp-script cppf8 %< <CR>
- autocmd filetype cpp nnoremap <F9> :w <bar> :!~/.cp-script cppf9 %< <CR>
- autocmd filetype python nnoremap <F8> :w <bar> :!~/.cp-script pyf8 %< <CR>
- autocmd filetype python nnoremap <F9> :w <bar> :!~/.cp-script pyf9 %< <CR>
- autocmd filetype haskell nnoremap <F8> :w <bar> :!ghci -XTemplateHaskell -XTemplateHaskellQuotes % <CR>
- autocmd filetype haskell nnoremap <F9> :w <bar> :!~/.cp-script hsf9 %< <CR>
- nnoremap <F10> :w <bar> :!cat % \| xclip -selection clipboard <CR>
- "Specific Configs
- "theme
- color Tomorrow-Night-Bright
- colorscheme Tomorrow-Night-Bright
- "neocomplcache
- let g:neocomplcache_enable_at_startup = 1
- "let g:neocomplcache_disableautocomplete = 1
- let g:neocomplcache_enable_smart_case = 1
- " Recommended key-mappings.
- " <CR>: close popup and save indent.
- inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
- function! s:my_cr_function()
- return neocomplcache#smart_close_popup() . "\<CR>"
- " For no inserting <CR> key.
- "return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
- endfunction
- " <TAB>: completion.
- inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
- let g:neocomplcache_enable_insert_char_pre = 1
- "betterwhitspace
- hi ExtraWhitespace ctermbg = darkgray
- hi Normal ctermbg=NONE
- hi CursorLine ctermbg=NONE
- hi LineNr ctermfg=gray
- " haskell-vim config start
- let g:haskell_enable_quantification = 1 " to enable highlighting of `forall`
- let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
- let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc`
- let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
- let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
- let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
- let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
- let g:haskell_indent_if = 4
- let g:haskell_indent_case = 4
- let g:haskell_indent_let = 4
- let g:haskell_indent_where = 6
- let g:haskell_indent_before_where = 2
- let g:haskell_indent_after_bare_where = 2
- let g:haskell_indent_do = 4
- let g:haskell_indent_in = 0
- let g:haskell_indent_guard = 4
- " haskell-vim config end
- "indent-guide
- "let g:indent_guides_enable_on_vim_startup = 1
- "let g:indent_guides_start_level = 3
- "let g:indent_guides_guide_size = 1
- "let g:indent_guides_auto_colors = 0
- "hi IndentGuidesOdd ctermbg = 235
- "hi IndentGuidesEven ctermbg = 233
- function! Sudowrite()
- w !sudo tee % > /dev/null
- edit!
- endfunction
- command W call Sudowrite()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement