Skip to content

Instantly share code, notes, and snippets.

@i5heu
Last active August 31, 2018 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i5heu/5820e71ddd71eb9ffae2063a2fc39437 to your computer and use it in GitHub Desktop.
Save i5heu/5820e71ddd71eb9ffae2063a2fc39437 to your computer and use it in GitHub Desktop.
NeoVim
"NeoBundle Scripts-----------------------------
if has('vim_starting')
" Required:
set runtimepath+=/home/marvin/.config/nvim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('/home/marvin/.config/nvim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'isruslan/vim-es6'
NeoBundle 'Shougo/vimproc.vim', {
\ 'build' : {
\ 'windows' : 'tools\\update-dll-mingw',
\ 'cygwin' : 'make -f make_cygwin.mak',
\ 'mac' : 'make -f make_mac.mak',
\ 'linux' : 'make',
\ 'unix' : 'gmake',
\ },
\ }
NeoBundle 'Quramy/tsuquyomi'
" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
" Required:
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
:set mouse=a
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins.
Plug 'scrooloose/nerdtree'
Plug 'heavenshell/vim-jsdoc'
Plug 'pangloss/vim-javascript'
Plug 'yggdroot/indentline'
Plug 'rking/ag.vim'
Plug 'lumiliet/vim-twig'
Plug 'leafgarland/typescript-vim'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
" Vim
let g:indentLine_color_term = 239
" none X terminal
let g:indentLine_color_tty_light = 7 " (default: 4)
let g:indentLine_color_dark = 1 " (default: 2)
" #### highlight curent lINE
set cursorline
hi cursorline cterm=none term=none
autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
highlight CursorLine guibg=#303000 ctermbg=234
let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle
" ####CENTER CURSOR
augroup VCenterCursor
au!
au BufEnter,WinEnter,WinNew,VimResized *,*.*
\ let &scrolloff=winheight(win_getid())/3
augroup END
" ## NeerdTree On F6
nmap <F6> :NERDTreeToggle<CR>
" Set floding
set foldmethod=indent
set foldnestmax=15
set foldlevel=1
hi Folded ctermfg=Black
hi Folded ctermbg=DarkGrey
" set incremental search
set incsearch
" line numbers
set nu
" jsDocument
" nnoremap jsd :<C-u>call JSDocAdd()<CR>
nmap <silent> <C-l> ?function<cr>:noh<cr><Plug>(jsdoc)
" tab key as 4 spaces
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
"" MY SNIPPET LIST
function! GetSnippet(file)
:let l:file = $HOME . "/.snippets/" . a:file
:execute ":r " l:file
:startinsert
endfunction
command Pdoc call GetSnippet("phpDocSkeleton.php")
command Pfunc call GetSnippet("phpFuncDocSkeleton.php")
command Jsfunc call GetSnippet("jsFuncSkelleton.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment