Skip to content

Instantly share code, notes, and snippets.

@adrianvalenz
Last active December 1, 2020 08:58
Show Gist options
  • Save adrianvalenz/85202fa512868c2713c449c456c08aa8 to your computer and use it in GitHub Desktop.
Save adrianvalenz/85202fa512868c2713c449c456c08aa8 to your computer and use it in GitHub Desktop.
"ActivateAddons vim-snippets snipmate
autocmd BufReadPost,FileReadPost,BufNewFile,BufEnter * call system("tmux rename-window ':vim => \"" . expand("%:t") . "\"'")
"autocmd VimLeave * call system("tmux rename-window 'tmux'")
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
color dracula
let g:airline_theme='dracula'
set guifont=IBM\ Plex\ Mono\ Light:h12
execute pathogen#infect()
" Vim JavaScript settings
let g:ale_emit_conflict_warnings = 0
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0
let g:javascript_plugin_flow = 1
let g:jsx_ext_required = 0
let g:syntastic_python_checkers = ['pylint']
let g:ale_python_flake8_args="--ignore=E501"
let g:ale_linters = { 'javascript': ['eslint', 'jshint'], 'swift': ['swiftlint'], 'python': ['mypy'],'typescript': ['tslint'] }
let g:ale_python_pylint_args="--load-plugins pylint_django"
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_scss_sass_args = '--some --args'
let g:syntastic_quiet_messages = { 'regex': 'PlaceholderInExtend: Prefer using placeholder selectors (e.g. %some-placeholder) with @extend' }
"g:syntastic_ruby_checkers
let g:syntastic_eruby_ruby_quiet_messages =
\ {'regex': 'possibly useless use of a variable in void context'}
" ignore ion tags for ionic framework and angular attributes
let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]
" Airline themes
let g:airline_theme='dracula'
" NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
" Netrw settings
let g:netrw_banner = 0
filetype indent on
syntax enable
syntax on
let g:indentLine_char = '.'
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_clear_cache_on_exit=1
let g:ctrlp_working_path_mode=0
set autoindent
set background=dark
set backspace=indent,eol,start
set clipboard=unnamed
set cursorline
set encoding=utf-8
set expandtab
set fileformat=unix
set ignorecase
set lazyredraw
set laststatus=2
set linebreak
set list
set listchars=tab:\|\
set nocompatible
set number
set runtimepath^=~/.vim/bundle/ctrlp.vim
set shiftwidth=2
set showcmd
set showmatch
set softtabstop=2
set splitbelow
set splitright
set t_Co=256
set tabstop=2
set textwidth=76
set timeoutlen=1000 ttimeoutlen=0
set updatetime=250
set wildmenu
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX
set wrap
set wrapmargin=0
" remaps Control-A to select all text
map <C-a> <esc>ggVG<CR>
nmap <leader>l :set list!<CR>
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>
" Settings to have vertical line indicating 80 characters
highlight ColorColumn ctermbg=8
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment