Skip to content

Instantly share code, notes, and snippets.

@Grafikart Grafikart/.spacevim
Last active Aug 24, 2017

Embed
What would you like to do?
.spacevim
" Use exclude option if you don't want the full Layer,
" e.g., Layer 'better-defaults', { 'exclude': 'itchyny/vim-cursorword' }
function! Layers()
" Default layers, recommended!
Layer 'fzf'
Layer 'unite'
Layer 'airline'
Layer 'better-defaults'
Layer 'syntax-checking'
Layer 'better-motion'
Layer 'auto-completion'
Layer 'ycmd'
Layer 'git'
Layer 'programming'
Layer 'text-align'
Layer 'elixir'
Layer 'go'
Layer 'html'
Layer 'javascript'
Layer 'typescript'
endfunction
" Put your private plugins here.
function! UserInit()
" Space has been set as the default leader key,
" if you want to change it, uncomment and set it here.
" let g:spacevim_leader = "<\Space>"
" let g:spacevim_localleader = ','
" Install private plugins
" Plug 'extr0py/oni'
endfunction
" Put your costom configurations here, e.g., change the colorscheme.
function! UserConfig()
let g:airline_powerline_fonts=1
" Ignore specific directory from fzf
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git --ignore node_modules --ignore vendor --ignore .vscode -g ""'
" Ouvre un fichier par rapport au dossier courant
nnoremap <Leader>o :Files<CR>
nnoremap <C-o> :Files<CR>
nnoremap <C-t> :Files<CR>
nnoremap <C-w> :bd
" Quickly open/reload vim
nnoremap <Leader>ev :split ~/.spacevim<CR>
nnoremap <Leader>sv :source $MYVIMRC<CR>
" Autocompletion
let g:ycm_auto_trigger = 1
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.