Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.20 KB | None | 0 0
  1. filetype off
  2.  
  3. call plug#begin('~/.vim/plugged')
  4.  
  5. Plug 'airblade/vim-gitgutter'
  6. Plug 'lumiliet/vim-twig'
  7. Plug 'sheerun/vim-polyglot'
  8. Plug 'tomtom/tcomment_vim'
  9. Plug 'vim-syntastic/syntastic'
  10. Plug 'arcticicestudio/nord-vim'
  11. Plug 'wellle/tmux-complete.vim'
  12.  
  13. call plug#end()
  14.  
  15. syntax on
  16. filetype plugin on
  17. filetype indent on
  18.  
  19. set autoindent
  20. set backspace=indent,eol,start
  21. set belloff=all
  22. set clipboard=unnamed,unnamedplus
  23. set complete-=i
  24. set expandtab
  25. set hlsearch
  26. set ignorecase
  27. set incsearch
  28. set laststatus=2
  29. set list
  30. set listchars=tab:\¦\ ,trail:·,nbsp:
  31. set mouse=a
  32. set nobackup
  33. set noswapfile
  34. set number
  35. set path+=**
  36. set relativenumber
  37. set shiftround
  38. set shiftwidth=4
  39. set showcmd
  40. set showmode
  41. set smartcase
  42. set softtabstop=4
  43. set tabstop=4
  44. set undodir=~/.vim/undodir
  45. set undofile
  46. set wildmenu
  47.  
  48. if exists("+undofile")
  49.     if isdirectory($HOME . '/.vim/undodir') == 0
  50.         :silent !mkdir -p ~/.vim/undodir > /dev/null 2>&1
  51.     endif
  52. endif
  53.  
  54. let g:netrw_banner=0
  55. let g:netrw_bufsettings='nobl noma nomod nowrap number relativenumber ro'
  56. let g:netrw_liststyle=1
  57.  
  58. let g:syntastic_always_populate_loc_list=1
  59.  
  60. let g:syntastic_auto_loc_list=1
  61. let g:syntastic_check_on_open=1
  62. let g:syntastic_check_on_wq=0
  63.  
  64. map <F2> :Explore<CR>
  65.  
  66. inoremap jj <ESC>
  67.  
  68. " space bar un-highlights search
  69. noremap <silent> <Space> :silent noh<Bar>echo<CR>
  70.  
  71. " insert new line without entering insert mode
  72. inoremap <S-Enter> <C-o>O
  73. nnoremap <S-Enter> O<Esc>j
  74. nnoremap <CR> o<Esc>k
  75.  
  76. " sort words in line
  77. vnoremap <F3> d:execute 'normal i' . join(sort(split(getreg('"'))), ' ')<CR>
  78.  
  79. set pastetoggle=<F4>
  80. map <F5> :r! cat
  81.  
  82. imap jj <Esc>
  83.  
  84. for prefix in ['i', 'n', 'v']
  85.     for key in ['<Del>', '<Down>', '<End>', '<Home>', '<Left>', '<PageDown>', '<PageUp>', '<Right>', '<Up>']
  86.         exe prefix . "noremap " . key . " <Nop>"
  87.     endfor
  88. endfor
  89.  
  90. set guioptions-=m
  91. set guioptions-=T
  92. set guioptions-=r
  93. set guioptions-=L
  94.  
  95. set guifont=monospace\ 10
  96.  
  97. colorscheme nord
  98.  
  99. function! PhpSyntaxOverride()
  100.     hi! def link phpDocTags  phpDefine
  101.     hi! def link phpDocParam phpType
  102. endfunction
  103.  
  104. augroup phpSyntaxOverride
  105.     autocmd!
  106.     autocmd FileType php call PhpSyntaxOverride()
  107. augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement