Skip to content

Instantly share code, notes, and snippets.

@feyderm
Created July 15, 2016 07:04
Show Gist options
  • Save feyderm/3b37595c733b0d1c868985e058b3f258 to your computer and use it in GitHub Desktop.
Save feyderm/3b37595c733b0d1c868985e058b3f258 to your computer and use it in GitHub Desktop.
" REMAPPED KEYS
inoremap jj <ESC>
nnoremap f x
nnoremap ) 0w
let mapleader=","
set timeout timeoutlen=1500
:map <space> viw
" COLUMN RULER
:set ruler
" 80 CHARACTER LINE
:set colorcolumn=80
" INDENTATION
:set shiftwidth=4
:set tabstop=4
:set expandtab
:set autoindent
filetype indent on
filetype plugin on
" RELATIVE LINE NUMBERS
:set number
:set relativenumber
" BREAK AT WORDS WHEN WRAPPING LINES
:set linebreak
" SYNTAX HIGHLIGHTING
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
" PATHOGEN INSTALLATIONS
execute pathogen#infect()
" resets background dark after vim-json plugin loads
autocmd Filetype json set background=dark
" NERDTree
"toggle NERDTree with ctrl-n
map <C-n> :NERDTreeToggle<CR>
" close vim if only NERDTree present
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" SYNTASTIC RECOMMENDED 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 = 0
let g:syntastic_check_on_wq = 1
let g:syntastic_javascript_checkers = ['eslint']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment