Skip to content

Instantly share code, notes, and snippets.

@jeremija
Last active August 29, 2015 14:19
Show Gist options
  • Save jeremija/86fec270e7549bf608c6 to your computer and use it in GitHub Desktop.
Save jeremija/86fec270e7549bf608c6 to your computer and use it in GitHub Desktop.
My .vimrc file
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>GohuFont</string></patelt>
</pattern>
</acceptfont>
</selectfont>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
" dependency for https://github.com/junegunn/vim-plug
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf'
Plug 'scrooloose/syntastic'
Plug 'fatih/vim-go'
Plug 'terryma/vim-multiple-cursors'
Plug 'flazz/vim-colorschemes'
Plug 'Yggdroot/indentLine'
Plug 'tpope/vim-sensible'
Plug 'nvie/vim-flake8'
Plug 'ntpeters/vim-better-whitespace'
Plug 'Valloric/YouCompleteMe'
Plug 'marijnh/tern_for_vim'
Plug 'rust-lang/rust.vim'
Plug 'airblade/vim-gitgutter'
Plug 'phildawes/racer'
Plug 'elzr/vim-json'
Plug 'rdnetto/YCM-Generator', {'branch': 'stable'}
Plug 'dyng/ctrlsf.vim'
call plug#end()
syntax on
autocmd BufNewFile,BufRead *.md set syntax=markdown
filetype plugin indent on
set tabstop=4 shiftwidth=4 expandtab
set clipboard=unnamedplus
set colorcolumn=80
set wildmenu
" sane menu config
set completeopt=longest,menuone
function s:getFzfPath()
" use git repository's root instead of current path
let location = system('git rev-parse --show-cdup')
" remove \0 character from the end of the string
let location = substitute(location, '\%x00', '', 'g')
if v:shell_error
" if not a git repository, use git current path
return "ag -l -g '' ."
endif
return 'ag -l -g "" ' . location
endfunction
function CustomFZF()
let source = s:getFzfPath()
call fzf#run({"source": source, "sink": "e", "down": "20"})
endfunction
map <C-P> :call CustomFZF()<CR>
map LL :call SyntasticCheck()<CR>
map <C-F> :CtrlSF
" highlight current line
"set cursorline cursorcolumn
set cursorline
hi CursorLine cterm=NONE ctermbg=black
hi CursorColumn cterm=NONE ctermbg=black
set lazyredraw
let g:indentLine_enabled = 0
let g:indentLine_char = '|'
let g:indentLine_first_char = '|'
"let g:indentLine_leadingSpaceEnabled = 1
"let g:indentLine_leadingSpaceChar = '.'
"let g:indentLine_showFirstIndentLevel = 1
"let g:indentLine_color_term = 239
set hlsearch
let g:indentLine_color_term = 'black'
set lazyredraw
set backspace=2
let g:ycm_extra_conf_globlist = ['~/src/private/*', '~/src/linux/*', '~/src/mnlth/*', '!~/*']
" configure syntastic
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
let g:syntastic_always_populate_loc_list = 0
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_python_checkers = ['flake8']
" end syntastic config
let g:vim_json_syntax_conceal = 0
" racer
set hidden
let g:racer_cmd = $HOME."/.vim/plugged/racer/target/release/racer"
let $RUST_SRC_PATH=$HOME."/Downloads/rustc-1.0.0/src/"
colorscheme last256
! remove Caps Lock
clear lock
remove Lock = Caps_Lock
remove Shift = Caps_Lock
! add Mode_switch
keycode 66 = NoSymbol NoSymbol
keycode 66 = Mode_switch
keysym h = h H Left NoSymbol NoSymbol NoSymbol
keysym j = j J Down NoSymbol NoSymbol NoSymbol
keysym k = k K Up NoSymbol NoSymbol NoSymbol
keysym l = l L Right NoSymbol lstroke Lstroke
keysym a = a A Escape NoSymbol NoSymbol NoSymbol
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
xterm*faceName: Dina
xterm*faceSize: 8
xterm*saveLines: 10000
xterm*borderWidth: 0
!tango color scheme
xterm*background: #1d1d1d
xterm*foreground: #ffffff
xterm*color0: #1e1e1e
xterm*color1: #cc0000
xterm*color2: #4e9a06
xterm*color3: #c4a000
xterm*color4: #3465a4
xterm*color5: #75507b
xterm*color6: #0b939b
xterm*color7: #d3d7cf
xterm*color8: #555753
xterm*color9: #ef2929
xterm*color10: #8ae234
xterm*color11: #fce94f
xterm*color12: #729fcf
xterm*color13: #ad7fa8
xterm*color14: #00f5e9
xterm*color15: #eeeeec
xterm*mainMenu*background: #333333
xterm*vtMenu*background: #333333
xterm*fontMenu*foreground: #666666
xterm*vtMenu*foreground: #666666
rofi.font: Dina 6
rofi.fg: #ccc
rofi.bg: #222
rofi.width: 20
rofi.terminal: termite
rofi.ssh-client: ssh
rofi.ssh-command: {terminal} -e "{ssh-client} {host}"
rofi.run-shell-command: {terminal} -e "{cmd}"
rofi.bordercolor: #252525
rofi.highlightbg: #285577
rofi.highlightfg: #fff
!! State: bg fg bgalt hlbg hlfg
!rofi.color-normal: #222222, #cccccc, #222222, #285577, #ffffff
!rofi.color-urgent: #444444, $cccccc, #222222, #285577, #ffffff
!rofi.color-active: #333333, #cccccc, #222222, #285577, #ffffff
!! bg fg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment