From 32a6ae80b41a1cbd74a7bf256a8a0950091d3542 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Thu, 28 Nov 2019 14:44:03 -0500 Subject: various minor changes --- .bash_aliases | 17 ++++++++++++----- .bashrc | 1 + vimrc | 48 ++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 53 insertions(+), 13 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index cc5d06e..169e105 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,16 +1,23 @@ -# To scape single quotes in single quoted string first finish opened string and -# add the scaped quote (\'). -alias :q='cowsay -d "this isn'\''t Vim"' -alias :w="cowsay -b \"this isn't Vim\"" alias aliases='vim ~/.bash_aliases && source ~/.bash_aliases' alias diff2='diff --color=always -y' alias dir='dir --color=auto' -alias grep='grep --color=auto -i' +alias grepc='grep --color=auto -i' # color and ... alias la='ls -A' alias ll='ls -l -h' alias lla='ll -A' alias ls='ls --color=auto' #alias mv='mv -v' #alias cp='cp -v' +#alias less='less -Ri' # make less's searches case insensitive and + # colorized +LESS=Ri + +# cosmetic +# ======== +alias :q='cowsay -d "this isn'\''t Vim"' # To scape single quotes in single + # quoted string first finish opened + # string and add the scaped quote + # (\'). +alias :w="cowsay -b \"this isn't Vim\"" alias miola='cowsay -e ^^ "te extraño, mi galletita"' alias miola2='cowsay -e ^^ "🌊Nandita 💃 bonita 🌊"' diff --git a/.bashrc b/.bashrc index dafeff4..3579823 100644 --- a/.bashrc +++ b/.bashrc @@ -121,3 +121,4 @@ fi # non US locale. export LANG=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8 +set -o vi # enables vi-like input diff --git a/vimrc b/vimrc index 9fd8bc6..849330d 100644 --- a/vimrc +++ b/vimrc @@ -12,10 +12,11 @@ " =================================================== set nocompatible " Auto-recognize files and apply pluggins -filetype plugin indent on +" filetype plugin indent on syntax on set wildmenu set showcmd +set scrolloff=5 " show a few lines of context " Options that aren't default in some systems " =========================================== @@ -23,14 +24,14 @@ set backspace=indent,eol,start " Number gutter " ============= -set number +set nonumber set relativenumber " Search " ====== set hlsearch set incsearch -" Redraw and turn of search highlight in normal mode (non recursive) +" Redraw and turn off search highlight in normal mode (non recursive) nnoremap :nohl set ignorecase set smartcase @@ -43,20 +44,26 @@ set tabstop=8 set softtabstop=4 set shiftwidth=4 set noexpandtab -set autoindent -set smartindent -set cindent +" autoindent -> smartindent -> cindent -> indentexpr (from less to more +" general, each one overrides the previous ones) +set smartindent " This is a really nice and simple one +"set cindent +"set cinoptions=:0,g0 " See C-indenting " Automatic formatting " ==================== " see fo-table set formatoptions=rql -set formatoptions-=o +set formatoptions-=o " Automatically insert the current comment leader + " after hitting 'o'. set formatoptions+=t " auto-wrap text (when inserting) set formatoptions+=c " auto-wrap comments (when inserting) "set formatoptions+=a " auto-formatting of paragraphs (always). (this " messes with being able to '=====' underline - " just below a section header comment + " just below a section header comment. +set formatoptions+=p " Don't break lines after '.' +set formatoptions+=n " Allow lists +set formatoptions+=j " Removes comment leader when joining lines " Word wrap " ========= @@ -73,11 +80,14 @@ set mouse=a " Always display the status line, even if only one window is displayed set laststatus=2 set ruler +set encoding=utf-8 " Mappings " ======== map :tabp map :tabn +" TODO: Funcking unmap the F1 key +"unmap " Yanking and pasting " =================== @@ -86,9 +96,31 @@ map :tabn "vmap <++> "+y " The yank to the cut buffer (clipboard) "vmap <++> "*y " The yank to the selection buffer +" Buffers +" ======= +set hidden +map :bNext +map :bnext + +" Printing +" ======== +set printoptions=paper:A4,duplex:long +" set printoptions+=number:y +" TODO: Figure out how to print multibyte encodings. Enabling this settings +" produces errors. +" set printencoding=utf-8 +" set printmbcharset=JIS_X_1990 " This allows Japanese characters to be printed +" set printmbfont=r:Noto-Sans-CJK-JP " Additions " ========= " TODO: Funcion para reindentar archivo con mi configuracion. Esta funcion de " vim.fandom.com no se como funciona. (Ver perlexpr?) ":command! -nargs=1 -range SuperRetab ,s/\v%(^ *)@<= {}/\t/g +"FIX: this shit :( +" digr :) 0x263a :( 0x2639 + +" iVim +" ==== +" TODO: map :h _argument_ to :h _argument_ L_ This makes help window +" to almost fill the super small screen. -- cgit v1.2.3