All of my important config files
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.

96 lines
3.0 KiB

8 years ago
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3. " set the runtime path to include Vundle and initialize
  4. set rtp+=~/.vim/bundle/Vundle.vim
  5. call vundle#begin()
  6. " alternatively, pass a path where Vundle should install plugins
  7. "call vundle#begin('~/some/path/here')
  8. " let Vundle manage Vundle, required
  9. Plugin 'VundleVim/Vundle.vim'
  10. " The following are examples of different formats supported.
  11. " Keep Plugin commands between vundle#begin/end.
  12. " plugin on GitHub repo
  13. Plugin 'tpope/vim-fugitive'
  14. " plugin from http://vim-scripts.org/vim/scripts.html
  15. Plugin 'L9'
  16. " Git plugin not hosted on GitHub
  17. Plugin 'tpope/vim-sensible'
  18. Plugin 'scrooloose/nerdtree'
  19. Plugin 'Xuyuanp/nerdtree-git-plugin'
  20. Plugin 'kien/ctrlp.vim'
  21. Plugin 'scrooloose/nerdcommenter'
  22. "Plugin 'myusuf3/numbers.vim'
  23. Plugin 'Shougo/neocomplete.vim'
  24. Plugin 'easymotion/vim-easymotion'
  25. Plugin 'Emmet.vim'
  26. Plugin 'bling/vim-airline'
  27. " All of your Plugins must be added before the following line
  28. call vundle#end() " required
  29. filetype plugin indent on " required
  30. " To ignore plugin indent changes, instead use:
  31. "filetype plugin on
  32. "
  33. " Brief help
  34. " :PluginList - lists configured plugins
  35. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  36. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  37. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  38. "
  39. " see :h vundle for more details or wiki for FAQ
  40. " Put your non-Plugin stuff after this line
  41. " S E T T I N G S
  42. set number
  43. set autoread
  44. set history=1000
  45. " make comments and HTML attributes italic
  46. highlight Comment cterm=italic
  47. highlight htmlArg cterm=italic
  48. set autoindent " automatically set indent of new line
  49. set smartindent
  50. set tabstop=4
  51. set shiftwidth=4
  52. " toggle invisible characters
  53. set list
  54. set listchars=tab:→\ ,eol,trail:⋅,extends:❯,precedes:❮
  55. set showbreak=
  56. set ttyfast " faster redrawing
  57. set diffopt+=vertical
  58. set laststatus=2 " show the satus line all the time
  59. set so=7 " set 7 lines to the cursors - when moving vertical
  60. set wildmenu " enhanced command line completion
  61. set hidden " current buffer can be put into background
  62. set showcmd " show incomplete commands
  63. " set noshowmode " don't show which mode disabled for PowerLine
  64. set wildmode=list:longest " complete files like a shell
  65. set scrolloff=3 " lines of text around cursor
  66. set shell=$SHELL
  67. set cmdheight=1 " command bar height
  68. set title " set terminal title
  69. " Uncomment the following to have Vim jump to the last position when
  70. " reopening a file
  71. if has("autocmd")
  72. au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
  73. \| exe "normal! g'\"" | endif
  74. endif
  75. " M A P P I N G S
  76. let mapleader = ","
  77. " Toggle NERDTree
  78. nmap <silent> <leader>k :NERDTreeToggle<cr>
  79. " expand to the path of the file in the current buffer
  80. nmap <silent> <leader>y :NERDTreeFind<cr>