diff --git a/.vim/templates/begend b/.vim/templates/begend new file mode 100644 index 0000000..beadd3c --- /dev/null +++ b/.vim/templates/begend @@ -0,0 +1,3 @@ +#---- Begin + +#---- End diff --git a/.vimrc b/.vimrc index 90ed2af..3efdbc7 100644 --- a/.vimrc +++ b/.vimrc @@ -100,7 +100,7 @@ colorscheme advantage highlight colorcolumn ctermbg=darkgray guibg=darkgray highlight VertSplit ctermbg=black guibg=black ctermfg=darkgray guifg=darkgray highlight cursorcolumn cterm=NONE ctermbg=darkblue ctermfg=white guibg=darkred guifg=white -highlight Visual ctermbg=darkblue ctermfg=white gui=none +highlight visual cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white " In split windows - active buffer status bar is yellow, inactive is black @@ -129,6 +129,8 @@ set statusline+=\ %P " percent through file " turn off search hilight nnoremap :nohls +" toggle row/column cursor +nnoremap c :set cursorline! cursorcolumn! " --------------------------------------------------------------------------------------------------------------------- " ==> Keymaps: Buffers @@ -177,10 +179,6 @@ imap =strftime("%Y-%m-%d %H:%M:%S") imap =strftime("%Y-%m-%d %a") imap =strftime("%H:%M") -" --------------------------------------------------------------------------------------------------------------------- -" ==> Toggle row/column cursor -" -nnoremap c :set cursorline! cursorcolumn! " --------------------------------------------------------------------------------------------------------------------- " ==> Spellcheck @@ -220,6 +218,9 @@ autocmd BufRead,BufNewFile *.txt setlocal spell " section banner nnoremap ,ban :-1read $HOME/.vim/templates/bannerjA +" section begin/end +nnoremap ,begend :-1read $HOME/.vim/templates/begendjA + " --------------------------------------------------------------------------------------------------------------------- " ==> Templates " Doing special things with certain filetypes