daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set nocompatible
  2. set path+=**
  3.  
  4. call plug#begin('~/.local/share/nvim/plugged')
  5.   Plug 'SirVer/ultisnips'
  6.   Plug 'honza/vim-snippets'
  7.   Plug 'ternjs/tern_for_vim', { 'for': ['javascript', 'javascript.jsx'] }
  8.   Plug 'carlitux/deoplete-ternjs', { 'for': ['javascript', 'javascript.jsx'] }
  9.   Plug 'othree/jspc.vim', { 'for': ['javascript', 'javascript.jsx'] }
  10.   Plug 'ervandew/supertab'
  11.   Plug 'elixir-lang/vim-elixir'
  12.   Plug 'archSeer/elixir.nvim'
  13.   Plug 'Shougo/deoplete.nvim'
  14.   Plug 'slashmili/alchemist.vim'
  15.   Plug 'matsen/nvim-colors-solarized'
  16.   Plug 'kien/ctrlp.vim'
  17.   Plug 'scrooloose/nerdtree'
  18. call plug#end()
  19.  
  20. let g:deoplete#enable_at_startup = 1
  21.  
  22. let $NVIM_TUI_ENABLE_TRUE_COLOR=1
  23. set background=dark
  24. colorscheme solarized
  25.  
  26. let g:deoplete#omni#functions = {}
  27. let g:deoplete#omni#functions.javascript = [
  28.   \ 'tern#Complete',
  29.   \ 'jspc#omni'
  30. \]
  31. set completeopt=longest,menuone,preview
  32. let g:deoplete#sources = {}
  33. let g:deoplete#sources['javascript.jsx'] = ['file', 'ultisnips', 'ternjs']
  34. let g:tern#command = ['tern']
  35. let g:tern#arguments = ['--persistent']
  36. autocmd FileType javascript let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
  37. let g:UltiSnipsExpandTrigger="<C-j>"
  38. inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
  39. let g:SuperTabClosePreviewOnPopupClose = 1
  40.  
  41. command! MakeTags !ctags -R .
  42.  
  43. set modelines=0
  44. set tabstop=2
  45. set shiftwidth=2
  46. set softtabstop=2
  47. set expandtab
  48. set encoding=utf-8
  49. set scrolloff=3
  50. set autoindent
  51. set showmode
  52. set showcmd
  53. set hidden
  54. set wildmenu
  55. set wildmode=list:longest
  56. set visualbell
  57. set cursorline
  58. set ttyfast
  59. set ruler
  60. set backspace=indent,eol,start
  61. set laststatus=2
  62. set number
  63. set relativenumber
  64. set undofile
  65.  
  66. filetype plugin indent on
  67.  
  68. autocmd VimEnter * tab all
  69.  
  70. nnoremap th  :tabfirst<CR>
  71. nnoremap tj  :tabnext<CR>
  72. nnoremap tk  :tabprev<CR>
  73. nnoremap tl  :tablast<CR>
  74. nnoremap tt  :tabedit<Space>
  75. nnoremap tn  :tabnext<Space>
  76. nnoremap tm  :tabm<Space>
  77. nnoremap td  :tabclose<CR>
  78. inoremap <C-@> <C-x><C-o>
  79. nnoremap ; :
  80. syntax on
  81.  
  82. let g:android_sdk_path = "/home/ton/droid"
  83. autocmd Filetype tex setl updatetime=1
  84. autocmd Filetype tex nmap <F12> :LLPStartPreview<cr>
  85. "autocmd Filetype elixir setlocal omnifunc=syntaxcomplete#Complete
  86. "autocmd Filetype ex setlocal omnifunc=syntaxcomplete#Complete
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top