Skip to content

Instantly share code, notes, and snippets.

@phako
Last active May 27, 2019 08:44
Show Gist options
  • Save phako/3a6e3d441ea836a4c4d5276031f0d83e to your computer and use it in GitHub Desktop.
Save phako/3a6e3d441ea836a4c4d5276031f0d83e to your computer and use it in GitHub Desktop.
Portable vimrc
if &compatible
set nocompatible
endif
set runtimepath+=~/.vim/bundle/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.vim/dein/plugins')
call dein#begin('~/.vim/dein/plugins')
call dein#add('~/.vim/bundle/repos/github.com/Shougo/dein.vim')
call dein#add('vim-airline/vim-airline')
call dein#add('majutsushi/tagbar')
call dein#add('ludovicchabant/vim-gutentags')
call dein#add('airblade/vim-gitgutter')
call dein#add('maxboisvert/vim-simple-complete')
call dein#add('tpope/vim-fugitive')
call dein#add('jlanzarotta/bufexplorer')
call dein#add('scrooloose/nerdtree')
call dein#add('Xuyuanp/nerdtree-git-plugin')
call dein#add('igankevich/mesonic')
call dein#add('arrufat/vala.vim')
call dein#add('vim-syntastic/syntastic')
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
syntax enable
colorscheme peachpuff
set background=dark
set listchars=tab:▷·,trail:·
set list
set ruler
set noet
set ts=4
set sw=4
set et
scriptencoding utf-8
set encoding=utf-8
function! ClearTraceFile()
:%s/<[a-zA-Z0-9]*@[a-zA-Z0-9]*>DATA:.*\n//
:%s/<[a-zA-Z0-9]*@[a-zA-Z0-9]*>(.*)DATA:.*\n//
:%s/^ *\n//
endfunction
" Breaks MesonInit
" autocmd BufRead *.vala,*.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
au BufRead,BufNewFile *.vala,*.vapi setfiletype vala
set noautoread
au FocusGained * :checktime
let g:gutentags_ctags_executable_vala ="/usr/bin/anjuta-tags"
let g:tagbar_ctags_bin = "anjuta-tags"
let g:easytags_cmd = "/usr/bin/anjuta-tags"
" Disable completion on tab
let g:vsc_tab_complete = 0
nnoremap <silent> <Leader>Tn :NERDTreeToggle<CR>
nnoremap <silent> <Leader>Tt :Tagbar<CR>
set foldlevelstart=20
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_c_checkers = []
let g:syntastic_vala_checkers = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment