Skip to content

Commit

Permalink
Vim
Browse files Browse the repository at this point in the history
  • Loading branch information
fujimura committed Nov 18, 2015
1 parent 59f0b11 commit 994aa16
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions .vimrc
Expand Up @@ -16,9 +16,11 @@ Plugin 'gmarik/Vundle.vim'
" Languages
Plugin 'Twinside/vim-hoogle'
Plugin 'dag/vim2hs'
Plugin 'itchyny/vim-haskell-indent'
Plugin 'digitaltoad/vim-jade'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'fatih/vim-go'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'juvenn/mustache.vim'
Plugin 'kchmck/vim-coffee-script'
Plugin 'mintplant/vim-literate-coffeescript'
Expand All @@ -31,6 +33,9 @@ Plugin 'vim-pandoc/vim-markdownfootnotes'
Plugin 'vim-pandoc/vim-pandoc'
Plugin 'vim-ruby/vim-ruby'
Plugin 'vim-scripts/bnf.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'elixir-lang/vim-elixir'
Plugin 'eagletmt/ghcmod-vim'

" Vim
Plugin 'Shougo/vimproc'
Expand All @@ -47,6 +52,9 @@ Plugin 'tpope/vim-vinegar'
Plugin 'tsaleh/vim-align'
Plugin 'tyru/open-browser.vim'

" NeoVim
Plugin 'benekastah/neomake'

" Git
Plugin 'tpope/vim-fugitive'

Expand Down Expand Up @@ -100,7 +108,6 @@ set scrolloff=3
set display=lastline

colorscheme pyte
set background=light

" -----------------------------------------------------------------------------
" Remaps
Expand Down Expand Up @@ -205,6 +212,7 @@ function! s:haskell()
command! Stylish %!stylish-haskell
endf
autocmd BufRead,BufNewFile *.hs call s:haskell()
let g:syntastic_haskell_checkers = ['hlint']

" Markdown
function! s:markdown()
Expand All @@ -216,10 +224,19 @@ autocmd BufRead,BufNewFile *.md call s:markdown()
" HTML
autocmd BufRead,BufNewFile *.css,*.sass,*.scss,*.html,*.hbs,*.handlebars setlocal iskeyword+=-

" JavaScript
let g:syntastic_javascript_checkers=['eslint']

au BufNewFile,BufRead *.es6 setf javascript
autocmd BufRead,BufNewFile *.jsx set filetype=javascript.jsx
autocmd BufRead,BufNewFile *.jsx.erb set filetype=javascript.jsx
let g:jsx_ext_required = 0

" Go
if $GOROOT != ''
set rtp+=$GOROOT/misc/vim
endif

" -----------------------------------------------------------------------------
" Plugin settings
" -----------------------------------------------------------------------------
Expand Down Expand Up @@ -253,3 +270,22 @@ let g:ctrlp_user_command = {
\ },
\ 'fallback': 'find %s -type f'
\ }


" -----------------------------------------------------------------------------
" NeoVim settings
" -----------------------------------------------------------------------------

set timeout
set timeoutlen=750
set ttimeoutlen=250
set mouse = ""

" NeoVim handles ESC keys as alt+key, set this to solve the problem
if has('nvim')
set ttimeout
set ttimeoutlen=0
endif
let $NVIM_TUI_ENABLE_TRUE_COLOR=1

let g:rehash256 = 1

0 comments on commit 994aa16

Please sign in to comment.