Skip to content

Instantly share code, notes, and snippets.

@codexetreme
Created November 19, 2016 15:40
Show Gist options
  • Save codexetreme/86d1e936cd0ac1c750da1a173caa09d7 to your computer and use it in GitHub Desktop.
Save codexetreme/86d1e936cd0ac1c750da1a173caa09d7 to your computer and use it in GitHub Desktop.
vim config file
set nocompatible " be iMproved, required
filetype off " required
set tabstop=4
set autochdir
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
let g:ycm_global_ycm_extra_conf = '/home/codexetreme/Desktop/Source/.ycm_extra_conf.py'
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'flazz/vim-colorschemes'
Plugin 'scrooloose/nerdtree'
Plugin 'itchyny/lightline.vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
"Plugin 'garbas/vim-snipmate'
Bundle 'ervandew/supertab'
Plugin 'SirVer/ultisnips'
"Plugin 'honza/vim-snippets'
Plugin 'jiangmiao/auto-pairs'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'sheerun/vim-polyglot'
" 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
set background=dark
"other favourites :- codeschool, peaksea
colorscheme onedark
autocmd vimenter * NERDTree source
autocmd vimenter * wincmd p
let g:lightline = {
\ 'colorscheme': 'solarized',
\ }
let NERDTreeIgnore = ['\.out','\.o','.sh']
let g:NERDTreeWinPos = "right"
"map <C-\> :NERDTreeToggle<CR>
map <C-\> :NERDTreeToggle source<CR>
noremap <C-Tab> :tabnext<CR>
noremap <C-S-Tab> :tabprevious<CR>
inoremap <C-d> <Esc>Ypki
inoremap <C-Down> <Esc>ddpi
inoremap <C-Up> <Esc>ddkPi
set guioptions-=T
"set whichwrap+=<,>,h,l,[,]
set tabstop=4
set shiftwidth=4
set number
set laststatus=2
set completeopt-=preview
set nobackup
set cursorline
"let g:UltiSnipsExpandTrigger="<CR>"
"let g:UltiSnipsSnippetDirectories = ['~/.vim/UltiSnips']
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<Tab>"
let g:UltiSnipsJumpForwardTrigger = "<Tab>"
let g:UltiSnipsJumpBackwardTrigger = "<S-Tab>"
set nocompatible " be iMproved, required
filetype off " required
set tabstop=4
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
let g:ycm_global_ycm_extra_conf = '/home/codexetreme/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'flazz/vim-colorschemes'
Plugin 'scrooloose/nerdtree'
Plugin 'itchyny/lightline.vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
"Plugin 'garbas/vim-snipmate'
Bundle 'ervandew/supertab'
Plugin 'SirVer/ultisnips'
"Plugin 'honza/vim-snippets'
Plugin 'jiangmiao/auto-pairs'
Plugin 'sheerun/vim-polyglot'
Plugin 'ctrlpvim/ctrlp.vim'
" 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
set background=dark
colorscheme onedark
autocmd vimenter * NERDTree source
autocmd vimenter * wincmd p
let g:lightline = {
\ 'colorscheme': 'solarized',
\ }
let NERDTreeIgnore = ['\.out','\.o']
let g:NERDTreeWinPos = "right"
"map <C-\> :NERDTreeToggle<CR>
map <C-\> :NERDTreeToggle source<CR>
noremap <C-Tab> :tabnext<CR>
noremap <C-S-Tab> :tabprevious<CR>
inoremap <C-d> <Esc>Ypki
inoremap <C-Down> <Esc>ddpi
inoremap <C-Up> <Esc>ddkPi
set guioptions-=T
set whichwrap+=<,>,h,l,[,]
set tabstop=4
set number
set laststatus=2
set completeopt-=preview
"let g:UltiSnipsExpandTrigger="<CR>"
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<Tab>"
let g:UltiSnipsJumpForwardTrigger = "<Tab>"
let g:UltiSnipsJumpBackwardTrigger = "<S-Tab>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment