Skip to content

Instantly share code, notes, and snippets.

@jeffreysbrother
Last active Dec 5, 2017
Embed
What would you like to do?
2017 work .vimrc
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry
" disable arrow keys
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
inoremap jj <ESC>
" select all (Control + A) functionality
map <C-a> <esc>ggVG<CR>
syntax on
colorscheme Tomorrow-Night
" colorscheme gruvbox
set wrap
set linebreak
set number
set nofoldenable
set foldlevel=99
" try to prevent Vim from creating files in pwd
set swapfile
set dir=~/tmp
let g:NERDTreeWinPos = 'left'
map <C-n> :NERDTreeToggle<CR>
" Syntastic (linter) settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers=['eslint']
let g:move_key_modifier = 'C'
" Vim-Plug (a plugin manager)
call plug#begin('~/.vim/plugged')
Plug 'vim-syntastic/syntastic'
Plug 'matze/vim-move'
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment