Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. set nocompatible
  2. filetype off
  3.  
  4. set runtimepath+=~/.vim/bundle/neobundle.vim/
  5.  
  6. call neobundle#begin(expand('~/.vim/bundle/'))
  7.  
  8. NeoBundleFetch 'Shougo/neobundle.vim'
  9.  
  10. NeoBundle 'Shougo/neocomplcache'
  11. NeoBundle 'tpope/vim-pathogen'
  12. NeoBundle 'scrooloose/syntastic'
  13. NeoBundle 'MarcWeber/vim-addon-local-vimrc'
  14. NeoBundle 'othree/javascript-libraries-syntax.vim'
  15. NeoBundle 'Shougo/vimshell.vim'
  16. NeoBundle 'Shougo/vimproc'
  17. NeoBundle 'Shougo/unite.vim'
  18. NeoBundle 'Shougo/neosnippet'
  19. NeoBundle 'Shougo/neosnippet-snippets'
  20. NeoBundle 'honza/vim-snippets'
  21. NeoBundle 'fatih/vim-go'
  22. NeoBundle 'leafgarland/typescript-vim'
  23. NeoBundle 'scrooloose/nerdtree'
  24. NeoBundle "ctrlpvim/ctrlp.vim"
  25.  
  26. call neobundle#end()
  27.  
  28. " escape aliases
  29. imap jk <ESC>
  30. imap jj <ESC>
  31.  
  32. set list
  33. set listchars=eol:$,tab:>-
  34.  
  35. " case insensitive search
  36. set ignorecase
  37. set smartcase
  38.  
  39. " indent setting
  40. set expandtab
  41. set shiftwidth=4
  42. set tabstop=4
  43.  
  44. " neocomplcache settings
  45. let g:neocomplcache_enable_at_startup = 1
  46. let g:neocomplcache_enable_smart_case = 1
  47.  
  48. " local vimrc settings
  49. let g:local_vimrc = {'names':['.vimrc'],'hash_fun': 'LVRHashOfFile'}
  50.  
  51. " ///////////////////////////////////////////////////////////////////////////////////////////////
  52. " neosnippet settings
  53. " ///////////////////////////////////////////////////////////////////////////////////////////////
  54. " Plugin key-mappings.
  55. imap <C-k> <Plug>(neosnippet_expand_or_jump)
  56. smap <C-k> <Plug>(neosnippet_expand_or_jump)
  57. xmap <C-k> <Plug>(neosnippet_expand_target)
  58.  
  59. " SuperTab like snippets behavior.
  60. imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
  61. \ "\<Plug>(neosnippet_expand_or_jump)"
  62. \: pumvisible() ? "\<C-n>" : "\<TAB>"
  63. smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
  64. \ "\<Plug>(neosnippet_expand_or_jump)"
  65. \: "\<TAB>"
  66.  
  67. " For conceal markers.
  68. if has('conceal')
  69. set conceallevel=2 concealcursor=niv
  70. endif
  71.  
  72. let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets'
  73.  
  74. " PHP CodeSniffer setting.
  75. let g:syntastic_php_phpcs_args='--standard=psr2'
  76.  
  77. " TypeScript
  78. autocmd BufRead,BufNewFile *.ts set filetype=typescript
  79. let g:syntastic_typescript_checkers = ['tslint', 'tsc']
  80.  
  81. " ///////////////////////////////////////////////////////////////////////////////////////////////
  82.  
  83. " For vim-go
  84. let g:go_highlight_functions = 1
  85. let g:go_highlight_methods = 1
  86. let g:go_highlight_structs = 1
  87. let g:go_version_warning = 0
  88.  
  89. execute pathogen#infect()
  90. syntax on
  91. filetype plugin indent on
  92.  
  93. noremap ' :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement