Skip to content

Instantly share code, notes, and snippets.

@LukeMathWalker
Last active August 23, 2021 10:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LukeMathWalker/b0dbd30e1a937fa7e4ff51cad37ac525 to your computer and use it in GitHub Desktop.
Save LukeMathWalker/b0dbd30e1a937fa7e4ff51cad37ac525 to your computer and use it in GitHub Desktop.
init.vim - Work
call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tmhedberg/SimpylFold'
"Git:
Plug 'tpope/vim-fugitive'
"Ctags:
Plug 'craigemery/vim-autotag'
Plug 'ludovicchabant/vim-gutentags'
"Remove swap file pain
Plug 'gioele/vim-autoswap'
"Search:
Plug 'ctrlpvim/ctrlp.vim'
Plug 'mileszs/ack.vim'
"JSON:
Plug 'leshill/vim-json'
Plug 'elzr/vim-json'
"Markdown:
Plug 'drmingdrmer/vim-syntax-markdown'
"Python:
Plug 'python-mode/python-mode', { 'branch': 'develop' }
"Javascript:
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'jiangmiao/auto-pairs'
"Terraform:
Plug 'hashivim/vim-terraform'
"Vim motions
Plug 'easymotion/vim-easymotion'
Plug 'bkad/CamelCaseMotion'
Plug 'tpope/vim-surround'
"Vim text styling
Plug 'thaerkh/vim-indentguides'
"Vim styling
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'flazz/vim-colorschemes'
"Always load devicons as the last plugin
"Plug 'ryanoasis/vim-devicons'
call plug#end()
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:pymode_python = 'python3'
let g:pymode_virtualenv = 1
let g:pymode_rope = 1
let g:pymode_rope_completion_bind = '<C-a>'
let g:airline_theme='bubblegum'
colorscheme hybrid_material
let mapleader="\<SPACE>"
set number
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set ttimeoutlen=5
set tags=tags
if has("autocmd")
" remove trailing white spaces
autocmd BufWritePre * :%s/\s\+$//e
endif
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
"Nerdtree shortcuts
nnoremap <Leader>t :NERDTreeToggle<Enter>
"Automatically close NerdTree when you open a file
let NERDTreeQuitOnOpen = 1
"Automatically delete the buffer of the file you just deleted with NerdTree
let NERDTreeAutoDeleteBuffer = 1
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
"Vim-fugitive commands
nnoremap <Leader>gs :Gstatus<Enter>
nnoremap <Leader>gc :Gcommit<Enter>
"Camel case motion
call camelcasemotion#CreateMotionMappings('<leader>')
" close-tag config
let g:closetag_filenames = '*.html,*.xhtml,*.xml,*.js,*.jsx,*.html.erb,*.md'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment