dot

packages and services management
Log | Files | Refs | README

commit 3f775ee5743fd589edf9eda8f9755e2a49522b5f
parent 2b37e7d124892d92385d84ad33a5ed23bd68a12c
Author: josuah <mail@josuah.net>
Date:   Tue,  6 Sep 2016 13:51:48 +0200

Improved .vimrc

Diffstat:
MREADME | 2++
Mbin/buffers | 2+-
Mex-vi/.exrc | 8--------
Mshell/.profile | 2+-
Mvim/.vimrc | 29+++++++++++++++++------------
5 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/README b/README @@ -78,6 +78,8 @@ VIM PLUGINS supertab http://github.com/ervandew/supertab multiple http://github.com/terryma/vim-multiple-cursors fzy http://github.com/Dkendal/fzy-vim + gitgutter https://github.com/airblade/vim-gitgutter + PROJECTS diff --git a/bin/buffers b/bin/buffers @@ -45,7 +45,7 @@ r | run ) else tee < "$cache" fi | fzy )" - printf '$ %s ' "$cmd" + printf '$ %s \033]0;%s\007' "$cmd" "$cmd" # Get command arguments and the session name name="$cmd" diff --git a/ex-vi/.exrc b/ex-vi/.exrc @@ -20,11 +20,3 @@ set errorbells flash "------------------------------------------------------------------------------- " map g 1G -" -" -" ABBREVIATIONS -"------------------------------------------------------------------------------- -" -abbreviate -_ 80a-A -" - diff --git a/shell/.profile b/shell/.profile @@ -102,7 +102,7 @@ ps1() [ "$code" -eq 0 ] || printf '\033[38C\033[31;1m %s \033[0m' "$code" # Non printable: terminal status, bell - printf '\a\033]0;%s\007' "$pwd" + printf '\a\033]0;shell\007' # Last line fo prompt local abduco="$(($(abduco 2>/dev/null | wc -l) - 1))" diff --git a/vim/.vimrc b/vim/.vimrc @@ -2,7 +2,7 @@ " __ /\ \/ ________ _____ ____ " / / / / /\ / __ __ \ / ____\/ ___\ " \ \/ / / // / / / / // / / /__ -" \_,' \/ \/ \/ \/ \/ \____\ - Config file for vim in tiny mode +" \_,' \/ \/ \/ \/ \/ \____\ - Simple config for vim "============================================================================== @@ -10,13 +10,13 @@ "------------------------------------------------------------------------------- " Behavior -set autoindent copyindent laststatus=1 ruler +set autoindent copyindent laststatus=2 ruler " Text display -set showmatch list listchars=tab:>\ ,eol:$ hlsearch +set hlsearch showmatch list listchars=tab:>\ ,eol:$ fillchars=vert:│,fold:─ " Interface -set ruler number numberwidth=8 colorcolumn=80 +set ruler number numberwidth=4 colorcolumn=80 cursorline " FUNCTIONS @@ -46,7 +46,7 @@ map <leader>s :set map <leader>w :w<cr> map <leader>e :call FzyCommand("find -type f", ":e")<cr> map <leader>v :call FzyCommand("find -type f", ":vs")<cr> -map <leader>g :exec ':' system("swiper '" . expand("%:p") . "'")<cr>:redraw!<cr> +map <leader>/ :exec ':' system("swiper '" . expand("%:p") . "'")<cr>:redraw!<cr> map col :set list! <cr>:set list? <cr> map con :set number! <cr>:set number? <cr> @@ -56,11 +56,6 @@ map coh :set hlsearch! <cr>:set hlsearch? <cr> map ]<leader> mzo<Esc>k`z map [<leader> mzO<Esc>k`z<C-e> -imap <c-n> <esc>viW!complete -w %<cr>:redraw!<cr>Ea -imap <c-x><c-l> <esc>V! complete -l %<cr>:redraw!<cr>A - -vmap <tab> !align<cr>:redraw!<cr> - " ABBREVIATIONS "------------------------------------------------------------------------------- @@ -72,11 +67,21 @@ iabbrev =_ <Esc>v0x80a=<esc>gvpA " HIGHLIGHTS "------------------------------------------------------------------------------- -highlight NonText cterm=bold ctermfg=0 -highlight SpecialKey cterm=bold ctermfg=0 +highlight NonText cterm=bold ctermfg=0 +highlight SpecialKey cterm=bold ctermfg=0 +highlight Cursorline cterm=bold +highlight StatusLine cterm=bold ctermfg=3 +highlight StatusLineNC cterm=none ctermfg=7 +highlight VertSplit cterm=none " PLUGINS "------------------------------------------------------------------------------- execute pathogen#infect() + +" UndoTree +map <leader>u :UndotreeToggle<cr> + +" GitGutter +let g:gitgutter_sign_column_always = 1