note autorefresh, shortcut for morning
j3s j3s@c3f.net
Fri, 12 Mar 2021 13:48:57 -0600
M
.vimrc
→
.vimrc
@@ -1,32 +1,3 @@
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Maintainer: -" Amir Salihefendic — @amix3k -" -" Awesome_version: -" Get this config, nice color schemes and lots of plugins! -" -" Install the awesome version from: -" -" https://github.com/amix/vimrc -" -" Sections: -" -> General -" -> VIM user interface -" -> Colors and Fonts -" -> Files and backups -" -> Text, tab and indent related -" -> Visual mode related -" -> Moving around, tabs and buffers -" -> Status line -" -> Editing mappings -" -> vimgrep searching and cope displaying -" -> Spell checking -" -> Misc -" -> Helper functions -" -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => General """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""@@ -47,6 +18,9 @@ let mapleader = ","
" Fast saving nmap <leader>w :w!<cr> + +" for adding morning notes to notes.md +nmap <leader>m Go<esc>:put =strftime(\"%Y-%m-%d\")<cr>o----------------<cr><esc> " :W sudo saves the file " (useful for handling the permission-denied error)@@ -316,9 +290,6 @@
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Misc """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Remove the Windows ^M - when the encodings gets messed up -noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm - " Quickly open a buffer for scribble map <leader>q :e ~/buffer<cr>