Browse Source

Get ctrl-p more comfortable, rebind tmux create window to the same keys as nerdtree for consistency

master
Taylor Bockman 8 years ago
parent
commit
1c01576af3
  1. 17
      dotfiles/config/nvim/init.vim
  2. 0
      dotfiles/resize-pane
  3. 6
      dotfiles/tmux.conf

17
dotfiles/config/nvim/init.vim

@ -120,7 +120,7 @@ set shiftround
set list set list
set list listchars=tab:»·,trail set list listchars=tab:»·,trail
" custom functons " custom functions
function! NumberToggle() function! NumberToggle()
if(&relativenumber == 1) if(&relativenumber == 1)
set norelativenumber set norelativenumber
@ -168,6 +168,12 @@ nnoremap <silent> + :tabn<CR>
let g:ctrlp_map='<c-p>' let g:ctrlp_map='<c-p>'
let g:ctrlp_cmd='CtrlP' let g:ctrlp_cmd='CtrlP'
" Rebind Ctrl-P to match the window opening keys of nerd tree
let g:ctrl_p_prompt_mappings = {
\ 'AcceptSelection("h")': ['<c-i>', '<c-cr>', '<c-s>'],
\ 'AcceptSelection("v")': ['<c-s>', '<RightMouse>'],
\ }
" ctrlp configuration " ctrlp configuration
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
@ -186,12 +192,9 @@ endif
let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_jsxhint_exec = 'eslint' let g:syntastic_javascript_jsxhint_exec = 'eslint'
" Indent lines customizations
" Color customizations " Color customizations
colorscheme zenburn colorscheme zenburn
" Python-mode settings " Python-mode settings
" disable pymode folding " disable pymode folding
@ -223,12 +226,6 @@ nnoremap <F9> za
onoremap <F9> <C-C>za onoremap <F9> <C-C>za
vnoremap <F9> zf vnoremap <F9> zf
" Rebind Ctrl-P to match the window opening keys of nerd tree
let g:ctrl_p_prompt_mappings = {
\ 'AcceptSelection("h")': ['<c-s>', '<c-cr>', '<c-s>'],
\ 'AcceptSelection("v")': ['<c-i>', '<RightMouse>']
}
" Line indent guides are defaulted to off " Line indent guides are defaulted to off
let g:indentLine_enabled=0 let g:indentLine_enabled=0

0
dotfiles/resize-pane

6
dotfiles/tmux.conf

@ -52,10 +52,10 @@ set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
bind Space copy-mode bind Space copy-mode
bind C-Space copy-mode bind C-Space copy-mode
# Rebinds to be like neotree # Rebinds to be like nerdtree
unbind % unbind %
bind i split-window -h bind s split-window -h
bind s split-window -v bind i split-window -v
# Smart pane switching with awareness of vim splits # Smart pane switching with awareness of vim splits
# This is the tmux side of the vim-tmux-navigator plugin # This is the tmux side of the vim-tmux-navigator plugin

Loading…
Cancel
Save