Skip to content

Instantly share code, notes, and snippets.

@j1ah0ng
Last active October 28, 2019 20:50
Show Gist options
  • Save j1ah0ng/5dcc63941b789fd17da49c4fb17382c3 to your computer and use it in GitHub Desktop.
Save j1ah0ng/5dcc63941b789fd17da49c4fb17382c3 to your computer and use it in GitHub Desktop.
Disgusting and unextensible .vimrc for people who don't care about extensibility
" fix mouse
set mouse=a
set ttymouse=xterm
" folding
set foldlevel=99
set foldenable
set foldmethod=indent
nnoremap <space> za
" show lines around search
set so=7
" fix vimdiff colour fuckery
highlight! link DiffText MatchParen
" nice things
highlight Comment cterm=italic
highlight Italic cterm=italic gui=italic
hi! link markdownItalic Italic
hi! link markdownBold Bold
set tw=80
set nocompatible
syntax on
set cindent
set autochdir
set ruler
set nu
set backspace=indent,eol,start
filetype plugin indent on
set showmatch
set ignorecase
set smartcase
set hlsearch
set incsearch
set wildignorecase
set infercase
" tabs
set tabstop=4
set softtabstop=0 noexpandtab
set shiftwidth=4
set expandtab
set smarttab
" set cursor to unfuck kitty
set guicursor=n-v-c-sm:block,i-ci-ve:ver50,r-cr-o:hor50
" ALE!
map <S-f> :ALEDetail<CR>
" ale-java
let g:airline#extensions#ale#enabled = 1
let g:ale_open_list = 1
let g:ale_java_javac_classpath = '.'
let g:ale_java_javac_options = '--module-path=/usr/lib/jvm/javafx-sdk-12.0.1/lib --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web'
" ale-python
let g:ale_python_auto_pipenv = 1
" deoplete
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_ignore_case = 1
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
" airline
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
let g:airline#extensions#tabline#enabled = 0
let g:airline#extensions#tabline#show_buffers = 0
" setup nerdtree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
map <C-n> :NERDTreeToggle<CR>
" plug plugins
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'arcticicestudio/nord-vim'
Plug 'dense-analysis/ale'
Plug 'scrooloose/nerdtree'
Plug 'reedes/vim-pencil'
Plug 'ruanyl/coverage.vim'
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
call deoplete#custom#option('sources', {
\ '_': ['ale', 'buffer', 'around'],
\})
let g:airline_theme='nord'
" text editing specifics
au BufRead,BufNewFile *.txt,*.tex,*.md set wrap linebreak nolist textwidth=0 wrapmargin=0 nocindent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment