configs

git clone git://git.codymlewis.com/configs.git
Log | Files | Refs | README

vimrc (3011B)


      1 " Dein config
      2 if &compatible
      3         set nocompatible
      4 endif
      5 
      6 set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
      7 
      8 if dein#load_state('~/.cache/dein')
      9         call dein#begin('~/.cache/dein')
     10 
     11         call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
     12 
     13         call dein#add('vim-airline/vim-airline')
     14         call dein#add('airblade/vim-gitgutter')
     15         call dein#add('tpope/vim-commentary')
     16         call dein#add('vim-scripts/auto-pairs-gentle')
     17         call dein#add('yggdroot/indentline')
     18         call dein#add('w0rp/ale')
     19         call dein#add('shougo/deoplete.nvim')
     20         call dein#add('Shougo/neosnippet.vim')
     21         call dein#add('Shougo/neosnippet-snippets')
     22         call dein#add('tpope/vim-fugitive')
     23         call dein#add('majutsushi/tagbar')
     24         call dein#add('sjl/badwolf')
     25         call dein#add('amdt/vim-niji')
     26         call dein#add('tpope/vim-obsession')
     27         call dein#add('ludovicchabant/vim-gutentags')
     28 
     29         call dein#end()
     30         call dein#save_state()
     31 endif
     32 
     33 if dein#check_install()
     34         call dein#install()
     35 endif
     36 
     37 filetype plugin indent on
     38 syntax enable
     39 
     40 augroup filetypedetect
     41   " Mail
     42   autocmd BufRead,BufNewFile *mutt-* setfiletype mail
     43   autocmd BufRead,BufNewFile *tex setlocal spell
     44   autocmd BufRead,BufNewFile *md setlocal spell
     45 augroup END
     46 
     47 " Plugin config
     48 let g:airline#extensions#tabline#enabled = 1
     49 let g:AutoPairsUseInsertedCount = 1
     50 map ; :Commentary<CR>
     51 let g:indentLine_char_list = ['|', '¦', '┆', '┊']
     52 nmap <f8> :TagbarToggle<CR>
     53 let g:gitgutter_enabled = 1
     54 let g:deoplete#enable_at_startup = 1
     55 imap <C-k>     <Plug>(neosnippet_expand_or_jump)
     56 smap <C-k>     <Plug>(neosnippet_expand_or_jump)
     57 xmap <C-k>     <Plug>(neosnippet_expand_target)
     58 let g:ale_haskell_ghc_options = "-dynamic"
     59 
     60 imap <expr><TAB>
     61  \ pumvisible() ? "\<C-n>" :
     62  \ neosnippet#expandable_or_jumpable() ?
     63  \    "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
     64 
     65 set completeopt-=preview
     66 
     67 if has('conceal')
     68   set conceallevel=2 concealcursor=niv
     69 endif
     70 
     71 let g:badwolf_darkgutter = 1
     72 colorscheme badwolf
     73 
     74 let g:tex_conceal = ""
     75 
     76 nmap <return> :Obsess!<CR>
     77 
     78 " General config
     79 set history=500
     80 
     81 set autoread
     82 au FocusGained,BufEnter * checktime
     83 
     84 let mapleader = " "
     85 
     86 nmap <leader>w :w!<cr>
     87 nmap <leader>s :setlocal spell!<CR>
     88 nmap <leader>h :wincmd h<CR>
     89 nmap <leader>j :wincmd j<CR>
     90 nmap <leader>k :wincmd k<CR>
     91 nmap <leader>l :wincmd l<CR>
     92 nmap <leader>t :vsplit +terminal<CR>
     93 
     94 set number
     95 set relativenumber
     96 set wildmenu
     97 set ignorecase
     98 set smartcase
     99 set hlsearch
    100 set incsearch
    101 set lazyredraw
    102 set magic
    103 syntax enable
    104 set background=dark
    105 set encoding=utf8
    106 set noswapfile
    107 set title
    108 
    109 set expandtab
    110 set smarttab
    111 set shiftwidth=8
    112 set tabstop=8
    113 set lbr
    114 set tw=80
    115 set autoindent
    116 set smartindent
    117 set wrap
    118 
    119 map <tab> :bnext<CR>
    120 map <s-tab> :bprevious<CR>
    121 map <C-t> :Explore<CR>
    122 map <f10> :buffer<space>
    123 map <C-w> :bd<CR>
    124 map <f5> :make<CR>
    125 map <f2> :set paste!<CR>
    126 
    127 autocmd BufWritePre * %s/\s\+$//e
    128 
    129 hi Normal guibg=NONE ctermbg=NONE
    130 hi NonText guibg=NONE ctermbg=NONE