Skip to content

Instantly share code, notes, and snippets.

@joepreludian
Last active December 11, 2018 19:30
Show Gist options
  • Save joepreludian/9bed6c13bf1562a2dd59b9cdccdbbc2b to your computer and use it in GitHub Desktop.
Save joepreludian/9bed6c13bf1562a2dd59b9cdccdbbc2b to your computer and use it in GitHub Desktop.
My Customizations on Neovim and Tmux #WIP
#
# Joey Customizations
#
# use vim-like keys for splits and windows
bind-key v split-window -h
bind-key s split-window -v
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
""
"" Vundle stuff
""
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
" Let dein manage dein
" Required:
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('morhetz/gruvbox')
call dein#add('scrooloose/nerdtree')
call dein#add('Shougo/deoplete.nvim')
call deoplete#enable()
" You can specify revision/branch/tag.
call dein#add('Shougo/deol.nvim')
" Required:
call dein#end()
call dein#save_state()
endif
" let g:python_host_prog = '/usr/bin/python'
" let g:python3_host_prog = '/usr/bin/python3'
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
"End dein Scripts-------------------------
""
"" Joey Vim customizations
""
" show existing tab with 4 spaces width
set tabstop=4
" " when indenting with '>', use 4 spaces width
set shiftwidth=4
" " On pressing tab, insert 4 spaces
set expandtab
" autocmd vimenter * NERDTree
map <silent>. :NERDTreeToggle<CR>
" Resize PANE
" Maps Alt-[h,j,k,l] to resizing a window split
map <silent> <A-h> <C-w><
map <silent> <A-j> <C-W>-
map <silent> <A-k> <C-W>+
map <silent> <A-l> <C-w>>
" Vertical splitting
map <silent>\ <C-w>v
" Horizontal splitting
map <silent>] <C-w>S
" Kill last splitting
map <silent>; <C-W>q
map <F8> :set paste!<CR>
map <silent>n :set nu!<CR>
let g:gruvbox_contrast_dark='hard'
set background=dark
colorscheme gruvbox
" Custom stuff
au BufNewFile,BufRead Jenkinsfile setf groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment