summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc82
1 files changed, 82 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..f44a447
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,82 @@
+call plug#begin('~/.vim/plugged')
+
+Plug 'bling/vim-airline'
+Plug 'ctrlpvim/ctrlp.vim'          " CtrlP is installed to support tag finding in vim-go
+Plug 'neomake/neomake'
+Plug 'tpope/vim-fugitive'
+Plug 'tpope/vim-surround'
+
+" Language
+Plug 'fatih/vim-go'                            " Go support
+Plug 'pangloss/vim-javascript'                 " JavaScript syntax highlighting
+Plug 'plasticboy/vim-markdown'                 " Markdown syntax highlighting
+Plug 'rodjek/vim-puppet'                       " Puppet syntax highlighting
+Plug 'tclh123/vim-thrift'                      " Thrift syntax highlighting
+Plug 'zchee/deoplete-go', { 'do': 'make'}      " Go auto completion
+Plug 'zchee/deoplete-jedi'                     " Go auto completion
+
+" Initialize plugin system
+call plug#end()
+
+filetype plugin indent on
+
+" preferences
+set autoindent                    " take indent for new line from previous line
+set autoread                      " reload file if the file changes on the disk
+set autowrite                     " write when switching buffers
+set autowriteall                  " write on :quit
+set completeopt-=preview          " remove the horrendous preview window
+set cursorline                    " highlight the current line for the cursor
+set encoding=utf-8
+set expandtab                     " expands tabs to spaces
+set formatoptions=tcqronj         " set vims text formatting options
+set list                          " show trailing whitespace
+set listchars=tab:\|\ ,trail:.
+set noerrorbells                  " No bells!
+set noswapfile                    " disable swapfile usage
+set novisualbell                  " I said, no bells!
+set nowrap
+set ruler
+set shiftwidth=4
+set smartindent                   " enable smart indentation
+set softtabstop=2
+set tabstop=2
+set title                         " let vim set the terminal title
+
+" Searching
+set incsearch                     " move to match as you type the search query
+set hlsearch                      " disable search result highlighting
+map <leader>c :nohlsearch<cr>     " clear search highlights
+
+" ctrl-backspace should delete words
+imap <C-bs> <C-w>
+
+" Plugin: bling/vim-airline
+" Show status bar by default.
+set laststatus=2
+
+" Enable top tabline.
+" let g:airline#extensions#tabline#enabled = 1
+
+" Disable showing tabs in the tabline. This will ensure that the buffers are
+" what is shown in the tabline at all times.
+" let g:airline#extensions#tabline#show_tabs = 0
+
+" Enable powerline fonts.
+let g:airline_powerline_fonts = 0
+
+" Plugin: plasticboy/vim-markdown
+" Disable folding
+let g:vim_markdown_folding_disabled = 1
+
+" Auto shrink the TOC, so that it won't take up 50% of the screen
+let g:vim_markdown_toc_autofit = 1
+
+" Plugin: neomake/neomake
+" Configure signs.
+let g:neomake_error_sign   = {'text': '✖', 'texthl': 'NeomakeErrorSign'}
+let g:neomake_warning_sign = {'text': '∆', 'texthl': 'NeomakeWarningSign'}
+let g:neomake_message_sign = {'text': '➤', 'texthl': 'NeomakeMessageSign'}
+let g:neomake_info_sign    = {'text': 'ℹ', 'texthl': 'NeomakeInfoSign'}
+
+syntax off                        " let's make sure the syntax is off