Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if &compatible
- set nocompatible
- endif
- set runtimepath+=~/.config/nvim/repos/github.com/Shougo/dein.vim
- if dein#load_state('~/.config/nvim/plugins')
- call dein#begin('~/.config/nvim/plugins')
- call dein#add('~/.config/nvim/repos/github.com/Shougo/dein.vim')
- call dein#add('Shougo/deoplete.nvim')
- call dein#add('brooth/far.vim')
- call dein#add('Shougo/unite.vim')
- call dein#add('altercation/vim-colors-solarized')
- call dein#add('Shougo/denite.nvim')
- call dein#add('bfredl/nvim-ipy')
- call dein#add('tpope/vim-fugitive')
- call dein#add('ayu-theme/ayu-vim')
- call dein#add('reedes/vim-colors-pencil')
- call dein#add('vim-airline/vim-airline')
- call dein#add('justmao945/vim-clang')
- call dein#add('neovim/python-client')
- call dein#add('zchee/deoplete-clang')
- call dein#add('ekalinin/Dockerfile.vim')
- call dein#add('junegunn/gv.vim')
- call dein#end()
- call dein#save_state()
- endif
- filetype plugin indent on
- syntax enable
- let g:deoplete#enable_at_startup = 1
- set termguicolors
- colorscheme pencil
- set background=light
- let g:airline_theme = 'pencil'
- let g:airline_section_z = '%l:%c'
- " IndentLine {{
- let g:indentLine_char = ''
- let g:indentLine_first_char = ''
- let g:indentLine_showFirstIndentLevel = 1
- let g:indentLine_setColors = 0
- " }}
- call denite#custom#map(
- \ 'insert',
- \ '<C-j>',
- \ '<denite:move_to_next_line>',
- \ 'noremap'
- \)
- call denite#custom#map(
- \ 'insert',
- \ '<C-k>',
- \ '<denite:move_to_previous_line>',
- \ 'noremap'
- \)
- let mapleader=","
- " Scrolling options
- set scrolljump=5
- set scrolloff=3
- " F*ck backups and swap files
- set nobackup
- set noswapfile
- set nowritebackup
- set noshowmatch " Do not show matching brackets by flickering
- set cursorline
- set nocursorcolumn
- set lazyredraw " Wait to redraw "
- set incsearch " Shows the match while typing
- set hlsearch " Highlight found searches
- set ignorecase " Search case insensitive...
- set smartcase " ... but not when search pattern contains upper case characters
- set ttyfast
- set nowrap
- " folding based on language
- set foldmethod=syntax
- set noerrorbells " No beeps
- set backspace=indent,eol,start " Makes backspace key more powerful.
- set showcmd " Show me what I'm typing
- set showmode " Show current mode.
- set ruler
- set number
- set history=1000
- set mouse=a
- set splitright " Split vertical windows right to the current windows
- set splitbelow " Split horizontal windows below to the current windows
- set encoding=utf-8 " Set default encoding to UTF-8
- set autowrite " Automatically save before :next, :make etc.
- set autoread " Automatically reread changed files without asking me anything
- set laststatus=2
- set fileformats=unix,dos,mac " Prefer Unix over Windows over OS 9 formats
- let mapleader = ","
- let g:mapleader = ","
- " Easy indents
- vnoremap < <gv
- vnoremap > >gv
- nmap < <<
- nmap > >>
- " Remove search highlight
- nnoremap <leader><space> :nohlsearch<CR>
- " Better split switching
- map <C-j> <C-W>j
- map <C-k> <C-W>k
- map <C-h> <C-W>h
- map <C-l> <C-W>l
- nmap <leader>) :tabn<CR>
- nmap <leader>( :tabp<CR>
- nmap ¬ :tabn<CR>
- nmap ˙ :tabp<CR>
- nnoremap <tab> <c-w>w
- au BufNewFile,BufRead *.vim setlocal noet ts=2 sw=2 sts=2
- au BufNewFile,BufRead *.txt setlocal noet ts=4 sw=4
- au BufNewFile,BufRead *.md setlocal noet ts=4 sw=4
- augroup filetypedetect
- au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
- au BufNewFile,BufRead .nginx.conf*,nginx.conf* setf nginx
- augroup END
- au FileType nginx setlocal noet ts=4 sw=4 sts=4
- " Go settings
- au BufNewFile,BufRead *.go setlocal noet ts=4 sw=4 sts=4
- " Dockerfile
- au BufNewFile,BufRead *.yml setlocal noet shiftwidth=2 expandtab
- " c/c++ settings
- au BufNewFile,BufRead *.c,*.cpp,*.h,*.hcc setl noet ts=4 sw=4 sts=4
- " coffeescript settings
- autocmd BufNewFile,BufReadPost *.coffee setl shiftwidth=2 expandtab
- " js settings
- autocmd BufNewFile,BufReadPost *.js,*.json,*.html,*.css,*.scss setl shiftwidth=2 expandtab
- " scala settings
- autocmd BufNewFile,BufReadPost *.scala setl shiftwidth=2 expandtab
- " lua settings
- autocmd BufNewFile,BufRead *.lua setlocal noet ts=4 sw=4 sts=4
- " Wildmenu completion {{{
- set wildmenu
- " set wildmode=list:longest
- set wildmode=list:full
- set wildignore+=.hg,.git,.svn " Version control
- set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files
- set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images
- set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest " compiled object files
- set wildignore+=*.spl " compiled spelling word lists
- set wildignore+=*.sw? " Vim swap files
- set wildignore+=*.DS_Store " OSX bullshit
- set wildignore+=*.luac " Lua byte code
- set wildignore+=migrations " Django migrations
- set wildignore+=go/pkg " Go static files
- set wildignore+=go/bin " Go bin files
- set wildignore+=go/bin-vagrant " Go bin-vagrant files
- set wildignore+=*.pyc " Python byte code
- set wildignore+=*.orig " Merge resolution files
- let g:deoplete#sources#clang#libclang_path = "/usr/lib/libclang.so"
- let g:deoplete#sources#clang#clang_header = "/usr/lib/clang/6.0.0/include/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement