Skip to content

Instantly share code, notes, and snippets.

@halivert
Last active January 5, 2018 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halivert/b762eadb9afcf3c853697429228fc1df to your computer and use it in GitHub Desktop.
Save halivert/b762eadb9afcf3c853697429228fc1df to your computer and use it in GitHub Desktop.
Linux vimrc
set nocompatible
so ~/.vim/plugins.vim
set showcmd
set rnu
syntax on
let mapleader = ','
set path+=**
set splitbelow
set splitright
set autoindent
set expandtab
set sw=2
set softtabstop=2
set ruler
set wrap
set wildmenu
set hlsearch
set diffopt=vertical
let g:PHP_removeCRwhenUnix=1
colo solarized
nnoremap Q <nop>
nmap <Leader>ev :tabedit $MYVIMRC<cr>
nmap <Leader><space> :nohlsearch<cr>
nmap <Leader>es :UltiSnipsEdit<cr>
nmap <Leader>y "+y
nmap <Leader>p "+p
vnoremap <Leader>y "+y
vnoremap <Leader>p "+p
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
cmap w!! w !sudo tee > /dev/null %
if (exists('+colorcolumn'))
set colorcolumn=100
highlight ColorColumn ctermbg=8
endif
call plug#begin('~/.vim/plugged')
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'Shougo/denite.nvim'
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdtree'
Plug 'bronson/vim-trailing-whitespace'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'Valloric/YouCompleteMe'
Plug 'ervandew/supertab'
" Colorscheme
" --- Haskell
Plug 'yogsototh/haskell-vim'
Plug 'enomsg/vim-haskellConcealPlus'
Plug 'eagletmt/ghcmod-vim'
Plug 'eagletmt/neco-ghc'
Plug 'Twinside/vim-hoogle'
Plug 'pbrisbin/html-template-syntax'
Plug 'craigemery/vim-autotag'
Plug 'burnettk/vim-angular'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
" Snippets
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'mxw/vim-jsx'
Plug 'pangloss/vim-javascript'
" Laravel
Plug 'jwalton512/vim-blade'
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-projectionist'
Plug 'noahfrederick/vim-composer'
Plug 'noahfrederick/vim-laravel'
" PHP
Plug '2072/PHP-Indenting-for-VIm'
" Mustache
Plug 'mustache/vim-mustache-handlebars'
call plug#end()
filetype plugin indent on
nnoremap <space><space> :split<cr> :<C-u>Unite -start-insert file_rec/async<cr>
:nnoremap <space>r <Plug>(unite_restart)
" ------------
" Latex
" ------------
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
command! -nargs=1 Silent
\ | execute ':silent !'.<q-args>
\ | execute ':redraw!'
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_cpp_compiler_options = "`pkg-config gtkmm-3.0 --libs --cflags`"
let g:syntastic_html_tidy_ignore_errors = ['proprietary attribute "ng-', 'trimming empty \<']
let g:syntastic_ignore_files = ['\m\c\.xml$', '\m\c\.ts$']
let g:syntastic_mode_map = { 'passive_filetypes': ['python'] }
let NERDTreeShowHidden=1
" Snippets
let g:UltiSnipsUsePythonVersion = 3
let g:UltiSnipsExpandTrigger="<C-j>"
let g:UltiSnipsJumpForwardTrigger="<TAB>"
let g:UltiSnipsJumpBackwardTrigger="<S-TAB>"
let g:UltiSnipsSnippetDirectories=['/home/hali/.vim/snippets-used']
let g:jsx_ext_required = 0
let g:UltiSnipsEditSplit="vertical"
" YCM
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" Mustache
let mustache_abreviations = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment