Browse Source

vimrc: update F7 for new path

master
Brennen Bearnes 1 year ago
parent
commit
b4fb1bc9a7
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      home/.vim/vimrc

+ 6
- 5
home/.vim/vimrc View File

@ -1,10 +1,11 @@
" vim:foldmethod=marker:foldlevel=0:foldenable
"
" this is my .vimrc; part of https://code.p1k3.com/gitea/brennen/bpb-kit
" this is my vimrc; part of https://code.p1k3.com/gitea/brennen/bpb-kit
"
" to use:
"
" cp [this file] ~/.vimrc
" mkdir -p ~/.vim
" cp [this file] ~/vim/vimrc
" mkdir -p ~/.vim/bundle
" git clone https://github.com/VundleVim/Vundle.git ~/.vim/bundle/Vundle.vim
" vim +PluginInstall
@ -576,18 +577,18 @@ let mapleader = ","
imap <F6> <Esc><F6>
amenu Cheatsheet.Most\ Recently\ Used<Tab>F6 <F6>
" F7 opens ~/.vimrc (in existing tab if open, new otherwise)
" F7 opens ~/.vim/vimrc (in existing tab if open, new otherwise)
" (7 kind of looks like a rotated v)
" see http://learnvimscriptthehardway.stevelosh.com/chapters/07.html for
" rationale - the idea is to make changing vim configuration trivial
if has('nvim')
map <F7> :call <SID>TabDrop("~/.vimrc")<CR>
map <F7> :call <SID>TabDrop("~/.vim/vimrc")<CR>
else
map <F7> :call <SID>TabDrop($MYVIMRC)<CR>
endif
imap <F7> <Esc><F7>
amenu Cheatsheet.Open\ \.vimrc<Tab>F7 <F7>
amenu Cheatsheet.Open\ vimrc<Tab>F7 <F7>
" F8 inserts an ISO-8601 datestamp (mnemonic: eight rhymes with date)
" (used to open the options window; use :options for that)


Loading…
Cancel
Save