Created
June 30, 2019 23:13
-
-
Save franckbret/7d2f6826991ec36bed246220c644dc29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" global | |
syntax enable | |
set autoindent | |
set expandtab | |
set smartindent | |
set sw=2 | |
set ts=2 | |
set sts=2 | |
set clipboard=unnamedplus | |
" key binding | |
map <Esc>[B <Down> | |
map <A-PageUp> <C-u> | |
map <A-PageDown> <C-f> | |
if &term =~ '^screen' | |
" tmux will send xterm-style keys when its xterm-keys option is on | |
execute "set <xUp>=\e[1;*A" | |
execute "set <xDown>=\e[1;*B" | |
execute "set <xRight>=\e[1;*C" | |
execute "set <xLeft>=\e[1;*D" | |
endif | |
" theme | |
set background=dark | |
colorscheme hybrid | |
set t_Co=256 | |
set term=screen-256color | |
" visual 80 and 100 col limit | |
highlight ColorColumn ctermbg=235 guibg=#2c2d27 | |
set colorcolumn=80,100 | |
set number | |
set list listchars=tab:▷⋅,trail:⋅,nbsp:⋅ | |
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%) | |
" current working path | |
autocmd BufEnter * silent! lcd %:p:h | |
" indent | |
filetype plugin indent on | |
" fold / expand | |
set foldmethod=indent | |
" python | |
au FileType python set autoindent | |
au FileType python set expandtab | |
au FileType python set smartindent | |
au FileType python set textwidth=99 " PEP-8 Friendly | |
au FileType python set sw=4 | |
au FileType python set ts=4 | |
au FileType python set sts=4 | |
ab pd import pdb; pdb.set_trace() | |
ab ipd import ipdb; ipdb.set_trace() | |
" Mako/Jinja/Vue/Html/Css | |
autocmd BufNewFile,BufRead *.mako,*.mak,*.jinja2,*.vue,*.js setlocal ft=html | |
autocmd FileType html,xhtml,xml,css setlocal expandtab shiftwidth=2 tabstop=2 | |
" Javascript | |
autocmd BufNewFile,BufRead *.js setlocal ft=javascript | |
autocmd FileType javascript setlocal expandtab shiftwidth=2 tabstop=2 | |
" plugins | |
execute pathogen#infect() | |
" NERDTree | |
map<F10> <ESC>:NERDTree<CR> | |
let NERDTreeIgnore = ['\.pyc$'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment