Last active
April 5, 2018 21:20
-
-
Save FrenchBen/ed4be7e67705f971a21258c62b79a026 to your computer and use it in GitHub Desktop.
Current vim pluggins and settings
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
"Begin Vundle VimBundle setup--------------------- | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
" set rtp+=~/.vim/bundle/Vundle.vim | |
" call vundle#begin() | |
call plug#begin('~/.vim/plugged') | |
" let Vundle manage Vundle, required | |
" Plug 'VundleVim/Vundle.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'tpope/vim-fugitive' | |
Plug 'mhartington/oceanic-next' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'fatih/vim-go' | |
Plug 'tpope/vim-commentary' | |
Plug 'tpope/vim-surround' | |
" All of your Plugins must be added before the following line | |
call plug#end() | |
" call vundle#end() " required | |
filetype plugin indent on " required | |
" Airline VIM Plugin | |
let g:airline_powerline_fonts = 1 | |
"let g:airline#extensions#hunks#enabled=0 | |
"let g:airline#extensions#branch#enabled=1 | |
let g:airline_right_sep = ' ' | |
let g:airline_right_alt_sep = '|' | |
let g:airline_theme= 'oceanicnext' | |
"End VIMBundle Scripts------------------------- | |
if $TERM == "xterm-256color" | |
set t_Co=256 | |
endi | |
"let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
" Theme | |
syntax enable | |
colorscheme OceanicNext | |
set background=dark | |
" 1 tab == 2 spaces | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
" Use tabs instead of spaces | |
set noexpandtab | |
" Use spaces instead of tabs | |
"set expandtab | |
" Auto indent | |
set ai | |
" Smart indent | |
set si | |
" set number | |
set showcmd " Show (partial) command in status line. | |
set showmatch " Show matching brackets. | |
set number " Show the line numbers on the left side. | |
set ruler " Show the line and column numbers of the cursor. | |
set showmatch " Show matching brackets. | |
set list " Show indent character | |
set listchars=tab:»-,extends:›,precedes:‹,nbsp:·,trail:· " Set indent characters | |
" Search stuff | |
set incsearch " search as characters are entered | |
set hlsearch " highlight matches | |
set ignorecase " Make searching case insensitive | |
set smartcase " ... unless the query has capital letters. | |
" Set new leader | |
let mapleader = "\<Space>" | |
" Open Files | |
nnoremap <Leader>o :Files<CR> | |
" turn off search highlight | |
" nnoremap <space> :nohlsearch<CR> | |
nnoremap <Leader><Leader> :nohlsearch<CR> | |
" inoremap <S-Tab> <C-V><Tab> | |
" | |
" GO Mappings | |
nnoremap <Leader>b :GoBuild<CR> | |
nnoremap <Leader>d :GoDef<CR> | |
nnoremap <Leader>m :GoMetaLinter<CR> | |
nnoremap <Leader>f :GoFmt<CR> | |
nnoremap <Leader>i :GoImports<CR> | |
" Use s to do a find and replace on current word | |
nnoremap <Leader>s :%s/\<<C-r><C-w>\>/ | |
" Go highlights | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_build_constraints = 1 | |
let g:go_snippet_case_type = "camelcase" | |
" More natural splits | |
set splitbelow " Horizontal split below current. | |
set splitright " Vertical split to right of current. | |
" Disable visual mode from mouse | |
set mouse-=a | |
" Add goimports on save | |
let g:go_fmt_command = "goimports" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment