Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- filetype off
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- Plugin 'gmarik/Vundle.vim'
- Plugin 'nsf/gocode', {'rtp': 'vim/'}
- Plugin 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
- Plugin 'scrooloose/nerdtree'
- Plugin 'Xuyuanp/nerdtree-git-plugin'
- Plugin 'ctrlpvim/ctrlp.vim'
- Plugin 'dyng/ctrlsf.vim'
- Plugin 'tpope/vim-fugitive'
- Plugin 'ryanoasis/vim-devicons'
- Plugin 'sebdah/vim-delve'
- Plugin 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
- Plugin 'zchee/deoplete-go', { 'do': 'make'}
- Plugin 'flazz/vim-colorschemes'
- Bundle 'jistr/vim-nerdtree-tabs'
- " 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
- let g:deoplete#enable_at_startup = 1
- set number
- set relativenumber
- set clipboard=unnamedplus
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- "colors
- colorscheme gruvbox
- set background=dark
- let g:gruvbox_contrast_dark = "hard"
- filetype plugin on
- syntax on
- "enabling script which closing brackets and quotes by default and ignoring
- "pressing closing bracket or quote if cursor is under closing bracket or quote
- let g:brackets = 1
- let g:braces = 1
- let g:double_quotes = 1
- let g:single_quotes = 1
- let g:square_brackets = 1
- source $HOME/.vim/syntax/brackets.vim
- source $HOME/.vim/syntax/quotes.vim
- "bindings
- noremap <F2> :NERDTreeFocusToggle<CR>
- noremap <F3> :NERDTreeTabsToggle<CR>
- map <C-S-f> <ESC>:CtrlSF
- tnoremap <Esc> <C-\><C-n>
- noremap <A-t> :below 15sp term://zsh <CR>i
- tnoremap <A-h> <C-\><C-N><C-w>h
- tnoremap <A-j> <C-\><C-N><C-w>j
- tnoremap <A-k> <C-\><C-N><C-w>k
- tnoremap <A-l> <C-\><C-N><C-w>l
- inoremap <A-h> <C-\><C-N><C-w>h
- inoremap <A-j> <C-\><C-N><C-w>j
- inoremap <A-k> <C-\><C-N><C-w>k
- inoremap <A-l> <C-\><C-N><C-w>l
- nnoremap <A-h> <C-w>h
- nnoremap <A-j> <C-w>j
- nnoremap <A-k> <C-w>k
- nnoremap <A-l> <C-w>l
- inoremap <silent><expr> <TAB>
- \ pumvisible() ? "\<C-n>" :
- \ <SID>check_back_space() ? "\<TAB>" :
- \ deoplete#mappings#manual_complete()
- function! s:check_back_space() abort "{{{
- let col = col('.') - 1
- return !col || getline('.')[col - 1] =~ '\s'
- endfunction"}}}
- "Go highligting
- let g:go_auto_type_info = 1
- let g:go_highlight_extra_types = 1
- let g:go_highlight_types = 1
- let g:go_highlight_functions = 1
- let g:go_highlight_function_arguments = 1
- let g:go_highlight_function_calls = 1
- "statusline
- set statusline=
- set statusline+=%#PrimaryBlock#
- set statusline+=%#SecondaryBlock#
- set statusline+=%{MyGitBranch()}
- set statusline+=%#Blanks#
- set statusline+=\ %t\
- set statusline+=%(%m%)
- set statusline+=%=
- set statusline+=%#SecondaryBlock#
- set statusline+=\ Ln
- set statusline+=\ %l
- set statusline+=,Col
- set statusline+=\ %c\
- set statusline+=%#PrimaryBlock#
- set statusline+=\ %Y\
- function! MyGitBranch()
- return winwidth(0) > 30 && fugitive#head() != '' ? (' ' . fugitive#head()) : ''
- endfunction
- function! MyFiletype()
- return winwidth(0) > 30 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() : '?') : ''
- endfunction
- function! MyFileformat()
- return winwidth(0) > 30 ? (WebDevIconsGetFileFormatSymbol()) : ''
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement