Guest User

Untitled

a guest
May 26th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. syntax on " Syntax coloring
  2.  
  3. set hlsearch " set search highlighting
  4. set incsearch " search as characters are entered
  5.  
  6. filetype plugin indent on " enable filetype detection and indentation
  7. set smartindent
  8.  
  9. " On pressing tab, insert 4 spaces
  10. set expandtab
  11. " show existing tab with 4 spaces width
  12. set tabstop=4
  13. set softtabstop=4
  14. " when indenting with '>', use 4 spaces width
  15. set shiftwidth=4
  16.  
  17. "Auto add to .js extention to files that miss them, so gf works
  18. autocmd FileType javascript setl suffixesadd+=.js
  19. "autocmd BufRead,BufNewFile *.coffee set suffixesadd+=.coffee,.hbs
  20.  
  21. "change cursor shape based on mode
  22. let &t_SI.="\e[5 q"
  23. let &t_SR.="\e[4 q"
  24. let &t_EI.="\e[1 q"
  25.  
  26. "Mappings to swith betweeb tabs
  27. map <C-Left> <Esc>:tabprev<CR>
  28. map <C-Right> <Esc>:tabnext<CR>
  29.  
  30. "show list of buffers
  31. nmap <C-b> <esc>:buffers<CR>
  32.  
  33. set wildmenu " visual autocomplete for command menu
  34.  
  35. " Don't offer to open certain files/directories
  36. set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png,*.ico
  37. set wildignore+=*.pdf,*.psd,*.class,*.jar
  38. set wildignore+=*.tar,*.qz
  39. set wildignore+=node_modules/*,bower_components/*
Add Comment
Please, Sign In to add comment