Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on " Syntax coloring
- set hlsearch " set search highlighting
- set incsearch " search as characters are entered
- filetype plugin indent on " enable filetype detection and indentation
- set smartindent
- " On pressing tab, insert 4 spaces
- set expandtab
- " show existing tab with 4 spaces width
- set tabstop=4
- set softtabstop=4
- " when indenting with '>', use 4 spaces width
- set shiftwidth=4
- "Auto add to .js extention to files that miss them, so gf works
- autocmd FileType javascript setl suffixesadd+=.js
- "autocmd BufRead,BufNewFile *.coffee set suffixesadd+=.coffee,.hbs
- "change cursor shape based on mode
- let &t_SI.="\e[5 q"
- let &t_SR.="\e[4 q"
- let &t_EI.="\e[1 q"
- "Mappings to swith betweeb tabs
- map <C-Left> <Esc>:tabprev<CR>
- map <C-Right> <Esc>:tabnext<CR>
- "show list of buffers
- nmap <C-b> <esc>:buffers<CR>
- set wildmenu " visual autocomplete for command menu
- " Don't offer to open certain files/directories
- set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png,*.ico
- set wildignore+=*.pdf,*.psd,*.class,*.jar
- set wildignore+=*.tar,*.qz
- set wildignore+=node_modules/*,bower_components/*
Add Comment
Please, Sign In to add comment