aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-05-30 11:01:25 -0600
committerCody Hiar <codyfh@gmail.com>2018-05-30 11:01:25 -0600
commitf1b8297c09de5671b449a596ac1abdc5cd635801 (patch)
tree58931ae61dd00863fbd091e60143ddcb61b00b5d /plugin
parent0521732fedd5b091558dcd89f7351d21bcdb964e (diff)
Adding some shortcuts, adding back path
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim19
1 files changed, 14 insertions, 5 deletions
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 <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
" Faster jumping for linting erros
nnoremap [q :lprev<CR>
nnoremap ]q :lnext<CR>
+" Set breakpoint in python
+noremap <leader>eb ofrom pudb import set_trace; set_trace()<ESC>
+" Vertical split instead of horiztonal
+noremap <c-w>f <c-w>f<c-w>H
+" <c-w>] uses path not tags file?
+noremap <c-w>] <c-w>v<c-]><c-w>H
@@ -162,6 +170,8 @@ if !empty(glob($EditorDir.'plugged/fzf.vim/plugin/fzf.vim'))
nnoremap <leader>fm :Marks<CR>
nnoremap <leader>fc :Commits<CR>
nnoremap <leader>fg :GFiles?<CR>
+ " 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
"-----------------------------------------------------------------------------------------------------------------------