Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fabiotatsuo/23e4774ada5593f9b9860f79506cda69 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/23e4774ada5593f9b9860f79506cda69 to your computer and use it in GitHub Desktop.
init.vim
let g:mapleader=' '
syntax on
set clipboard=unnamed
set cursorline
set encoding=utf-8
set guifont= "Menlo:12"
set history=1000 "Store :cmdline history
set laststatus=2
set mouse=a
set number " line numbering
set title
set hlsearch " Highlight search results
set ignorecase " Ignore case when searching
set incsearch " Incremental search, search as you type
set smartcase " Ignore case when searching lowercase
call plug#begin('~/.config/nvim/plugged')
" Plug 'awetzel/elixir.nvim', { 'do': 'yes \| ./install.sh' }
Plug 'c-brenn/phoenix.vim'
Plug 'colepeters/spacemacs-theme.vim'
Plug 'elixir-lang/vim-elixir'
Plug 'kien/ctrlp.vim'
Plug 'majutsushi/tagbar'
Plug 'neomake/neomake'
Plug 'powerman/vim-plugin-AnsiEsc'
" Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'sheerun/vim-polyglot'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'slashmili/alchemist.vim'
Plug 'thinca/vim-ref'
Plug 'tpope/vim-projectionist' " required for some navigation features
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-syntastic/syntastic'
" Initialize plugin system
call plug#end()
" PLUGS
" Alchemist
" let g:alchemist_tag_disable = 1
" Ctrlp
nnoremap <Leader>o :CtrlP<CR> " Open file menu
nnoremap <Leader>b :CtrlPBuffer<CR> " Open buffer menu
nnoremap <Leader>f :CtrlPMRUFiles<CR> " Open most recently used files
" Deoplete
let g:deoplete#enable_at_startup = 1
let g:deoplete#disable_auto_complete = 1
inoremap <silent><expr> <TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : deoplete#mappings#manual_complete()
function! s:check_back_space() abort "{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}}
" NERDTree
let NERDTreeShowHidden=1
nnoremap tt :NERDTreeToggle<cr>
" Spacemacs Theme
if (has("termguicolors"))
set termguicolors
endif
set background=dark
colorscheme spacemacs-theme
" 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 = 1
let g:syntastic_check_on_wq = 0
" Tagbar
let g:tagbar_type_elixir = {
\ 'ctagstype' : 'elixir',
\ 'kinds' : [
\ 'f:functions',
\ 'functions:functions',
\ 'c:callbacks',
\ 'd:delegates',
\ 'e:exceptions',
\ 'i:implementations',
\ 'a:macros',
\ 'o:operators',
\ 'm:modules',
\ 'p:protocols',
\ 'r:records',
\ 't:tests'
\ ]
\ }
" vim-airline
" let g:airline_theme='jellybeans'
let g:airline_powerline_powerline_fonts = 1
let g:airline#extensions#branch#displayed_head_limit = 17
set laststatus=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment