summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc1
-rw-r--r--.nexrc5
-rw-r--r--.vimrc3
3 files changed, 7 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index ab1b984..29f5685 100644
--- a/.bashrc
+++ b/.bashrc
@@ -90,6 +90,7 @@ alias mp='rlwrap mp'
alias hd='hexdump -C'
alias pacman='sudo pacman'
alias wtree='swaymsg -t get_tree'
+alias notes='vi ~/src/notes/ReadMe'
# yaegi debug
export YAEGI_DOT_CMD='dotty -'
diff --git a/.nexrc b/.nexrc
index 3368ed0..cf249ce 100644
--- a/.nexrc
+++ b/.nexrc
@@ -22,5 +22,8 @@ map gn /[A-Z][A-Za-z0-9_]+[A-Z]/
" Jump to go identifier definition using dynamic tag.
map gd D:+1,$d :1,$!wc -c 0cw:!gotag % "yddu..@y :ta _
-" Ctrl-$ to tag jump
+" Ctrl-$ ou <CR> to tag jump
map [27;5;36~ 
+map ^$ ^]
+map 
+map ,, 
diff --git a/.vimrc b/.vimrc
index 42e2e6c..738ff3d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -193,9 +193,10 @@ let g:go_gopls_enabled = 1
command! Blame normal!:let @a=expand('%')<CR>:let @b=line('.')<CR>:new<CR>:set bt=nofile<CR>:%!git blame -wM --date=short <C-R>a<CR>:<C-R>b<CR>
" edit current word as file
-noremap ge :e <cWORD>
+noremap ge :e <cword>
" create a tag entry for current filename
" noremap gt :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
noremap <leader>t :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
noremap 
noremap ,, 
+autocmd BufNewFile,BufRead ~/src/notes/* set autowrite