Advertisement
mosaid

Untitled

Nov 8th, 2017
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.51 KB | None | 0 0
  1. set nocompatible              " be iMproved, required
  2. filetype off                  " required
  3.  
  4. " set the runtime path to include Vundle and initialize
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7.     " alternatively, pass a path where Vundle should install plugins
  8.     "call vundle#begin('~/some/path/here')
  9.  
  10.     " let Vundle manage Vundle, required
  11.     Plugin 'VundleVim/Vundle.vim'
  12.  
  13.     " The following are examples of different formats supported.
  14.     " Keep Plugin commands between vundle#begin/end.
  15.     " plugin on GitHub repo
  16.     "Plugin 'tpope/vim-fugitive'
  17.     " plugin from http://vim-scripts.org/vim/scripts.html
  18.     " Plugin 'L9'
  19.     " Git plugin not hosted on GitHub
  20.     "Plugin 'git://git.wincent.com/command-t.git'
  21.     " git repos on your local machine (i.e. when working on your own plugin)
  22.     "Plugin 'file:///home/gmarik/path/to/plugin'
  23.     " The sparkup vim script is in a subdirectory of this repo called vim.
  24.     " Pass the path to set the runtimepath properly.
  25.     "Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  26.     " Install L9 and avoid a Naming conflict if you've already installed a
  27.     " different version somewhere else.
  28.     " Plugin 'ascenator/L9', {'name': 'newL9'}
  29.  
  30.     Plugin 'shawncplus/phpcomplete.vim'
  31.     Plugin 'bagrat/vim-workspace'
  32.     " All of your Plugins must be added before the following line
  33.     call vundle#end()            " required
  34.     filetype plugin indent on    " required
  35.     " To ignore plugin indent changes, instead use:
  36.     "filetype plugin on
  37.     "
  38.     " Brief help
  39.     " :PluginList       - lists configured plugins
  40.     " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  41.     " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  42.     " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  43.     "
  44.     " see :h vundle for more details or wiki for FAQ
  45.     " Put your non-Plugin stuff after this line
  46.  
  47.  
  48. if has("gui_running")
  49.  " GUI is running or is about to start.
  50.  " Maximize gvim window (for an alternative on Windows, see simalt below).
  51.  set lines=999 columns=999
  52. else
  53.  " This is console Vim.
  54.  if exists("+lines")
  55.    set lines=54
  56.  endif
  57.  if exists("+columns")
  58.    set columns=190
  59.  endif
  60. endif
  61.  
  62.  
  63. set number                     " Show current line number
  64. no <down> <Nop>
  65. no <left> <Nop>
  66. no <right> <Nop>
  67. no <up> <Nop>
  68. ino <down> <Nop>
  69. ino <left> <Nop>
  70. ino <right> <Nop>
  71. ino <up> <Nop>
  72.  
  73. let &t_ti.="\e[1 q"
  74. let &t_SI.="\e[5 q"
  75. let &t_EI.="\e[1 q"
  76. let &t_te.="\e[0 q"
  77.  
  78.  
  79. :set cindent
  80. :set hlsearch
  81. :set incsearch
  82. :set cursorline
  83.  
  84. :hi CursorLine   ctermbg=darkgrey term=bold cterm=bold
  85. :hi Normal  ctermbg=black cterm=bold  term=bold
  86.  
  87. :set encoding=utf-8
  88. :set arabicshape
  89.  
  90. source ~/.vim/startup/mappings.vim
  91.  
  92.  
  93.  
  94. execute pathogen#infect()
  95. call pathogen#helptags()
  96.  
  97.  
  98. " Start NERDTree
  99. autocmd VimEnter * NERDTree
  100. " Go to previous (last accessed) window.
  101. autocmd VimEnter * wincmd p
  102.  
  103.  
  104.  
  105. :command! Browse :99new +setl\ buftype=nofile | 0put =v:oldfiles | nnoremap <buffer> <CR> :e <C-r>=getline('.')<CR><CR>
  106.  
  107. :set isfname+=32
  108.  
  109.  
  110. " path to directory where library can be found
  111. let g:clang_library_path='/usr/lib/llvm-3.8/lib/libclang.so.1'
  112.  
  113.  
  114.  
  115.  
  116. let g:user_emmet_mode='n'    "only enable normal mode functions.
  117. let g:user_emmet_mode='inv'  "enable all functions, which is equal to
  118. let g:user_emmet_mode='a'    "enable all function in all mode.
  119.  
  120.  
  121. let g:user_emmet_install_global = 0
  122. autocmd FileType html,css EmmetInstall
  123.  
  124.  
  125. let mapleader = " "
  126. noremap <leader><leader> <C-^>
  127. noremap <leader>c :<ESC>gg"*yG<ESC>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement