dot

packages and services management
Log | Files | Refs | README

commit 1e8308a42c4e91b2747b33fd567e81d0a04c47b7
parent d08c3a4b819d96376410511b194c5a536127ad3a
Author: josuah <mail@josuah.net>
Date:   Tue, 22 Nov 2016 11:08:09 +0100

Simpler vimrc

Diffstat:
M.vim/vimrc | 75+++++++++++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 43 insertions(+), 32 deletions(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -11,21 +11,50 @@ syntax enable | filetype plugin on | set nocompatible -set omnifunc=syntaxcomplete#Complete " Completion -set autoindent copyindent " Indentation -set laststatus=0 showcmd showmode ruler " Statusline -set smartcase ignorecase showmatch incsearch " Searching -set list listchars=tab:│\ ,trail:-,nbsp:-,extends:>,precedes:< " Listchars -set fillchars=vert:│,fold:─,diff:─,stl:\ ,stlnc:\ " Fillchars -set number numberwidth=1 cursorline nowrap " Interface -set scrolloff=3 " Scroll -set backupdir=~/.cache/vim// directory=~/.cache/vim// undodir=~/.cache/vim// -set virtualedit=block formatprg=fmt " Editing -set wildmenu wildmode=longest:full,full " Completion -set hidden " Buffers -set showfulltag " Compilation +" Completion +set omnifunc=syntaxcomplete#Complete +set wildmenu +set wildmode=longest:full,full + +" indentation +set autoindent +set copyindent + +" statusline +set laststatus=0 +set showcmd +set showmode +set ruler + +" searching +set smartcase +set ignorecase +set showmatch +set incsearch + +" interface +set list +set listchars=tab:│\ ,trail:-,nbsp:-,extends:>,precedes:< +set fillchars=vert:│,fold:─,diff:─,stl:\ ,stlnc:\ +set number numberwidth=1 cursorline nowrap +set scrolloff=3 let &colorcolumn=join(range(81,90),",") +" backup +set backupdir=~/.cache/vim// +set directory=~/.cache/vim// +set undodir=~/.cache/vim// + +" editing +set virtualedit=block +set formatprg=fmt + +" buffers +set hidden + +" compilation +set showfulltag + " MAPPINGS "------------------------------------------------------------------------------- @@ -37,20 +66,8 @@ imap jk <Esc> cmap jk <C-f> " <Leader> menu -nmap <Leader><Leader> : -\ ec ' <w> write <b> buffers <s> set <t> tags <"> registers' \| -\ ec ' <e> edit <T> tabs <h> help '"<'>"'marks' \| -\ <CR>: +nmap <Leader> : nmap <Leader>w :w<CR> -nmap <Leader>s :set -nmap <Leader>h :help -nmap <Leader>b :pwd \| echo '' \| ls \| echo ''<CR>:b -nmap <Leader>T :pwd \| echo '' \| tabs \| echo ''<CR>:tab -nmap <Leader>c :pwd \| echo '' \| clist \| echo ''<CR> -nmap <Leader>C :cwindow<CR>:set nocursorline<CR> -nmap <Leader>t :pwd \| echo '' \| tags \| echo ''<CR>:tag<space> -nmap <Leader>" : echo '' \| registers <CR> -nmap <Leader>' : echo '' \| marks <CR>:' " <c>hange <o>ption <...> nmap col :set list ! \| set list ?<CR> @@ -63,12 +80,6 @@ nmap cov :set ve=<C-r>=(&ve =~# "all") ? 'block' : 'all'<CR><CR>:set ve ?<CR> nmap cos :if exists("g:syntax_on") \| sy off \| else \| sy enable \| end<CR> nmap cot :set tw=<C-r>=(&tw != "0" ) ? '0' : '75' <CR> <CR>:set tw ?<CR> -" <[> previous <]> next -nmap [c :cprevious<CR> -nmap ]c :cnext<CR> -nmap [C :cfirst<CR> -nmap ]C :clast<CR> - " Editing nmap [<Leader> mzO<Esc>k`z<C-e> nmap ]<Leader> mzo<Esc>k`z