From 4d9ec9a46e0085588a896679573461601dd76bfc Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 26 May 2019 22:37:12 +0200 Subject: some improvements --- vim/vimrc | 94 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 45 insertions(+), 49 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 20a0f21..fd0d8d9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,10 +1,12 @@ """"""""""""""""""""""""""""""""""""" " Miguel's .vimrc " " Author: m.i@gmx.at " -" Last Update: 2019-02-02 " +" Last Update: 2019-05-25 " """"""""""""""""""""""""""""""""""""" " {{{ NOTES +" THIS LOOSE NOTES REQUIRE REVIEW! +" external links to browser " https://wiki.haskell.org/99_questions/Solutions/34 " http://www.stephendiehl.com/posts/vim_2016.html " https://github.com/lukerandall/haskellmode-vim @@ -46,7 +48,6 @@ " Do something about the input problems in ConqueGDB/Term (YouCompl?) " implement a plugin for fast-reading (check if one exists first ;)) " plugins on vim.org etc. -" " syntastic! https://github.com/vim-syntastic/syntastic " vimproc! https://github.com/Shougo/vimproc.vim " pathogen / vundle DONE @@ -74,24 +75,15 @@ " CScope / CCTree " inline reference/ (stlrefvim?) " emmet.io (webdev) - " }}} " {{{ VUNDLE - +" as required by https://github.com/VundleVim/Vundle.vim set nocompatible filetype off - -" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim - -" can call vundle#begin('~/some/path/here') call vundle#begin() - -" let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' - -" plugins " Plugin 'Valloric/YouCompleteMe' Plugin 'scrooloose/nerdtree' Plugin 'altercation/vim-colors-solarized' @@ -99,18 +91,17 @@ Plugin 'fholgado/minibufexpl.vim' Plugin 'majutsushi/tagbar' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-sensible' -Plugin 'Shougo/vimproc.vim' +" Plugin 'Shougo/vimproc.vim' +Plugin 'MarcWeber/vim-addon-mw-utils' +Plugin 'tomtom/tlib_vim' +Plugin 'garbas/vim-snipmate' +Plugin 'honza/vim-snippets' " Plugin 'vim-scripts/Conque-GDB' " Plugin 'dracula/vim' " Plugin 'git://ex40.softwarefools.com/vim-potion.git' " Plugin 'git://ex40.softwarefools.com/vim-colortune.git' - -" All of your Plugins must be added before the following line call vundle#end() filetype plugin indent on -" To ignore plugin indent changes, instead use: -" filetype plugin on - " }}} "{{{ DISABLED @@ -124,8 +115,8 @@ filetype plugin indent on " let g:potion_command = "/home/miguel/int/dev/potion/bin/potion" -"set wrap -"set showbreak=>_ +" set wrap +" set showbreak=>_ " move line under the cursor up and down. " nnoremap - ddp @@ -138,6 +129,10 @@ filetype plugin indent on " {{{ BASICS +" {{{ spelling OFF +" set spell +" }}} + " {{{ mapleaders " use but remap to _ so it is visible for 'showcmd' nmap _ @@ -147,29 +142,28 @@ let maplocalleader="\_" " {{{ misc +set nocompatible set foldmethod=marker set nowrap - -set nocompatible set backspace=2 " set ruler set showcmd set number set hidden -" set cursorcolumn -" set cursorline +"set cursorcolumn +set cursorline " save before making etc. set autowrite " some nice candy -set laststatus=2 +set laststatus=2 "always show status line on last window set wildmenu " indent -set autoindent -set cindent +" set autoindent +" set cindent " mouse support in xterm set mouse=a @@ -181,6 +175,7 @@ set previewheight=25 " set splitbelow " set splitright +" easy move between windows nnoremap nnoremap nnoremap @@ -191,13 +186,9 @@ nnoremap " {{{ statusline set statusline=%f " Path to the file set statusline+=%= " Switch to the right side -set statusline+=%l " Current line -set statusline+=/ " Separator -set statusline+=%L " Total lines -set statusline+=, " comma -set statusline+=%c " Column -set statusline+=\ (%P) " Percentage -set statusline& " reset? +set statusline+=%l,%c " Current line,column +set statusline+=\ (%L,%P) " Percentage +"set statusline& " reset " }}} " {{{ terminal width / colocolumn @@ -233,9 +224,13 @@ else set background=dark endif - set background=dark +set background=dark colorscheme solarized + +hi SpellBad ctermfg=white +hi SpellBad ctermbg=red + syntax sync fromstart " }}} @@ -283,20 +278,20 @@ nnoremap ? ?\v inoremap jk " retab -map rt :retab! +" map rt :retab! " toggle tabs visibility noremap t :set invlist " easy editing and sourcing of vimrc -nnoremap sv :source $MYVIMRC +" nnoremap sv :source $MYVIMRC nnoremap ev :e $MYVIMRC " turn off search highlight nnoremap h :nohlsearch " toggle visibility of trailing whitespaces -nnoremap w :match Error /\v +$/ +nnoremap w :match ErrorMsg /\v +$/ nnoremap W :match " toggle and navigate quickfix window @@ -310,23 +305,23 @@ nnoremap bp :MBEbp nnoremap bd :MBEbd " make -nnoremap mm :silent make! -nnoremap mc :silent make! clean -nnoremap mn :silent make! new -nnoremap mr :silent make!:call system("make run &") -nnoremap md :silent make!:call system("make debug &") -nnoremap ms :silent make! stop -nnoremap mf :silent make! %:r:redraw! -nnoremap mx :silent make! %:r !./%:r +" nnoremap mm :silent make! +" nnoremap mc :silent make! clean +" nnoremap mn :silent make! new +" nnoremap mr :silent make!:call system("make run &") +" nnoremap md :silent make!:call system("make debug &") +" nnoremap ms :silent make! stop +" nnoremap mf :silent make! %:r:redraw! +" nnoremap mx :silent make! %:r !./%:r " session handling -nnoremap ss :call Session_save() -nnoremap sl :call Session_load() +" nnoremap ss :call Session_save() +" nnoremap sl :call Session_load() " layout nnoremap ln :NERDTreeToggle nnoremap lt :TagbarToggle -nnoremap lg :ConqueGdb +"nnoremap lg :ConqueGdb nnoremap lm :MBEToggle nnoremap lq :copen @@ -344,6 +339,7 @@ augroup END " {{{ markdown augroup filetype_markdown autocmd! + autocmd FileType markdown setlocal spell " autocmd FileType markdown setlocal spell " autocmd FileType markdown setlocal list augroup END -- cgit v1.2.3