From f1b8297c09de5671b449a596ac1abdc5cd635801 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 30 May 2018 11:01:25 -0600 Subject: Adding some shortcuts, adding back path --- plugin/vim-options.vim | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 16690c2..65b72ef 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -14,6 +14,8 @@ set wildmode=list:full " wildmenu show list complete to first result set splitright " New windows split to the right of current one set splitbelow " New windows split below the current one set completeopt-=preview " Hide the preview/scratch window +set path=** " Allow commands like 'gf' to find files +set wildignore=*/app/cache,*/vendor,*/env,*.pyc,*/venv,*/__pycache__,*/venv " Ignore folders " Custom status line set statusline= @@ -95,6 +97,12 @@ inoremap pumvisible() ? "\" : "\" " Faster jumping for linting erros nnoremap [q :lprev nnoremap ]q :lnext +" Set breakpoint in python +noremap eb ofrom pudb import set_trace; set_trace() +" Vertical split instead of horiztonal +noremap f fH +" ] uses path not tags file? +noremap ] vH @@ -162,6 +170,8 @@ if !empty(glob($EditorDir.'plugged/fzf.vim/plugin/fzf.vim')) nnoremap fm :Marks nnoremap fc :Commits nnoremap fg :GFiles? + " Enable C-N and C-P to go backwards in history + let g:fzf_history_dir = $HOME.'.local/share/fzf-history' endif "----------------------------------------------------------------------------------------------------------------------- @@ -176,11 +186,10 @@ if !empty(glob($EditorDir.'plugged/vim-indent-guides/plugin/indent_guides.vim')) let g:indent_guides_exclude_filetypes =['help', 'nerdtree'] let g:indent_guides_start_level = 2 let g:indent_guides_guide_size = 1 - autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=235 - autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=237 - autocmd FileType python :IndentGuidesEnable - autocmd FileType html :IndentGuidesEnable - autocmd FileType jinja :IndentGuidesEnable + au VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=235 + au VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=237 + au BufEnter *.py,*.html :IndentGuidesEnable + au BufLeave *.py,*.html :IndentGuidesDisable endif "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3