aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-26 10:45:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-26 10:45:45 -0200
commitc824c199601c2dd8e20f06e69774fbb6d50ce0c9 (patch)
tree181181149bc89d33a0ab41cc6192aefe2b3c42b9
parent3bad80994cba4f9f0daba908758428d9f7533987 (diff)
downloadvim-c824c199601c2dd8e20f06e69774fbb6d50ce0c9.tar.gz
vim-c824c199601c2dd8e20f06e69774fbb6d50ce0c9.tar.bz2
Bookmark/session key mappings
-rw-r--r--vimrc.dot.link28
1 files changed, 17 insertions, 11 deletions
diff --git a/vimrc.dot.link b/vimrc.dot.link
index ffae3e2..3631692 100644
--- a/vimrc.dot.link
+++ b/vimrc.dot.link
@@ -149,16 +149,18 @@ nmap <ESC>n :tabnew<CR>
nmap <ESC>t :OpenNERDTree<CR>
"nmap <ESC>q :wqa<CR>
"map <ESC>c :wqa<CR>
-map <ESC>f :wq<CR>
+nmap <ESC>f :wq<CR>
nmap <ESC>c :tabclose<CR>
"map <ESC>e :tabclose<CR>
+nmap <ESC>b :NERDTreeFromBookmark
+nmap <ESC>s :OpenSession
nmap <ESC>m :q!<CR>
nmap <ESC>w :w<CR>
imap <ESC>n <ESC>:tabnew<CR>
imap <ESC>t <ESC>:OpenNERDTree<CR>
"imap <ESC>q <ESC>:wqa<CR>
"map <ESC>c <ESC>:wqa<CR>
-map <ESC>f <ESC>:wq<CR>
+imap <ESC>f <ESC>:wq<CR>
imap <ESC>c <ESC>:tabclose<CR>
"map <ESC>e <ESC>:tabclose<CR>
imap <ESC>m <ESC>:q!<CR>
@@ -172,6 +174,8 @@ imap <ESC>w <ESC>:w<CR>
"map f :wq<CR>
"map c :tabclose<CR>
"map e :tabclose<CR>
+"nmap b :NERDTreeFromBookmark
+"nmap s :OpenSession
"map m :q!<CR>
"map w :w<CR>
"imap n <ESC>:tabnew<CR>
@@ -186,15 +190,17 @@ imap <ESC>w <ESC>:w<CR>
" Write, quit and close shortcuts using Ctrl-key combos
" We're using these due to a conflict with wyrd(1)
-"map <C-n> :tabnew<CR>
-"map <C-t> :OpenNERDTree<CR>
-"map <C-q> :wqa<CR>
-"map <C-c> :wqa<CR>
-"map <C-f> :wq<CR>
-"map <C-c> :tabclose<CR>
-"map <C-e> :tabclose<CR>
-"map <C-m> :q!<CR>
-"map <C-w> :w<CR>
+"nmap <C-n> :tabnew<CR>
+"nmap <C-t> :OpenNERDTree<CR>
+"nmap <C-q> :wqa<CR>
+"nmap <C-c> :wqa<CR>
+"nmap <C-f> :wq<CR>
+"nmap <C-c> :tabclose<CR>
+"nmap <C-e> :tabclose<CR>
+"nmap <C-b> :NERDTreeFromBookmark
+"nmap <C-s> :OpenSession
+"nmap <C-m> :q!<CR>
+"nmap <C-w> :w<CR>
"imap <C-n> <ESC>:tabnew<CR>
"imap <C-t> <ESC>:OpenNERDTree<CR>
"imap <C-q> <ESC>:wqa<CR>