From d7590b59067ac936f0005bb693a5329edb062025 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 20 Oct 2017 13:19:50 -0600 Subject: Remove unused plugins --- plugin/vim-options.vim | 90 ++++++++++++++------------------------------------ 1 file changed, 24 insertions(+), 66 deletions(-) diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 00ea963..61b1a88 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -104,7 +104,7 @@ hi Normal guibg=NONE ctermbg=NONE " Vim vs Neovim settings "----------------------------------------------------------------------------------------------------------------------- if has('nvim') - let $HOME='.vimcache' + let $HOME='/root/.vimcache' let $EditorDir='/root/.config/nvim/' let $SessionDir='.vimcache' silent! execute '!mkdir -p .vimcache/backup' @@ -150,7 +150,8 @@ nnoremap :noh " Shortcuts for window nnoremap t :tabnew " Shorcut for stubbing out find command -nnoremap s :find +nnoremap s :Files +nnoremap b :Buffers " Formating a json file com! Formatjson %!python -m json.tool " Visually select pasted text @@ -163,10 +164,6 @@ nnoremap dd :diffget nnoremap df :diffput nnoremap _ [c nnoremap = ]c -" Open folder of current file -nnoremap n :e %:p:h -" Open NERDTree -nnoremap m :e. " Function for saving session function! SaveSession() :mksession! $SessionDir/session.vim @@ -196,6 +193,14 @@ nnoremap ,pudb :-1read $EditorDir/plugged/vim-options/snippets/python/pu nnoremap ,pydef :-1read $EditorDir/plugged/vim-options/snippets/python/pydef.py/jumpV12j nnoremap ,pyclass :-1read $EditorDir/plugged/vim-options/snippets/python/pyclass.py/jump " Arrow keys move windows +tnoremap h +tnoremap j +tnoremap k +tnoremap l +inoremap h +inoremap j +inoremap k +inoremap l noremap k noremap j noremap h @@ -292,28 +297,6 @@ endif -"----------------------------------------------------------------------------------------------------------------------- -" Nerdtree Plugin -"----------------------------------------------------------------------------------------------------------------------- -if !empty(glob($EditorDir.'plugged/nerdtree/plugin/NERD_tree.vim')) - " Disable ? do I can fucking reverse search - :autocmd FileType nerdtree silent! nunmap ? - let g:NERDTreeShowLineNumbers=1 - let g:NERDTreeDirArrows=0 - let g:NERDTreeWinSize = 40 - let g:NERDTreeIgnore = ['\.pyc$'] - let g:NERDTreeDirArrows = 1 - let g:NERDTreeDirArrowExpandable = '▸' - let g:NERDTreeDirArrowCollapsible = '▾' - let g:NERDTreeMapOpenSplit = 's' - let g:NERDTreeMapPreviewSplit = 'gs' - let g:NERDTreeMapOpenVSplit = 'v' - let g:NERDTreeMapPreviewVSplit = 'gv' -endif -"----------------------------------------------------------------------------------------------------------------------- - - - "----------------------------------------------------------------------------------------------------------------------- " Markdown "----------------------------------------------------------------------------------------------------------------------- @@ -334,44 +317,6 @@ endif -"----------------------------------------------------------------------------------------------------------------------- -" Syntastic -"----------------------------------------------------------------------------------------------------------------------- -if !empty(glob($EditorDir.'plugged/syntastic/plugin/syntastic.vim')) - let g:syntastic_php_checkers = ['php', 'phpcs'] - let g:syntastic_javascript_checkers = ['eslint'] - let g:syntastic_python_checkers = ['pyton3', 'flake8', 'mypy'] - let g:syntastic_scss_checkers = ['sass_lint'] - let g:syntastic_php_phpcs_args = "--standard=/root/PEARish.xml,PSR2,Symfony2" - let g:syntastic_always_populate_loc_list = 1 - let g:syntastic_auto_loc_list = 0 - let g:syntastic_check_on_wq = 1 - let g:syntastic_check_on_open = 1 - let g:syntastic_aggregate_errors = 1 - let g:syntastic_mode_map = { 'mode': 'active' } - function! ToggleSyntasticMode() -python << EOF -import vim -import ast -value = dict(vim.eval('g:syntastic_mode_map')) -vim.command('let l:syntastic_current_mode = \''+value['mode']+'\'') -EOF - SyntasticToggleMode - if l:syntastic_current_mode == 'passive' - SyntasticCheck - let g:syntastic_check_on_wq = 0 - let g:syntastic_check_on_open = 0 - else - let g:syntastic_check_on_wq = 1 - let g:syntastic_check_on_open = 1 - endif - endfunction - nnoremap a :call ToggleSyntasticMode() -endif -"----------------------------------------------------------------------------------------------------------------------- - - - "----------------------------------------------------------------------------------------------------------------------- " Taboo "----------------------------------------------------------------------------------------------------------------------- @@ -479,6 +424,19 @@ endif +"----------------------------------------------------------------------------------------------------------------------- +" Ranger Intergration +"----------------------------------------------------------------------------------------------------------------------- +if !empty(glob($EditorDir.'plugged/ranger.vim/plugin/ranger.vim')) + let g:ranger_map_keys = 0 + nnoremap n :Ranger + nnoremap [q :cprev + nnoremap ]q :cnext +endif +"----------------------------------------------------------------------------------------------------------------------- + + + "----------------------------------------------------------------------------------------------------------------------- " Basic movements (h, j, k, l) require a number prefix. Break bad habits "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3