Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
137 lines (107 sloc) 3.02 KB
set nocompatible
call plug#begin("~/.vim/bundle")
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'jremmen/vim-ripgrep'
"Plug 'tomasr/molokai'
Plug 'mhartington/oceanic-next'
Plug 'tpope/vim-surround'
Plug 'w0rp/ale'
"Plug 'neomake/neomake'
Plug 'roxma/nvim-completion-manager'
Plug 'roxma/nvim-cm-tern', {'do': 'npm install'}
"Plug 'Shougo/deoplete.nvim'
"Plug 'carlitux/deoplete-ternjs', { 'do': 'npm -g install tern' }
Plug 'othree/yajs.vim'
Plug 'heavenshell/vim-jsdoc'
Plug 'spf13/PIV'
Plug 'beyondwords/vim-twig'
Plug 'plasticboy/vim-markdown'
Plug 'mattn/emmet-vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'junegunn/goyo.vim'
Plug 'jamessan/vim-gnupg'
Plug 'arnaud-lb/vim-php-namespace'
Plug 'mhartington/nvim-typescript'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'godlygeek/tabular'
call plug#end()
filetype plugin indent on
syntax on
set showmode
set showcmd
set encoding=utf8
set fileencoding=utf8
set fileformat=unix
set autoindent
set ts=4
set scrolloff=5
set ruler
set number
set cursorline
set backspace=indent,eol,start
set softtabstop=4
set shiftwidth=4
set tabstop=4
set expandtab
set showmatch "show matching brackets/parenthesis
set incsearch "find as you type search
set hlsearch "highlight search terms
set ignorecase "case insensitive search
set smartcase
"set cryptmethod=blowfish
set wildmenu "show list instead of just completing
set wildmode=list:longest,full
set nofoldenable "no auto fold code
set foldmethod=marker
set foldmarker={,}
set list
set listchars=tab:>.,trail:.,extends:#,nbsp:. " Highlight problematic whitespace
"disable matchit plugin
let loaded_matchit = 1
"mappings
let mapleader = ","
autocmd BufNewFile,BufRead *.tsx setlocal filetype=typescript
map <C-j> g]
imap jk <Esc>
nmap <leader>s :syntax sync fromStart<CR>
if (has("termguicolors"))
set termguicolors
endif
colorscheme OceanicNext
"colorscheme nova
"PLUGINS
" Rg
map <leader>r :Rg <C-r><C-w><CR>
"fzf
map <leader>f :FZF<CR>
map <leader>b :Buffers<CR>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
let g:ctrlp_custom_ignore = {
\ 'dir': '\v(.git|web|cache|vendor|node_modules|lib|tmp|bin|var|docs|build|_site|Proxy|assets)$',
\ }
"tern
let g:tern_show_argument_hints = 'on_hold'
let g:tern_show_signature_in_pum = 1
let g:tern_request_timeout = 1
"ale
map <leader>e :ALEFix<CR>
let g:ale_fixers = {
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier']
\}
let g:ale_echo_msg_format = '[%linter%] %s'
let g:ale_lint_on_text_changed = 'never'
"completion-manager
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
"php-namespace
autocmd FileType php inoremap <Leader>u <Esc>:call IPhpInsertUse()<CR>
autocmd FileType php noremap <Leader>u :call PhpInsertUse()<CR>
"jsDoc
let g:jsdoc_allow_input_prompt=1
let g:jsdoc_input_description=1
au BufRead,BufNewFile *.js nnoremap <buffer> <leader>p :JsDoc<CR>
"emmet
au BufRead,BufNewFile *.html,*.css,*.twig map <buffer> <leader>e <c-y>,
"source ~/.vimrc.bepo