Skip to content

Instantly share code, notes, and snippets.

@barambani
Last active June 29, 2020 18:55
Show Gist options
  • Save barambani/94dc051c8d1a5178f6ed6de8e34703b5 to your computer and use it in GitHub Desktop.
Save barambani/94dc051c8d1a5178f6ed6de8e34703b5 to your computer and use it in GitHub Desktop.
My current .vimrc file
" Initialize plugin system
call plug#begin('~/.vim/plugged')
Plug 'rizzatti/dash.vim'
Plug 'derekwyatt/vim-scala'
Plug 'vim-syntastic/syntastic'
Plug 'kien/ctrlp.vim'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ervandew/supertab'
Plug 'easymotion/vim-easymotion'
Plug 'vim-scripts/ZoomWin'
Plug 'kien/rainbow_parentheses.vim'
Plug 'airblade/vim-gitgutter'
Plug 'Raimondi/delimitMate'
Plug 'Shougo/neocomplete.vim'
Plug 'vim-syntastic/syntastic'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-sensible'
Plug 'limadm/vim-blues'
Plug 'idris-hackers/idris-vim'
Plug 'stephpy/vim-yaml'
Plug 'vmchale/dhall-vim'
Plug 'jalvesaq/Nvim-R'
Plug 'neovimhaskell/haskell-vim'
Plug 'LnL7/vim-nix'
Plug 'zivyangll/git-blame.vim'
call plug#end()
" Vim settings
syntax on
filetype plugin indent on
set number
set clipboard=unnamed
" NERDTree settings
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <C-t> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
" NERDTree git settings
let g:NERDTreeChDirMode = 2
let g:NERDTreeShowIgnoredStatus = 1
" Syntastic settings
let g:syntastic_scala_checkers = ['fsc','Scalastyle']
let g:syntastic_aggregate_errors = 1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_loc_list_height = 5
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_error_symbol = '❌'
let g:syntastic_style_error_symbol = '⁉️'
let g:syntastic_warning_symbol = '⚠️'
let g:syntastic_style_warning_symbol = '💩'
highlight link SyntasticErrorSign SignColumn
highlight link SyntasticWarningSign SignColumn
highlight link SyntasticStyleErrorSign SignColumn
highlight link SyntasticStyleWarningSign SignColumn
let g:syntastic_ignore_files = ['\m\c\.h$', '\m\.sbt$']
" Ctrlp settings
let g:ctrlp_working_path_mode = 'rw'
let g:ctrlp_max_files = 0
let g:ctrlp_max_depth = 100
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.tar.gz,*.jar,*.class,*.xml,*.xml.properties,*/out,*.xsl,*.css,*.cache,*.sjsir,*.js,*.js.*
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
colorscheme blues
" idris settings
let g:idris_indent_if = 3
let g:idris_indent_case = 5
let g:idris_indent_let = 4
let g:idris_indent_where = 6
let g:idris_indent_do = 3
let g:idris_indent_rewrite = 8
" Haskell
syntax on
filetype plugin indent on
let g:haskell_classic_highlighting = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment