dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f3c9e4df0dfb3e2823213e0f41996e8a4ea15e6a
parent 7c175841f9f25486eaa7fabb6fd4ac4a4d7a9d00
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed, 10 Jan 2018 15:31:12 -0500

Use build-in netrw instead of nerdtree

Diffstat:
Mlinks/.vim/plugin/keybinds.vim | 13+++++--------
Mlinks/.vim/plugins.vim | 1-
Mlinks/.vim/vimrc | 4++++
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim @@ -42,8 +42,9 @@ nnoremap <leader>n :set relativenumber!<CR> " toggle cursorline/column nnoremap <leader>c :set cursorline!<CR>:set cursorcolumn!<CR> -" NERD Tree short cut -nnoremap <leader>d :NERDTreeToggle<CR> +" netrw +nnoremap <leader>d :Lex<CR> +nnoremap <leader>h :Hex<CR> " Toggle TAB and EOL symbols nnoremap <leader>l :set list!<CR> @@ -55,6 +56,8 @@ nnoremap <leader>" :split " shortcuts to commonly used files nnoremap <leader>CC :e $MYVIMRC<CR> nnoremap <leader>CO :e ~/.vim/plugin/ +nnoremap <leader>CK :e ~/.vim/plugin/keybinds.vim<CR> +nnoremap <leader>CA :e ~/.vim/plugin/appearance.vim<CR> nnoremap <leader>CP :e ~/.vim/plugins.vim<CR> nnoremap <leader>T :e ~/doc/todo.md<CR> nnoremap <leader>B :e `kpsexpand '$TEXMFHOME'`/bibtex/bib/myfiles/BIB.bib<CR> @@ -68,12 +71,6 @@ nnoremap <leader>D :read !date<CR> nnoremap <leader>m :Make nnoremap <leader>! :Start! -" Switch split focus with leader+hjkl -nnoremap <leader>h <C-w>h -nnoremap <leader>j <C-w>j -nnoremap <leader>k <C-w>k -nnoremap <leader>l <C-w>l - " toggle x mark in checklist fields nnoremap <leader>X :s/\[[x ]\]/\=submatch(0) == '[x]' ? '[ ]': '[x]'/<CR>:noh<CR> diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -22,7 +22,6 @@ Plug 'junegunn/limelight.vim' " highlight current paragraph in goyo Plug 'Yggdroot/indentLine' " show indentation level with vertical lines """""" File system """"""" -Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'justinmk/vim-gtfo' " open finder (gof)/tmux pane (got) at pwd Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' " fzf commands from within vim diff --git a/links/.vim/vimrc b/links/.vim/vimrc @@ -28,3 +28,7 @@ set dictionary+=/usr/share/dict/words " specify mutt aliases path, autocomplete aliases with @@ in insert mode let g:mutt_aliases_file = '~/.mutt/aliases' + +" split size for :Lex[plore] and :Hex[plore]. Percentage when positive, line/col +" number when negative +let g:netrw_winsize = 20