Created
October 14, 2016 22:17
-
-
Save GregSutcliffe/5e8685b87d49fb1f761a8f201b845d3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" NeoVim Config | |
" Useful for debugging Vundle errors | |
" set shell=bash | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.config/nvim/bundle/Vundle.vim | |
" call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
call vundle#begin('~/.config/nvim/bundle') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Dependencies | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'tomtom/tlib_vim' | |
" Git Plugins | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'mattn/gist-vim' | |
Plugin 'tpope/vim-fugitive' | |
"Plugin 'Xuyuanp/nerdtree-git-plugin' | |
" Coding | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'ervandew/supertab' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'godlygeek/tabular' | |
Plugin 'honza/vim-snippets' | |
Plugin 'rking/ag.vim' | |
Plugin 'rodjek/vim-puppet' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'taglist.vim' | |
Plugin 'tpope/vim-abolish' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-repeat' | |
Plugin 'tpope/vim-surround' | |
Plugin 'Yggdroot/indentLine' | |
" Theming / Colours / Display | |
Plugin 'mhartington/oceanic-next' | |
Plugin 'vim-airline/vim-airline' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Plugins to look at later? | |
" vim-dbext | |
" vim-easyclip | |
" vim-tags | |
" Set leader first | |
let mapleader = '\' | |
" Display Config | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
" Theme / display | |
syntax enable | |
colorscheme OceanicNext | |
set background=dark | |
set colorcolumn=100 " highlight the 85th column | |
set relativenumber " absolute lines numbers are in the statusbar anyway | |
set list lcs=tab:\|\ " mark tabs with | | |
let g:airline_theme='oceanicnext' | |
" Split window handling | |
nnoremap <leader>w <C-w>v<C-w>l | |
nnoremap <C-up> <C-w><up> | |
nnoremap <C-down> <C-w><down> | |
nnoremap <C-left> <C-w><left> | |
nnoremap <C-right> <C-w><right> | |
nnoremap <S-C-left> <C-w>< | |
nnoremap <S-C-right> <C-w>> | |
" map <leader><space> to disable highlight easily | |
nnoremap <silent><leader><space> :noh<cr> | |
" map :W to 'sudo save file' | |
command W w !sudo tee % >/dev/null | |
" unmap F1 - stupid help key | |
inoremap <F1> <ESC> | |
nnoremap <F1> <ESC> | |
vnoremap <F1> <ESC> | |
" map <leader>W to remove trailing whitespace from file | |
highlight RedundantWhitespace ctermbg=red | |
match RedundantWhitespace /\s\+$\| \+\ze\t/ | |
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> | |
" reformats entire file based on current indent/syntax settings, | |
" then resets cursor to last position | |
noremap <silent><leader>k gg=G`` | |
" Use ACK | |
set grepprg=ack\ --no-group\ --column\ $* | |
set grepformat=%f:%l:%c:%m | |
" 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 | |
" Gist | |
let g:gist_open_browser_after_post = 1 | |
" Taglist | |
nnoremap <f8> :TlistToggle<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment