commit 10acf6d9c39ee0059fd96fd78719d2d07feaca88 Author: Pablo Cárdenas <pablo-cardenas@outlook.com> Date: Wed, 1 Jan 2020 03:20:45 -0500 Initial Commit Diffstat:
| A | .gitignore | | | 2 | ++ |
| A | vimrc | | | 43 | +++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +/undodir +/.netrwhist diff --git a/vimrc b/vimrc @@ -0,0 +1,43 @@ +set nocompatible +set history=1000 +set noswapfile +set nobackup + +set encoding=utf-8 +set backspace=indent,eol,start +set hidden + +set noshowmode +set laststatus=1 +set wildmenu + +set nowrap +set showmatch + +set undofile +set undodir=~/.vim/undodir + +filetype indent plugin on +set autoindent + +if &t_Co > 2 + syntax on + set colorcolumn=80 + + highlight ExtraWhitespace ctermbg=1 + match ExtraWhitespace /\s\+$/ +else + set listchars+=trail:~ + set list +endif + +" Avoid some keys +inoremap <Left> <NOP> +inoremap <Right> <NOP> +inoremap <Up> <NOP> +inoremap <Down> <NOP> +nnoremap <Left> <NOP> +nnoremap <Right> <NOP> +nnoremap <Up> <NOP> +nnoremap <Down> <NOP> +noremap! <BS> <NOP>