You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.7 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. " Install Vim Plug if not installed
  2. if empty(glob('~/.config/nvim/autoload/plug.vim'))
  3. silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
  4. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5. autocmd VimEnter * PlugInstall
  6. endif
  7. call plug#begin()
  8. " Plugins
  9. Plug 'scrooloose/syntastic'
  10. Plug 'blueshirts/darcula'
  11. Plug 'ctrlpvim/ctrlp.vim'
  12. Plug 'FelikZ/ctrlp-py-matcher'
  13. Plug 'jeetsukumaran/vim-filebeagle'
  14. Plug 'bling/vim-airline'
  15. Plug 'scrooloose/nerdtree'
  16. Plug 'christoomey/vim-tmux-navigator'
  17. Plug 'editorconfig/editorconfig-vim'
  18. Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
  19. Plug 'mhinz/vim-grepper'
  20. "HTML & CSS
  21. Plug 'hail2u/vim-css3-syntax'
  22. Plug 'othree/html5.vim'
  23. Plug 'mattn/emmet-vim'
  24. Plug 'Valloric/MatchTagAlways'
  25. Plug 'digitaltoad/vim-jade'
  26. "Javascript
  27. Plug 'pangloss/vim-javascript'
  28. Plug 'jelera/vim-javascript-syntax'
  29. Plug 'leafgarland/typescript-vim'
  30. Plug 'moll/vim-node'
  31. "PHP
  32. Plug 'StanAngeloff/php.vim'
  33. Plug 'tanarurkerem/drupal-snippets'
  34. "Stupid Coffee Script Because dummies
  35. Plug 'kchmck/vim-coffee-script'
  36. call plug#end()
  37. let g:airline#extensions#tabline#enabled = 1
  38. syntax on
  39. colorscheme darcula
  40. set tabstop=2
  41. set expandtab
  42. set shiftwidth=2
  43. set smartcase
  44. set hlsearch
  45. set number
  46. set autoindent
  47. set incsearch
  48. set clipboard+=unnamed
  49. set noswapfile
  50. set t_Co=256
  51. set hidden
  52. set relativenumber
  53. set list listchars=tab:»·,trail:·,nbsp:·
  54. "Nertree Toggle
  55. map <C-n> :NERDTreeToggle<CR>
  56. let NERDTreeShowHidden=1
  57. " enable all Python syntax highlighting features
  58. let python_highlight_all = 1
  59. "Option + Left and Right switch buffers
  60. "execute "set <M-Right>=\e\eC"
  61. "execute "set <M-Left>=\e\eD"
  62. nnoremap <silent> <C-Right> :bnext<CR>
  63. nnoremap <silent> <C-Left> :bprevious<CR>
  64. nnoremap <silent> <C-Del> :bd
  65. ":h i_CTRL-V